/* ============================================================
   VARIABLES
============================================================ */

:root {

    --primary: #2563eb;
    --primary-dark: #1d4ed8;

    --success: #198754;

    --dark: #172033;

    --text: #1f2937;

    --muted: #6b7280;

    --light: #f5f7fb;

    --border: #e5e7eb;

    --radius: 18px;

}


/* ============================================================
   GLOBAL
============================================================ */

* {
    box-sizing: border-box;
}


html,
body {

    direction: rtl;

}


body {

    margin: 0;

    background: var(--light);

    color: var(--text);

    font-family:
        "Cairo",
        Tahoma,
        Arial,
        sans-serif;

}


button,
input,
select,
textarea {

    font-family:
        "Cairo",
        Tahoma,
        Arial,
        sans-serif;

}


a {

    text-decoration: none;

}


.main-content {

    min-height:
        calc(100vh - 160px);

}


/* ============================================================
   NAVBAR
============================================================ */

.app-navbar {

    background:
        linear-gradient(
            135deg,
            #172554,
            #1d4ed8
        );

    min-height: 72px;

}


.navbar-brand {

    color: white !important;

}


.brand-icon {

    width: 45px;

    height: 45px;

    border-radius: 13px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(255,255,255,.15);

    font-size: 23px;

}


.brand-title strong {

    font-size: 16px;

}


.brand-title small {

    font-size: 11px;

    opacity: .8;

}


.navbar .nav-link {

    font-size: 14px;

}


/* ============================================================
   PROGRESS
============================================================ */

.registration-progress {

    background: white;

    border-radius: var(--radius);

    padding: 25px;

    box-shadow:
        0 8px 30px
        rgba(15, 23, 42, .06);

}


.progress-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 28px;

}


.progress-counter {

    background: #eff6ff;

    color: var(--primary);

    padding: 7px 15px;

    border-radius: 50px;

    font-size: 13px;

    font-weight: 700;

}


.steps-wrapper {

    display: flex;

    align-items: center;

    width: 100%;

}


.step-item {

    display: flex;

    flex-direction: column;

    align-items: center;

    min-width: 105px;

}


.step-circle {

    width: 45px;

    height: 45px;

    border-radius: 50%;

    border: 2px solid #d1d5db;

    display: flex;

    align-items: center;

    justify-content: center;

    background: white;

    color: #9ca3af;

    font-weight: 700;

    transition: .3s;

}


.step-item.active .step-circle {

    background: var(--primary);

    border-color: var(--primary);

    color: white;

    box-shadow:
        0 5px 15px
        rgba(37, 99, 235, .30);

}


.step-item.completed .step-circle {

    background: var(--success);

    border-color: var(--success);

    color: white;

}


.step-label {

    margin-top: 8px;

    text-align: center;

    font-size: 12px;

}


.step-label strong {

    display: block;

}


.step-label small {

    display: block;

    color: var(--muted);

    font-size: 10px;

}


.step-line {

    flex: 1;

    height: 3px;

    background: #e5e7eb;

    margin: 0 8px;

    margin-bottom: 28px;

}


.step-line.completed {

    background: var(--success);

}


/* ============================================================
   PAGE CARD
============================================================ */

.page-card {

    background: white;

    border-radius: var(--radius);

    box-shadow:
        0 10px 40px
        rgba(15, 23, 42, .07);

    overflow: hidden;

}


.page-card-header {

    padding: 25px 30px;

    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #eef5ff
        );

    border-bottom:
        1px solid var(--border);

    display: flex;

    align-items: center;

    gap: 16px;

}


.page-card-header h3 {

    margin: 0;

    font-weight: 800;

}


.page-card-header p {

    margin: 5px 0 0;

    color: var(--muted);

    font-size: 13px;

}


.header-icon {

    width: 56px;

    height: 56px;

    border-radius: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #dbeafe;

    color: var(--primary);

    font-size: 26px;

}


.page-card-body {

    padding: 30px;

}


/* ============================================================
   SECTION
============================================================ */

.section-title {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 20px;

    font-weight: 800;

    color: var(--dark);

}


.section-title i {

    color: var(--primary);

    font-size: 20px;

}


/* ============================================================
   FORMS
============================================================ */

.form-label {

    font-weight: 700;

    margin-bottom: 8px;

}


