/* ============================================
   VAZIR FONT IMPORT
   ============================================ */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff2') format('woff2'),
         url('../fonts/Vazir.woff') format('woff'),
         url('../fonts/Vazir.ttf') format('truetype'),
         url('../fonts/Vazir.eot') format('embedded-opentype');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   DESIGN TOKENS & COLOR VARIABLES
   ============================================ */
:root {
    --primary: #2563eb;
    --primary-dark: #102b83;
    --primary-light: #689ff7;
    --success: #16a34a;
    --success-light: #d1fae5;
    --warning: #ea580c;
    --danger-light: #fee2e2;
    --danger: #dc2626;
    --info: #0891b2;
    --warning-light: #fef3c7;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --light: #e3f1ff;
    --dark: #1e293b;
    --border: #8abbdb;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
    --box-shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --box-shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --box-shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --bg-gradient-start: #00599963;
    --bg-gradient-end: #4500bb5e;
    --bg-gradient-primary: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    --bg-gradient-soft: linear-gradient(135deg, #f8fafc, #8a9fbb);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Tahoma', 'Segoe UI', Georgia, sans-serif;
    background: var(--bg-gradient-primary);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--dark);
}



/* پس‌زمینه صفحات احراز هویت (لاگین و ثبت‌نام) */
body.auth-page {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    min-height: 100vh;
}

/* حذف پس‌زمینه تکراری از login-container */
.login-container {
    background: transparent; /* یا حذف خط background از این کلاس */
    padding: 2rem 1rem;
}

/* اطمینان از نمایش درست کارت لاگین */
.login-card {
    background: white;
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 440px;
    margin: auto;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.page-title {
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-muted);
    margin: 0;
}

.card-title {
    color: var(--dark);
    font-weight: 900;
    margin-bottom: 0.75rem;
}

.text-muted-sm {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.text-info-label {
    color: var(--dark);
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--box-shadow-sm);
}

.header-section-compact {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--box-shadow-sm);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.grid-2col-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   INFO BOXES & CARDS
   ============================================ */
.info-box {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.info-box-success {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--success);
}

.info-box-warning {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--warning);
}

.info-box-danger {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--danger);
}

/* ============================================
   ALERT BANNERS
   ============================================ */
.alert-info-banner {
    background: #e0f2fe;
    border-left: 4px solid var(--info);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #164e63;
}

.alert-success-banner {
    background: #dcfce7;
    border-left: 4px solid var(--success);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #166534;
}

.alert-warning-banner {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #92400e;
}

/* ============================================
   BADGES & PILLS
   ============================================ */
