@charset "utf-8";

/* ===========================================================
   iRestora PLUS - Installation UI
   Modern, responsive layout (CSS-only overrides)
   =========================================================== */

/* ---------- Base / Background ---------- */
body {
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.main_header {
    height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #4c1d95 100%) !important;
    background-repeat: no-repeat;
    overflow-y: auto;
}

#install-header {
    text-align: center;
    padding: 26px 0 20px;
    margin: 0;
}

#install-header img {
    max-height: 60px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

/* ---------- Main container / card ---------- */
.install {
    margin: 10px auto !important;
    margin-bottom: 50px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    width: 720px !important;
    max-width: 95% !important;
}

.panel-group {
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.40) !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.panel-default {
    border: none !important;
    background: transparent !important;
}

.panel-heading {
    padding: 0 !important;
    background: transparent !important;
    border-bottom: none !important;
}

.panel-body {
    padding: 24px 0 16px !important;
    background: #f8fafc !important;
    padding-bottom: 12px !important;
}

/* ---------- Step indicator ---------- */
ul.list {
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #2575fc 0%, #1e63d0 100%) !important;
    border-color: transparent !important;
    border-bottom: none !important;
    height: auto !important;
    min-height: 50px !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 14px rgba(37, 117, 252, 0.25);
    list-style: none !important;
    width: 100% !important;
    text-align: center !important;
}

ul.list li {
    flex: 1 1 0;
    text-align: center !important;
    padding: 14px 8px !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-bottom: none !important;
    background: transparent !important;
    transition: all 0.25s ease;
    line-height: 1.4 !important;
    height: auto !important;
    margin: 0 !important;
    float: none !important;
    list-style: none !important;
}

ul.list li:last-child {
    border-right: none !important;
}

ul.list li.active {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 -3px 0 #ffd166 inset;
}

ul.list li.ok {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.10) !important;
    font-weight: 600 !important;
}

ul.list li i,
ul.list li .fa {
    margin-right: 6px !important;
}

.icon-ok:before {
    content: "\f00c";
    color: #4ade80;
}

i.icon-remove {
    color: #f87171 !important;
}

.fa-check {
    margin-right: 5px;
}

/* ---------- Headings / text ---------- */
h3 {
    font-size: 22px !important;
    margin: 14px 25px 18px !important;
    text-align: center !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
}

h3.ins_8 {
    color: #16a34a !important;
    font-size: 24px !important;
}

.padding_70 {
    padding: 18px 0 12px !important;
}

.ins_2 {
    line-height: 20px;
    margin: 4px 25px 8px !important;
    color: #6b7280 !important;
    text-align: center;
    font-size: 14px;
}

/* ---------- Form fields ---------- */
.control-group.ins_3,
.control-group.ins_13 {
    margin: 12px 25px !important;
}

label.control-label {
    color: #1e293b;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    margin-top: 8px !important;
    font-size: 14px;
    display: block;
}

.form-control,
input.xlarge {
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    transition: all 0.2s ease;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.form-control:focus,
input.xlarge:focus {
    background-color: #ffffff !important;
    border-color: #2575fc !important;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.15) !important;
    outline: none !important;
}

i.color_red,
.color_red {
    color: #b91c1c !important;
    font-style: normal;
    font-size: 12px !important;
    line-height: 18px !important;
    display: block;
    margin-top: 6px;
    font-weight: 500;
}

.existing_db {
    border: 1.5px dashed #b91c1c !important;
    padding: 12px !important;
    border-radius: 8px;
    font-size: 14px !important;
    background-color: #fff5f5;
    cursor: pointer;
    display: block;
    line-height: normal !important;
}

.existing_db input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.15);
    vertical-align: middle;
}

.existing_notice {
    color: #92400e !important;
    font-size: 13px !important;
    line-height: 18px !important;
    padding: 10px 14px !important;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    margin-top: 10px !important;
}

/* ---------- Alerts ---------- */
.alert {
    margin: 6px 25px !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: none !important;
    width: auto !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

.alert-success {
    background-color: #dcfce7 !important;
    color: #14532d !important;
}

.alert-error,
.alert-danger {
    background-color: #fee2e2 !important;
    color: #7f1d1d !important;
}

.alert-warning {
    background-color: #fef3c7 !important;
    color: #78350f !important;
}

.alert i {
    margin-right: 8px;
}

/* ===========================================================
   BUTTON LAYOUT - Previous & Next on the same line
   =========================================================== */

/* Outer .bottom directly inside panel-body (steps env, 2, 4, 5, 6) */
.panel-body > .bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
    padding: 18px 25px 10px !important;
    margin: 0 !important;
    flex-wrap: wrap;
    text-align: center !important;
}

