﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: #F8F9FA;
    color: #212529;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 30px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(108,99,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left,
.nav-right {
    flex: 0 0 auto;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.logo-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(108,99,255,0.3);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    color: white;
    box-shadow: 0 4px 20px rgba(108,99,255,0.35);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(108,99,255,0.45);
    }

.btn-secondary {
    background: rgba(108,99,255,0.08);
    color: #6C63FF;
}

    .btn-secondary:hover {
        background: rgba(108,99,255,0.15);
        transform: translateY(-2px);
    }

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 24px;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 40px 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    color: #1A1A2E;
}

.hero-text .highlight {
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 19px;
    color: #6C757D;
    line-height: 1.8;
    margin: 20px 0 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #E9ECEF;
}

    .hero-stats .number {
        font-size: 32px;
        font-weight: 900;
        color: #1A1A2E;
        display: block;
    }

    .hero-stats .label {
        font-size: 14px;
        color: #ADB5BD;
    }

/* ===== Hero Card ===== */
.card {
    background: white;
    border-radius: 32px;
    padding: 36px;
    box-shadow: 0 30px 80px rgba(108,99,255,0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-weight: 800;
    font-size: 18px;
    color: #1A1A2E;
}

.badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6C757D;
    font-weight: 500;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ECC71;
    display: inline-block;
}

.question p {
    font-weight: 700;
    margin-bottom: 12px;
}

.option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: white;
    border-radius: 8px;
    border: 2px solid #E9ECEF;
    margin-bottom: 8px;
}

    .option .circle {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 2px solid #DEE2E6;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .option.active .circle {
        border-color: #6C63FF;
        background: #6C63FF;
    }

        .option.active .circle::after {
            content: '✓';
            color: white;
            font-size: 12px;
        }

.progress {
    width: 100%;
    height: 6px;
    background: #E9ECEF;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 16px;
}

    .progress .fill {
        height: 100%;
        background: linear-gradient(135deg, #6C63FF, #FF6584);
        border-radius: 3px;
    }

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
    color: #ADB5BD;
}

/* ===== Features ===== */
.features {
    padding: 80px 40px;
    background: white;
    text-align: center;
}

    .features h2 {
        font-size: 38px;
        font-weight: 800;
        margin-bottom: 12px;
    }

    .features .sub {
        color: #ADB5BD;
        font-size: 18px;
        margin-bottom: 60px;
    }

.grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

    .grid .card {
        padding: 32px;
        background: #F8F9FA;
        border-radius: 24px;
        border: 1px solid transparent;
        transition: all 0.3s ease;
        box-shadow: none;
    }

        .grid .card:hover {
            transform: translateY(-8px);
            border-color: #6C63FF;
            box-shadow: 0 20px 60px rgba(108,99,255,0.1);
        }

        .grid .card .icon {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, #6C63FF, #FF6584);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            margin: 0 auto 16px;
        }

        .grid .card h3 {
            font-size: 20px;
            font-weight: 800;
            margin-bottom: 8px;
        }

        .grid .card p {
            color: #6C757D;
            line-height: 1.7;
        }

/* ===== Footer ===== */
footer {
    background: #1A1A2E;
    color: rgba(255,255,255,0.7);
    padding: 40px;
    text-align: center;
}

    footer .brand {
        font-size: 20px;
        font-weight: 800;
        color: white;
        margin-bottom: 8px;
    }

        footer .brand span {
            color: #8B83FF;
        }

    footer p {
        font-size: 14px;
    }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 16px;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .nav-center {
        gap: 6px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }

        .btn span {
            display: none;
        }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 34px;
    }

    .hero-text p {
        font-size: 17px;
        margin: 16px auto 24px;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 24px;
    }

        .hero-stats .number {
            font-size: 24px;
        }

    .features {
        padding: 60px 20px;
    }

        .features h2 {
            font-size: 30px;
        }

    .grid {
        grid-template-columns: 1fr;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 6px 10px;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .btn {
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 8px;
    }

        .btn i {
            font-size: 12px;
        }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-stats {
        gap: 16px;
    }

        .hero-stats .number {
            font-size: 18px;
        }

        .hero-stats .label {
            font-size: 11px;
        }
}
/* ===== Question Styles ===== */
.question-block {
    padding: 4px 0;
}

.q-text {
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
    font-size: 15px;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all .25s ease;
    background: #fff;
    font-size: 14px;
}

    .option:hover {
        border-color: #6C63FF;
        background: #f7f6ff;
        transform: translateX(-3px);
    }

    .option .circle {
        width: 15px;
        height: 15px;
        border-radius: 50%;
        border: 2px solid #bbb;
        flex-shrink: 0;
    }

