:root {
    --eduka-bg: #f4f7fb;
    --eduka-sidebar: #0f172a;
    --eduka-sidebar-soft: #1e293b;
    --eduka-primary: #2563eb;
    --eduka-primary-soft: #eff6ff;
    --eduka-text: #1f2937;
    --eduka-muted: #64748b;
    --eduka-border: #e5e7eb;
    --eduka-card: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--eduka-bg);
    color: var(--eduka-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

.eduka-wrapper {
    display: flex;
    min-height: 100vh;
}

.eduka-sidebar {
    width: 270px;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #fff;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.eduka-brand {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.eduka-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #2563eb;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 20px;
}

.eduka-brand-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .2px;
}

.eduka-brand-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin-top: -2px;
}

.eduka-menu {
    padding: 18px 14px;
    flex: 1;
}

.eduka-menu-title {
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 12px 12px 8px;
}

.eduka-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    text-decoration: none;
    padding: 11px 13px;
    border-radius: 14px;
    margin-bottom: 6px;
    font-size: 14px;
    transition: all .18s ease;
}

.eduka-menu a:hover,
.eduka-menu a.active {
    background: rgba(37,99,235,.18);
    color: #fff;
}

.eduka-menu .icon {
    width: 22px;
    text-align: center;
    opacity: .95;
}

.eduka-sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.eduka-user-box {
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 12px;
}

.eduka-avatar {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: #2563eb;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.eduka-user-name {
    font-size: 13px;
    font-weight: 700;
}

.eduka-user-role {
    font-size: 11px;
    color: #94a3b8;
}

.eduka-main {
    margin-left: 270px;
    width: calc(100% - 270px);
    min-height: 100vh;
}

.eduka-topbar {
    height: 72px;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--eduka-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.eduka-page-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

.eduka-page-subtitle {
    font-size: 13px;
    color: var(--eduka-muted);
    margin: 2px 0 0;
}

.eduka-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eduka-btn {
    border: 0;
    border-radius: 14px;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eduka-btn-primary {
    background: var(--eduka-primary);
    color: #fff;
}

.eduka-btn-light {
    background: #f1f5f9;
    color: #0f172a;
}

.eduka-content {
    padding: 28px;
}

.eduka-grid {
    display: grid;
    gap: 18px;
}

.eduka-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eduka-card {
    background: var(--eduka-card);
    border: 1px solid var(--eduka-border);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(15,23,42,.05);
}

.eduka-card-body {
    padding: 22px;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -44px;
    top: -44px;
    background: var(--eduka-primary-soft);
    border-radius: 50%;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: var(--eduka-primary-soft);
    color: var(--eduka-primary);
    font-size: 22px;
    margin-bottom: 18px;
}

.stat-label {
    color: var(--eduka-muted);
    font-size: 13px;
    font-weight: 600;
}

.stat-value {
    font-size: 30px;
    font-weight: 900;
    margin-top: 4px;
}

.stat-foot {
    font-size: 12px;
    color: #16a34a;
    margin-top: 10px;
    font-weight: 700;
}

.eduka-two-cols {
    grid-template-columns: 1.45fr .85fr;
    margin-top: 18px;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.card-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
}

.card-subtitle {
    color: var(--eduka-muted);
    font-size: 13px;
    margin-top: 3px;
}

.eduka-table {
    width: 100%;
    border-collapse: collapse;
}

.eduka-table th {
    text-align: left;
    color: var(--eduka-muted);
    font-size: 12px;
    font-weight: 800;
    padding: 12px 10px;
    border-bottom: 1px solid var(--eduka-border);
}

.eduka-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.badge-soft {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-yellow {
    background: #fef9c3;
    color: #854d0e;
}

.quick-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--eduka-border);
    border-radius: 18px;
    text-decoration: none;
    color: var(--eduka-text);
    margin-bottom: 12px;
    transition: all .18s ease;
}

.quick-item:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
    transform: translateY(-1px);
}

.quick-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: var(--eduka-primary-soft);
    color: var(--eduka-primary);
    display: grid;
    place-items: center;
}

.quick-title {
    font-weight: 800;
    font-size: 14px;
}

.quick-subtitle {
    font-size: 12px;
    color: var(--eduka-muted);
}

.mobile-menu-btn {
    display: none;
}

@media (max-width: 1100px) {
    .eduka-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eduka-two-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .eduka-sidebar {
        transform: translateX(-100%);
        transition: .2s ease;
    }

    .eduka-sidebar.show {
        transform: translateX(0);
    }

    .eduka-main {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .eduka-content {
        padding: 18px;
    }

    .eduka-topbar {
        padding: 0 18px;
    }

    .eduka-stats {
        grid-template-columns: 1fr;
    }
}

.eduka-input {
    width: 100%;
    border: 1px solid var(--eduka-border);
    background: #fff;
    border-radius: 14px;
    padding: 11px 13px;
    font-size: 14px;
    color: var(--eduka-text);
    outline: none;
    transition: all .18s ease;
}

.eduka-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}

.eduka-alert {
    border-radius: 16px;
    padding: 13px 15px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}

.eduka-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.eduka-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.eduka-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.eduka-field label {
    display: block;
    font-size: 13px;
    color: var(--eduka-muted);
    font-weight: 800;
    margin-bottom: 7px;
}

.eduka-field.span-2 {
    grid-column: span 2;
}

@media (max-width: 800px) {
    .eduka-form-grid {
        grid-template-columns: 1fr;
    }

    .eduka-field.span-2 {
        grid-column: span 1;
    }
}

.badge-red {
    background: #fee2e2;
    color: #991b1b;
}

.eduka-filters {
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 10px;
    margin-bottom: 18px;
}

.eduka-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.detail-group {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.detail-item {
    padding: 14px;
    border: 1px solid var(--eduka-border);
    border-radius: 16px;
    background: #f8fafc;
}

.detail-item label {
    display: block;
    color: var(--eduka-muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
}

.detail-item div {
    font-size: 14px;
    font-weight: 700;
    color: var(--eduka-text);
}

@media (max-width: 900px) {
    .eduka-filters,
    .eduka-grid-2 {
        grid-template-columns: 1fr;
    }
}

.eduka-alert-warning {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde68a;
}

.badge-red {
    background: #fee2e2;
    color: #991b1b;
}

.eduka-sidebar-backdrop {
    display: none;
}

@media (max-width: 900px) {
    .eduka-wrapper {
        display: block;
    }

    .eduka-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 285px;
        max-width: 86vw;
        height: 100vh;
        z-index: 2000;
        transform: translateX(-105%);
        transition: transform .22s ease;
        overflow-y: auto;
    }

    .eduka-sidebar.show {
        transform: translateX(0);
    }

    .eduka-main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .eduka-topbar {
        position: sticky;
        top: 0;
        z-index: 1000;
        min-height: auto;
        padding: 14px 16px;
        gap: 12px;
        align-items: flex-start;
    }

    .mobile-menu-btn {
        display: inline-flex !important;
    }

    .eduka-top-actions {
        display: none !important;
    }

    .eduka-content {
        padding: 16px !important;
    }

    .eduka-page-title {
        font-size: 22px !important;
        line-height: 1.2;
    }

    .eduka-page-subtitle {
        font-size: 12px !important;
        line-height: 1.4;
    }

    .eduka-sidebar-backdrop.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .48);
        z-index: 1900;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .eduka-card,
    .metric-card,
    .report-card {
        border-radius: 22px !important;
    }

    .eduka-table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .eduka-table {
        min-width: 850px;
    }
}