/* Multi-button cases: form + form (steps 2 & 4) → spread apart */
.panel-body > .bottom:has(> form + form) {
    justify-content: space-between !important;
}

/* Completion screen (step 5/6) → centered single button */
.panel-body > .bottom:has(> .ins_12:only-child) {
    justify-content: center !important;
}

/* .bottom inside a form (step 3 has Previous + Next together) */
.panel-body form > .bottom:not(.ins_5) {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 18px 25px 10px !important;
    margin: 0 !important;
    flex-wrap: wrap;
}

/* Step 1: solitary submit row */
.panel-body form > .bottom.ins_5 {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: auto !important;
    margin: 6px 25px 10px !important;
    padding: 12px 0 10px !important;
}

/* Hide stray <br clear="all"> that breaks the new flex layout */
.panel-body .bottom br {
    display: none !important;
}

/* Direct flex-children behave as inline blocks (don't grow) */
.panel-body > .bottom > form,
.panel-body form > .bottom > form {
    margin: 0 !important;
    flex: 0 0 auto;
}

/* Reset every nested .bottom / .ins_5 / .ins_12 wrapper so old
   width:100% / margin styles don't break the side-by-side layout */
.panel-body .bottom .bottom,
.panel-body .bottom .ins_5,
.panel-body .bottom .ins_12,
.panel-body > .bottom > .ins_5,
.panel-body > .bottom > .ins_12,
.panel-body > .bottom > .bottom {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
}

/* ===========================================================
   MODERN BUTTON STYLE
   =========================================================== */
.button_1,
.btn-primary.button_1,
input.button_1,
a.button_1 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 130px !important;
    width: auto !important;
    padding: 11px 28px !important;
    background: linear-gradient(135deg, #2575fc 0%, #1a55c4 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 6px 14px rgba(37, 117, 252, 0.35) !important;
    transition: all 0.25s ease !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    height: auto !important;
}

.button_1:hover,
a.button_1:hover {
    background: linear-gradient(135deg, #1a55c4 0%, #14438c 100%) !important;
    box-shadow: 0 8px 20px rgba(37, 117, 252, 0.50) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.button_1:active,
a.button_1:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.30) !important;
}

.button_1:focus,
a.button_1:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.30),
        0 6px 14px rgba(37, 117, 252, 0.35) !important;
}

/* ---------- Secondary (Previous) button ---------- */
input.button_1[value="Previous"],
.panel-body form > .bottom > a.button_1:first-child:not(:only-child) {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
    box-shadow: 0 6px 14px rgba(100, 116, 139, 0.30) !important;
}

input.button_1[value="Previous"]:hover,
.panel-body form > .bottom > a.button_1:first-child:not(:only-child):hover {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.45) !important;
}

/* ===========================================================
   COMPLETION SCREEN
   =========================================================== */
.ins_10 {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #064e3b !important;
    border-radius: 10px !important;
    padding: 16px 18px !important;
    margin: 14px 25px !important;
    width: auto !important;
    line-height: 1.55;
}

.ins_11 {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
    border-radius: 10px !important;
    padding: 12px !important;
    margin: 6px 25px 14px !important;
    width: auto !important;
    font-weight: 500;
    text-align: center;
}

.ins_9 {
    background: #1e3a8a;
    color: #ffffff !important;
    padding: 3px 9px;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
}

/* ---------- Misc ---------- */
.btn-primary {
    border: unset;
}

.text-danger {
    color: #7e242d !important;
    line-height: 20px;
    font-weight: 500;
    text-align: justify;
}

.bottom_config {
    padding-top: 3px !important;
    display: flex;
    width: 95%;
    margin-left: 12px;
}

.config_form {
    width: 50%;
}

.bottom_btn_config {
    margin-bottom: 5px;
}

.width_50 {
    width: 50%;
}

.bottom_complete {
    margin-bottom: 14px;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 720px) {
    .install {
        width: 100% !important;
        padding: 0 12px !important;
    }

    ul.list li {
        font-size: 11px !important;
        padding: 12px 4px !important;
    }

    .button_1 {
        min-width: 110px !important;
        padding: 10px 18px !important;
        font-size: 12px !important;
    }

    h3 {
        font-size: 19px !important;
    }
}

@media (max-width: 480px) {
    .panel-body > .bottom,
    .panel-body form > .bottom:not(.ins_5) {
        flex-direction: row;
        gap: 8px !important;
        padding: 14px 16px 8px !important;
    }

    .button_1 {
        min-width: 0 !important;
        padding: 10px 14px !important;
        flex: 1;
    }

    ul.list li {
        font-size: 10px !important;
        padding: 12px 2px !important;
    }
}