/* ===== Modal 2030 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 30, 0.55);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .35s ease;
    z-index: 9999;
}

    .modal-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.modal-box {
    background: linear-gradient(145deg, #ffffff, #f4f4ff);
    border-radius: 24px;
    padding: 36px 32px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.25), 0 0 0 1px rgba(108, 99, 255, 0.08);
    transform: scale(0.85) translateY(20px);
    transition: all .4s cubic-bezier(.34,1.56,.64,1);
}

.modal-overlay.show .modal-box {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 20px;
    color: #fff;
}

    .modal-icon.success {
        background: linear-gradient(135deg, #6C63FF, #8E85FF);
        box-shadow: 0 0 0 8px rgba(108, 99, 255, 0.15);
        animation: pulseIcon 2s infinite;
    }

    .modal-icon.fail {
        background: linear-gradient(135deg, #FF6584, #FF8FA3);
        box-shadow: 0 0 0 8px rgba(255, 101, 132, 0.15);
        animation: pulseIconFail 2s infinite;
    }

@keyframes pulseIcon {
    0%, 100% {
        box-shadow: 0 0 0 8px rgba(108, 99, 255, 0.15);
    }

    50% {
        box-shadow: 0 0 0 16px rgba(108, 99, 255, 0.05);
    }
}

@keyframes pulseIconFail {
    0%, 100% {
        box-shadow: 0 0 0 8px rgba(255, 101, 132, 0.15);
    }

    50% {
        box-shadow: 0 0 0 16px rgba(255, 101, 132, 0.05);
    }
}

.modal-box h3 {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.modal-box p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-btn {
    background: linear-gradient(135deg, #6C63FF, #8E85FF);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

    .modal-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(108, 99, 255, 0.4);
    }
/* ===== Page Header ===== */
.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
    margin-block: var(--space-4) var(--space-3);
}

.page-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text-dark);
}

.page-subtitle {
    margin: 4px 0 0;
    color: var(--color-text-muted);
}

.page-header__actions {
    display: flex;
    gap: var(--space-1);
    flex-wrap: wrap;
}

/* ===== KPI Grid ===== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.kpi {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
}

.kpi__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.kpi__icon--primary {
    background: var(--color-primary);
}

.kpi__icon--info {
    background: var(--color-info);
}

.kpi__icon--success {
    background: var(--color-success);
}

.kpi__icon--warning {
    background: var(--color-warning);
}

.kpi__label {
    display: block;
    color: var(--color-text-muted);
    font-size: .875rem;
}

.kpi__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.2;
}

.kpi__hint {
    display: block;
    font-size: .8125rem;
    color: var(--color-text-light);
}

/* ===== Filters Bar ===== */
.filters-bar {
    padding: var(--space-3);
    margin-bottom: var(--space-3);
}

.filters-bar__row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: flex-end;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.field--grow {
    flex: 1 1 240px;
}

.field__label {
    font-size: .875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.field__control {
    position: relative;
}

.field__icon {
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    pointer-events: none;
}

.field__control .form-control {
    padding-inline-start: 40px;
}

.filters-bar__actions {
    display: flex;
    gap: var(--space-1);
    margin-inline-start: auto;
}

/* ===== Table ===== */
.table-card {
    padding: 0;
    overflow: hidden;
}

.table-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    border-bottom: 1px solid var(--color-border);
}

.section-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
    position: relative;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

    .data-table th, .data-table td {
        padding: 12px 16px;
        text-align: start;
        border-bottom: 1px solid var(--color-border);
        font-size: .9375rem;
    }

    .data-table thead th {
        background: var(--color-surface);
        color: var(--color-text-muted);
        font-weight: 700;
        font-size: .8125rem;
        text-transform: uppercase;
        letter-spacing: .02em;
    }

    .data-table tbody tr:hover {
        background: var(--color-secondary);
    }

    .data-table tbody tr:last-child td {
        border-bottom: 0;
    }

.th-sort {
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-weight: 700;
}

    .th-sort:hover {
        color: var(--color-primary);
    }

[aria-sort="ascending"] .th-sort i::before {
    content: "\f0de";
}

[aria-sort="descending"] .th-sort i::before {
    content: "\f0dd";
}

.th-actions {
    width: 1%;
    white-space: nowrap;
}

/* ===== Skeleton ===== */
.skeleton {
    display: inline-block;
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-secondary) 25%, #ececf2 37%, var(--color-secondary) 63%);
    background-size: 400% 100%;
    animation: skeleton 1.4s ease infinite;
}

@keyframes skeleton {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* ===== Empty State ===== */
.empty-state {
    padding: var(--space-6) var(--space-3);
    text-align: center;
    color: var(--color-text-muted);
}

.empty-state__icon {
    font-size: 3rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-2);
}

.empty-state__title {
    margin: 0 0 4px;
    color: var(--color-text-dark);
}

.empty-state__text {
    margin: 0 0 var(--space-3);
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-3);
    border-top: 1px solid var(--color-border);
}

.pagination__list {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .pagination__list button {
        min-width: 36px;
        min-height: 36px;
        padding: 0 8px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--color-border);
        background: var(--color-background);
        cursor: pointer;
        font-weight: 600;
        color: var(--color-text-dark);
    }

        .pagination__list button[aria-current="page"] {
            background: var(--color-primary);
            color: #fff;
            border-color: var(--color-primary);
        }

.btn-sm {
    min-height: 36px;
    padding: 6px 10px;
    font-size: .875rem;
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .filters-bar__actions {
        width: 100%;
        margin-inline-start: 0;
    }

        .filters-bar__actions .btn {
            flex: 1;
        }
}