.badge-primary {
    background-color: #e0e7ff;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-small {
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-primary-small {
    background-color: #e0e7ff;
    color: var(--primary);
}

.badge-timer {
    background: #e0e7ff;
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.badge-timer.danger {
    background: linear-gradient(135deg, var(--danger) 0%, #b91c1c 100%);
    color: white;
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress-container {
    background: white;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-label {
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    font-size: 0.9rem;
}

.progress-bar-wrapper {
    flex: 1;
    background-color: var(--border);
    height: 6px;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    height: 100%;
    width: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group-custom {
    margin-bottom: 1.5rem;
}

.form-label-custom {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-input-custom {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Vazir', sans-serif;
    transition: all 0.3s ease;
}

.form-input-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* ============================================
   QUESTION CARD
   ============================================ */
.question-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow-sm);
}

.question-header {
    border-bottom: 2px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.question-number {
    display: inline-block;
    background: #e0e7ff;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.question-text {
    margin: 0.25rem 0;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.6;
}

.question-score {
    color: var(--warning);
    font-weight: 600;
}

/* ============================================
   RADIO OPTIONS
   ============================================ */
.option-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.option-input {
    margin: 0;
    cursor: pointer;
}

.option-label {
    flex: 1;
    padding: 1rem;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.option-label:hover {
    border-color: var(--primary);
}

.option-label.selected {
    background: #92bb85;
    
    border-color: var(--primary);
    color: #ffffff;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-group-custom {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-custom {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Vazir', sans-serif;
}

.btn-custom-primary {
    background-color: var(--primary);
    color: white;
}

.btn-custom-primary:hover {
    background-color: var(--primary-dark);
}

.btn-custom-success {
    background-color: var(--success);
    color: white;
}

.btn-custom-success:hover {
    background-color: #15803d;
}

.btn-custom-danger {
    background-color: var(--danger);
    color: white;
}

.btn-custom-danger:hover {
    background-color: #b91c1c;
}

.btn-custom-secondary {
    background-color: #e2e8f0;
    color: var(--dark);
}

.btn-custom-secondary:hover {
    background-color: var(--border);
}

.btn-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.copy-link-btn {
    transition: all 0.3s ease;
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state-title {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* ============================================
   STATISTICS & CARDS
   ============================================ */
.score-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.score-card-row {
    display: flex;
    align-items: center;
}

.score-card-col-8 {
    flex: 1;
}

.score-card-col-4 {
    text-align: center;
}

.score-circle {
    background: rgba(255,255,255,0.2);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.score-percentage {
    font-size: 2.5rem;
    font-weight: 700;
}

.score-percentage-small {
    font-size: 0.8rem;
}

/* ============================================
   DETAIL BOXES
   ============================================ */
.details-box {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.95rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.detail-value {
    color: var(--dark);
    font-weight: 600;
}

.detail-value-success {
    color: var(--success);
    font-weight: 600;
}

.detail-value-danger {
    color: var(--danger);
    font-weight: 600;
}

/* ============================================
   DIVIDERS
   ============================================ */
.divider {
    border-top: 2px solid var(--border);
}

.divider-sm {
    border-top: 1px solid var(--border);
}

/* ============================================
   TEXT ALIGNMENT & UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.dir-ltr {
    direction: ltr;
    text-align: left;
    font-family: monospace;
}

.font-mono {
    font-family: monospace;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

/* ============================================
   SPACING UTILITIES
   ============================================ */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-dark);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    letter-spacing: -0.5px;
}

.navbar .btn {
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* ============================================
   TABLES
   ============================================ */
.table-custom {
    width: 100%;
    margin-bottom: 1rem;
}

.table-header-row {
    border-bottom: 2px solid var(--border);
}

.table-header-cell {
    padding: 0.75rem;
    font-weight: 600;
    color: var(--dark);
}

.table-cell {
    padding: 0.75rem;
    color: var(--dark);
}

.table-cell-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .print-section {
        border: none;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .no-print {
        display: none !important;
    }
}

/* ============================================
   NAVBAR BUTTONS
   ============================================ */
.navbar .btn-light {
    background-color: white;
    color: var(--primary);
    border: none;
}

.navbar .btn-light:hover {
    background-color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar .btn-warning {
    background-color: var(--warning);
    color: white;
    border: none;
}

.navbar .btn-warning:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-success {
    background-color: #dcfce7;
    color: #15803d;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background-color: #cffafe;
    color: #164e63;
    border-left: 4px solid var(--info);
}

/* ============================================
   CARDS - ENHANCED
   ============================================ */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-header {
    border-bottom: 2px solid var(--border);
    padding: 1.5rem;
    background-color: white;
    border-radius: 12px 12px 0 0;
}

.card-header h5,
.card-header h6 {
    margin-bottom: 0.25rem;
    color: var(--dark);
    font-weight: 700;
}

.card-body {
    padding: 1.5rem;
}

/* ============================================
   FORM ELEMENTS - ENHANCED
   ============================================ */
.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ============================================
   BUTTONS - ENHANCED
   ============================================ */
.btn {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-info {
    background-color: var(--info);
    color: white;
}

.btn-info:hover {
    background-color: #0e7490;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.btn-outline-secondary {
    border: 2px solid var(--border);
    color: var(--text-muted);
    background-color: white;
}

.btn-outline-secondary:hover {
    background-color: var(--light);
    border-color: var(--dark);
    color: var(--dark);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
}

/* ============================================
   GRID UTILITIES
   ============================================ */
.d-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ============================================
   DASHBOARD TABLE STYLES
   ============================================ */
.table {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-bottom: none;
    padding: 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    background-color: white;
}

.table tbody tr:hover td {
    background-color: rgba(37, 99, 235, 0.04);
}

.table .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
}

.table .badge-primary {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.table .badge-primary-small {
    background-color: #e0e7ff;
    color: var(--primary);
}

/* Responsive table fix for small screens */
@media (max-width: 768px) {
    .table thead th {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
    .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    .table .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   BADGES - ENHANCED
   ============================================ */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge.bg-primary {
    background-color: rgba(37, 99, 235, 0.1) !important;
    color: var(--primary) !important;
}

.badge.bg-success {
    background-color: rgba(22, 163, 74, 0.1) !important;
    color: var(--success) !important;
}

/* ============================================
   TEXT UTILITIES - ENHANCED
   ============================================ */
.text-muted {
    color: var(--text-muted) !important;
}

.border-success {
    border-color: var(--success) !important;
}

.border-info {
    border-color: var(--info) !important;
}

.border-warning {
    border-color: var(--warning) !important;
}

.table-light {
    background-color: var(--light);
}

/* ============================================
    LOGIN PAGE STYLES
    ============================================ */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}


.login-card {
    background: white;
    backdrop-filter: blur(20px);
    border-radius: var(--radius, 1rem);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2.5rem 2rem;
    animation: cardEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 440px;
    margin: auto;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light, #818cf8), var(--primary));
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    transition: transform var(--transition, 0.2s);
}

.icon-wrapper:hover {
    transform: rotate(-5deg) scale(1.05);
}

.icon-wrapper .icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.login-header h1 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-header p::before,
.login-header p::after {
    content: '';
    height: 1px;
    width: 30px;
    background: var(--border);
    display: inline-block;
}

.login-card .form-group {
    margin-bottom: 1.5rem;
}

.login-card .form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.2px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.5;
    transition: opacity var(--transition, 0.2s);
    pointer-events: none;
}

.login-card .form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 2.8rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm, 0.75rem);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--light);
    transition: all var(--transition, 0.2s);
    color: var(--dark);
}

.login-card .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.login-card .form-group input:focus ~ .input-icon,
.login-card .form-group input:focus + .input-icon {
    opacity: 1;
}

.login-card .form-group input::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}

.btn-login {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm, 0.75rem);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition, 0.2s);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.2px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1), 0 0 30px rgba(99, 102, 241, 0.5);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(-1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.login-card .alert {
    margin-bottom: 1.5rem;
    border: none;
    border-radius: var(--radius-sm, 0.75rem);
    padding: 1rem 1.2rem;
    animation: alertPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
}

@keyframes alertPop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-card .alert .btn-close {
    margin-right: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition, 0.2s);
    padding: 0.2rem;
}

.login-card .alert .btn-close:hover {
    opacity: 1;
}

.info-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.info-footer p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
    .login-header h1 {
        font-size: 1.5rem;
    }
    .icon-wrapper {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
}

/* ============================================
    REPORT CARD STYLES
    ============================================ */
.report-card-wrapper {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.report-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.report-header {
    text-align: center;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.report-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.report-header-icon {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.report-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.15rem;
    letter-spacing: -0.5px;
}

.info-card {
    background: var(--light);
    border-radius: 12px;
    padding: 1rem;
    height: 100%;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.info-card-student {
    border-right: 3px solid var(--primary);
}

.info-card-exam {
    border-right: 3px solid var(--success);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.info-card-icon {
    font-size: 1rem;
}

.info-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.info-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.8rem;
}

.info-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
}

.info-value {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.8rem;
    text-align: left;
}

.score-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.score-section::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.score-section::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: -25px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.score-details {
    position: relative;
    z-index: 1;
}

.score-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.score-highlight {
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}

.score-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.report-card .badge-success {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.report-card .badge-danger {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.score-circle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.score-circle {
    width: 100px;
    height: 100px;
}

.score-circle-svg {
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2.5;
}

.circle-fill {
    fill: none;
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
    animation: circleFill 1.5s ease-out forwards;
}

.circle-text {
    fill: white;
    font-size: 0.5rem;
    font-weight: 800;
    text-anchor: middle;
    font-family: inherit;
}

@keyframes circleFill {
    from {
        stroke-dasharray: 0, 100;
    }
}

.details-section {
    background: var(--light);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
}

.details-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.report-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.detail-card {
    background: white;
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.detail-success {
    border-top: 3px solid var(--success);
}

.detail-danger {
    border-top: 3px solid var(--danger);
}

.detail-icon {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.detail-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--dark);
}

.detail-success .detail-value {
    color: var(--success);
}

.detail-danger .detail-value {
    color: var(--danger);
}

.btn-print-custom {
    padding: 0.75rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-print-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}

/* ============================================
    STUDENT RESULT PAGE STYLES
    ============================================ */
.result-wrapper {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: white;
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.success-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.result-card .page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.result-card .page-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.result-info-box {
    background: var(--light);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    text-align: right;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.result-info-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.info-row:last-child {
    border-bottom: none;
}

.result-info-box .info-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.result-info-box .info-value {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
}

.result-score-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.result-score-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.score-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.score-value {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    line-height: 1.2;
}

.score-total {
    font-size: 0.95rem;
    opacity: 0.85;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.percentage-box {
    background: #f0f4ff;
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
}

.percentage-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.percentage-circle svg {
    position: absolute;
    top: 0;
    left: 0;
}

.percentage-circle svg circle:last-child {
    animation: fillProgress 1.5s ease-out forwards;
}

@keyframes fillProgress {
    from {
        stroke-dashoffset: 339.292;
    }
}

.percentage-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    z-index: 1;
}

@media (max-width: 576px) {
    .result-card {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }
    .score-value {
        font-size: 2.5rem;
    }
    .success-icon {
        font-size: 3.5rem;
    }
    .result-info-box {
        padding: 1rem;
    }
}

/* ============================================
   INLINE STYLE UTILITIES
   ============================================ */
.page-title-custom {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.page-subtitle-custom {
    color: #64748b;
    margin: 0;
}

.text-muted-custom {
    color: #64748b;
}

.bg-info-light {
    background-color: #d4e4f3;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.bg-blue-light {
    background-color: #e0ecf8;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #37465c;
}

.bg-blue-light .text-center-custom {
    text-align: center;
}

.bg-blue-light strong {
    color: #37465c;
}

.bg-gray-light {
    background-color: #f8fafc;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.bg-cyan-info {
    background-color: #e0f2fe;
    border-left: 4px solid var(--info);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.bg-cyan-info strong {
    color: #164e63;
    display: block;
    margin-bottom: 0.5rem;
}

.bg-cyan-info div {
    color: #164e63;
    line-height: 1.6;
}

.bg-danger-light {
    background-color: #fee2e2;
    border-left: 4px solid var(--danger);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    color: #991b1b;
}

.bg-success-light {
    background-color: #dcfce7;
    border-left: 4px solid var(--success);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    color: #15803d;
}

.card-header-green {
    background-color: #019b0e;
    color: white;
}

.card-header-green h6 {
    color: white;
}

.card-header-success {
    background-color: var(--success);
    color: white;
}

.text-light-custom {
    color: white !important;
}

.fw-bold-custom {
    font-weight: bold;
}

.fs-4-custom {
    font-size: 1.25rem;
}

.text-center-custom {
    text-align: center;
}

.empty-state-custom {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-state-icon-custom {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state-title-custom {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.empty-state-icon-sm {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.border-radius-custom {
    border-radius: 8px;
}

.gap-1rem {
    gap: 1rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-between-gap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.flex-row {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.mt-1-5rem {
    margin-top: 1.5rem;
}

.mt-2-5rem {
    margin-top: 2.5rem;
}

.mb-0-25rem {
    margin-bottom: 0.25rem;
}

.text-primary-custom {
    color: #2563eb;
}

.text-success-custom {
    color: #16a34a;
}

.text-orange-custom {
    color: #ea580c;
}

.status-passed {
    background-color: #dcfce7;
    color: #15803d;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-failed {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-card-green {
    border-top: 4px solid #16a34a;
}

.stat-card-blue {
    border-top: 4px solid #2563eb;
}

.stat-card-orange {
    border-top: 4px solid #ea580c;
}

.stat-card-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-card-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.inline-flex-between {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.8rem;
}

/* ============================================
   DROPDOWN STYLES
   ============================================ */
.dropdown-item {
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: var(--light);
    padding-right: 1rem;
}

.dropdown-item.text-danger:hover {
    background: var(--danger) !important;
    color: white !important;
}

.dropdown-item:focus, .dropdown-item:focus-visible {
    outline: none;
    box-shadow: none;
}

/* ============================================
   INPUT GROUPS
   ============================================ */
.input-group-text {
    background-color: var(--light);
    border: 2px solid var(--border);
    color: var(--dark);
    font-weight: 600;
    padding: 0.75rem 1rem;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    main {
        padding: 1rem 0;
    }

    .header-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .grid-2col,
    .grid-2col-large,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .btn-group-custom {
        flex-direction: column;
    }

    .btn-custom {
        width: 100%;
    }

    .score-card-row {
        flex-direction: column;
    }

    .score-card-col-4 {
        margin-top: 1rem;
    }

    .navbar .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.25rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table-responsive {
        font-size: 0.9rem;
    }

    .report-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .report-card {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        padding: 12px !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .result-card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        break-inside: avoid;
    }

    .result-card::before {
        background: var(--primary) !important;
    }

    .result-score-card {
        background: var(--primary) !important;
    }

    .percentage-box {
        background: #f0f4ff !important;
    }

    .btn-print-custom, .no-print {
        display: none !important;
    }

    .report-header-icon {
        font-size: 1.5rem !important;
    }

    .report-title {
        font-size: 1rem !important;
    }

    .info-card {
        padding: 8px !important;
    }

    .score-section {
        padding: 10px !important;
        background: var(--primary) !important;
    }

    .score-circle {
        width: 70px !important;
        height: 70px !important;
    }

    .details-section {
        padding: 8px !important;
    }

    @page {
        size: A4;
        margin: 8mm;
    }
}



/* --------------------------------------------------- */



    /* Card */
    .exam-card {
        background: var(--bg-white);
        border-radius: 20px;
        box-shadow: var(--shadow-lg);
        overflow: hidden;
        animation: fadeSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes fadeSlideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .exam-card-header {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        padding: 1.75rem 2rem;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .exam-card-header::before {
        content: '';
        position: absolute;
        top: -30px;
        right: -30px;
        width: 100px;
        height: 100px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

    .exam-card-header::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: -20px;
        width: 70px;
        height: 70px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 50%;
    }

    .exam-header-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        position: relative;
        z-index: 1;
    }

    .exam-title {
        color: white;
        font-size: 1.35rem;
        font-weight: 800;
        margin: 0;
        position: relative;
        z-index: 1;
        letter-spacing: -0.3px;
    }

    .exam-card-body {
        padding: 2rem;
    }

    /* Status Styles */
    .status-container {
        text-align: center;
        padding: 1rem 0;
    }

    .status-icon {
        font-size: 3.5rem;
        margin-bottom: 1rem;
        animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    }

    @keyframes scaleIn {
        from {
            transform: scale(0.5);
            opacity: 0;
        }
        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    .status-title {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }

    .status-message {
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
    }

    .time-box {
        border-radius: 12px;
        padding: 1rem 1.25rem;
        margin-bottom: 1.5rem;
        text-align: center;
        transition: transform 0.2s;
    }

    .time-box:hover {
        transform: translateY(-2px);
    }

    .time-box-start {
        background: var(--success-light);
        border: 2px solid var(--success);
    }

    .time-box-label {
        font-weight: 700;
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }

    .time-box-start .time-box-label {
        color: #088135;
    }

    .time-box-value {
        color: var(--text-primary);
        font-weight: 600;
        font-size: 0.95rem;
    }

    .time-box-end {
        background: var(--danger-light);
        border: 2px solid var(--danger);
    }

    .time-box-end .time-box-label {
        color: #991b1b;
    }

    .btn-back-custom {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.65rem 1.75rem;
        border-radius: 10px;
        font-size: 0.95rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: var(--bg-white);
        color: var(--text-primary);
        border: 2px solid var(--border);
    }

    .btn-back-custom:hover {
        background: var(--bg-light);
        border-color: var(--primary);
        color: var(--primary);
        transform: translateY(-2px);
    }

    /* Exam Info Box */
    .exam-info-box {
        background: var(--bg-light);
        border-radius: 14px;
        padding: 1.25rem;
        margin-bottom: 1.75rem;
        border: 1px solid var(--border);
        border-right: 4px solid var(--primary);
        transition: box-shadow 0.3s;
    }

    .exam-info-box:hover {
        box-shadow: var(--shadow);
    }

    .exam-info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .exam-info-item {
        padding: 0.4rem 0;
    }

    .exam-info-label {
        display: block;
        color: var(--text-secondary);
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
        font-weight: 500;
    }

    .exam-info-value {
        font-weight: 700;
        color: var(--text-primary);
        font-size: 0.9rem;
    }

    /* Form */
    .exam-form {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .form-group-custom {
        display: flex;
        flex-direction: column;
    }

    .form-label-custom {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .label-icon {
        font-size: 1.1rem;
    }

    .form-input-custom {
        padding: 0.85rem 1rem;
        border: 2px solid var(--border);
        border-radius: 12px;
        font-size: 0.95rem;
        color: var(--text-primary);
        background: var(--bg-white);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        outline: none;
        font-family: inherit;
    }

    .form-input-custom::placeholder {
        color: var(--text-muted);
    }

    .form-input-custom:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    }

    .form-input-custom:hover {
        border-color: #cbd5e1;
    }

    /* Start Button */
    .btn-start-exam {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: 1rem 2rem;
        border-radius: 14px;
        font-size: 1.1rem;
        font-weight: 700;
        border: none;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
        position: relative;
        overflow: hidden;
    }

    .btn-start-exam::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .btn-start-exam:hover::before {
        left: 100%;
    }

    .btn-start-exam:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(79, 70, 229, 0.5);
    }

    .btn-start-exam:active {
        transform: translateY(-1px);
    }

    .btn-arrow {
        font-size: 1.2rem;
        transition: transform 0.3s;
    }

    .btn-start-exam:hover .btn-arrow {
        transform: translateX(-4px);
    }

    /* Responsive */
    @media (max-width: 576px) {
        .exam-card-body {
            padding: 1.5rem 1.25rem;
        }

        .exam-card-header {
            padding: 1.25rem 1.5rem;
        }

        .exam-title {
            font-size: 1.15rem;
        }

        .exam-info-grid {
            grid-template-columns: 1fr;
            gap: 0.5rem;
        }

        .btn-start-exam {
            font-size: 1rem;
            padding: 0.85rem 1.5rem;
        }
    }


/* منو */
/* ============================================
   MODERN OFF CANVAS MENU (SIDEBAR)
   ============================================ */

/* پس‌زمینه و حاشیه‌های منوی کناری */
.offcanvas {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-right: none;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

/* هدر منو */
.offcanvas-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
}

.offcanvas-header .offcanvas-title {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.offcanvas-header .btn-close {
    background-color: white;
    opacity: 0.8;
    border-radius: 50%;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.offcanvas-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
    background-color: white;
}

/* بدنه منو */
.offcanvas-body {
    padding: 1.5rem 1rem;
}

/* بخش اطلاعات کاربر */
.offcanvas-body .bg-light {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd) !important;
    border-radius: 16px;
    padding: 1rem !important;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.offcanvas-body .bg-light .fw-bold {
    font-size: 1.1rem;
    color: var(--primary-dark);
    display: block;
    text-align: center;
}

.offcanvas-body .bg-light .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    margin-top: 0.5rem;
    display: inline-block;
}

/* دکمه‌های منو */
.offcanvas-body .list-unstyled .btn {
    text-align: right;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.75rem;
    border: none;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.offcanvas-body .list-unstyled .btn::after {
    content: "←";
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.offcanvas-body .list-unstyled .btn:hover::after {
    opacity: 1;
    transform: translateX(-4px);
}

.offcanvas-body .list-unstyled .btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateX(-4px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.offcanvas-body .list-unstyled .btn-outline-danger {
    background-color: white;
    color: var(--danger);
    border: 1px solid var(--danger-light);
}

.offcanvas-body .list-unstyled .btn-outline-danger:hover {
    background-color: var(--danger);
    color: white;
    border-color: var(--danger);
}


@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 576px) {
    .offcanvas {
        width: 85% !important;
        max-width: 280px;
    }
    
    .offcanvas-header {
        padding: 1rem;
    }
    
    .offcanvas-header .offcanvas-title {
        font-size: 1.1rem;
    }
    
    .offcanvas-body {
        padding: 1rem;
    }
    
    .offcanvas-body .list-unstyled .btn {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .offcanvas-body .bg-light .fw-bold {
        font-size: 0.95rem;
    }
}

/* برای تبلت */
@media (min-width: 577px) and (max-width: 992px) {
    .offcanvas {
        width: 70% !important;
        max-width: 350px;
    }
}