.form-control,
.form-select {

    min-height: 48px;

    border-radius: 10px;

    border: 1px solid #d7dce5;

    padding: 10px 14px;

    direction: rtl;

    text-align: right;

}


textarea.form-control {

    min-height: 100px;

}


.form-control:focus,
.form-select:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 .2rem
        rgba(37, 99, 235, .12);

}


/* ============================================================
   INFO ALERT
============================================================ */

.info-alert {

    display: flex;

    gap: 12px;

    padding: 17px;

    background: #eff6ff;

    border: 1px solid #bfdbfe;

    color: #1e40af;

    border-radius: 12px;

}


.info-alert > i {

    font-size: 22px;

}


/* ============================================================
   FILE CARD
============================================================ */

.file-card {

    border: 2px dashed #d7dce5;

    border-radius: 16px;

    padding: 25px;

    text-align: center;

    transition: .25s;

    height: 100%;

}


.file-card:hover {

    border-color: var(--primary);

    background: #f8fbff;

}


.file-card-icon {

    width: 65px;

    height: 65px;

    margin: 0 auto 15px;

    border-radius: 16px;

    background: #fee2e2;

    color: #dc2626;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 30px;

}


.file-card h5 {

    font-weight: 800;

}


.file-card p {

    color: var(--muted);

    font-size: 13px;

}


.file-card input[type="file"] {

    margin-top: 15px;

}


/* ============================================================
   VOEUX
============================================================ */

.voeux-container {

    display: flex;

    flex-direction: column;

    gap: 15px;

}


.voeu-card {

    display: flex;

    direction: rtl;

    border: 1px solid var(--border);

    border-radius: 15px;

    padding: 16px;

    background: white;

    transition: .2s;

}


.voeu-card:hover {

    border-color: #bfdbfe;

    box-shadow:
        0 5px 18px
        rgba(37, 99, 235, .07);

}


.voeu-number {

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    background: #eff6ff;

    color: var(--primary);

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;

    margin-left: 15px;

}


.voeu-content {

    flex: 1;

}


.voeu-title {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 3px;

}


.arabic-label {

    color: var(--muted);

    font-size: 12px;

    margin-bottom: 8px;

}


.form-select.is-selected {

    border-color: var(--primary);

    background-color: #f8fbff;

}


.choice-counter {

    display: flex;

    justify-content: space-between;

    background: #f8fafc;

    border: 1px solid var(--border);

    padding: 14px 18px;

    border-radius: 12px;

    color: var(--muted);

}


.choice-counter i {

    color: var(--success);

}


/* ============================================================
   BUTTONS
============================================================ */

.navigation-buttons {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

}


.navigation-buttons .btn {

    min-height: 48px;

    padding:
        9px 24px;

    border-radius: 10px;

    font-weight: 700;

}


.btn-next {

    min-width: 145px;

}


/* ============================================================
   RECAP
============================================================ */

.recap-section {

    padding-bottom: 25px;

    margin-bottom: 25px;

    border-bottom:
        1px solid var(--border);

}


.recap-title {

    font-size: 18px;

    font-weight: 800;

    margin-bottom: 18px;

    display: flex;

    align-items: center;

    gap: 9px;

}


.recap-title i {

    color: var(--primary);

}


.recap-item {

    padding: 14px 16px;

    background: #f8fafc;

    border-radius: 10px;

}


.recap-item span {

    display: block;

    font-size: 12px;

    color: var(--muted);

    margin-bottom: 4px;

}


.recap-item strong {

    display: block;

}


.confirmation-box {

    display: flex;

    gap: 15px;

    padding: 20px;

    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    border-radius: 14px;

    color: #166534;

}


.confirmation-icon {

    font-size: 30px;

}


.confirmation-check {

    background: #f8fafc;

    padding: 16px;

    border-radius: 10px;

    border: 1px solid var(--border);

}


/* ============================================================
   SUCCESS
============================================================ */

.success-icon {

    width: 90px;

    height: 90px;

    margin: auto;

    border-radius: 50%;

    background: #dcfce7;

    color: #16a34a;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 48px;

}


.dossier-number {

    background: #eff6ff;

    border: 1px solid #bfdbfe;

    border-radius: 14px;

    padding: 20px;

}


.dossier-number span {

    display: block;

    color: var(--muted);

    margin-bottom: 7px;

}


.dossier-number strong {

    font-size: 25px;

    color: var(--primary);

    letter-spacing: 1px;

}


/* ============================================================
   DASHBOARD
============================================================ */

.dashboard-hero {

    background:
        linear-gradient(
            135deg,
            #172554,
            #2563eb
        );

    color: white;

    border-radius: var(--radius);

    padding: 30px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.dashboard-hero h2 {

    font-weight: 800;

}


.dashboard-hero p {

    margin: 5px 0 0;

    opacity: .85;

}


.dashboard-hero-icon {

    width: 75px;

    height: 75px;

    border-radius: 20px;

    background:
        rgba(255,255,255,.15);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 38px;

}


.dashboard-card {

    background: white;

    border-radius: 16px;

    padding: 22px;

    box-shadow:
        0 8px 25px
        rgba(15,23,42,.06);

    display: flex;

    align-items: center;

    gap: 16px;

}


.dashboard-card-icon {

    width: 55px;

    height: 55px;

    border-radius: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;

}


.dashboard-card-icon.primary {

    background: #dbeafe;

    color: var(--primary);

}


.dashboard-card-icon.success {

    background: #dcfce7;

    color: var(--success);

}


.dashboard-label {

    display: block;

    color: var(--muted);

    font-size: 13px;

}


.dashboard-card h4 {

    margin: 4px 0 0;

    font-weight: 800;

}


/* ============================================================
   FOOTER
============================================================ */

.app-footer {

    background: #172033;

    color: white;

    padding: 25px 0;

    margin-top: 30px;

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 768px) {


    .page-card-body {

        padding: 20px;

    }


    .page-card-header {

        padding: 20px;

    }


    .steps-wrapper {

        overflow-x: auto;

        justify-content: flex-start;

        padding-bottom: 5px;

    }


    .step-item {

        min-width: 85px;

    }


    .step-label strong {

        font-size: 11px;

    }


    .step-label small {

        font-size: 9px;

    }


    .step-line {

        min-width: 20px;

    }


    .progress-header {

        align-items: flex-start;

        gap: 10px;

        flex-direction: column;

    }


    .navigation-buttons {

        flex-direction: column-reverse;

    }


    .navigation-buttons .btn {

        width: 100%;

    }


    .voeu-number {

        margin-left: 10px;

    }


    .choice-counter {

        flex-direction: column;

        gap: 7px;

    }


    .dashboard-hero {

        padding: 22px;

    }


    .dashboard-hero-icon {

        width: 55px;

        height: 55px;

        font-size: 25px;

    }

}

/* ============================================================
   DOCUMENT STATUS
============================================================ */

.document-status {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 16px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: #f8fafc;

}


.document-status strong {

    display: block;

    font-weight: 800;

}


.document-status small {

    display: block;

    color: var(--muted);

    margin-top: 3px;

}


.document-icon {

    width: 50px;

    height: 50px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;

}


.document-icon.success {

    background: #dcfce7;

    color: #16a34a;

}


.document-icon.danger {

    background: #fee2e2;

    color: #dc2626;

}


/* ============================================================
   DISPLAY VOEUX
============================================================ */

.voeux-display {

    display: flex;

    flex-direction: column;

    gap: 12px;

}


.display-voeu {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 16px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: #fff;

    transition: .2s;

}


.display-voeu:hover {

    border-color: #bfdbfe;

    background: #f8fbff;

}


.display-voeu-number {

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    border-radius: 12px;

    background: #dbeafe;

    color: var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;

    font-size: 18px;

}


.display-voeu-content {

    flex: 1;

}


.display-voeu-content span {

    display: block;

    font-size: 11px;

    color: var(--muted);

    margin-bottom: 3px;

}


.display-voeu-content strong {

    display: block;

    font-size: 16px;

    font-weight: 800;

}


.display-voeu-content small {

    display: block;

    color: var(--muted);

    margin-top: 4px;

}


/* ============================================================
   EMPTY STATE
============================================================ */

.empty-state {

    text-align: center;

    padding: 40px 20px;

    color: var(--muted);

}


.empty-state > i {

    font-size: 50px;

    color: #cbd5e1;

}


.empty-state h5 {

    color: var(--dark);

    margin-top: 15px;

    font-weight: 800;

}


.empty-state p {

    margin-bottom: 20px;

}


@media (max-width: 576px) {

    .display-voeu {

        align-items: flex-start;

    }


    .display-voeu .badge {

        display: none;

    }

}