/**
 * EduIndustri Demo Portal - Official Stylesheet
 * Matched to EduIndustri Design System (Inter / Outfit / Plus Jakarta Sans)
 * Brand Colors: #f97316 (Brand Orange), #0f172a (Brand Dark), #1e293b (Slate 800)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
    --brand-orange: #f97316;
    --brand-orange-hover: #ea580c;
    --brand-orange-light: #fff7ed;
    --brand-orange-border: #fed7aa;
    --brand-dark: #0f172a;
    --brand-navy: #1e2230;
    --brand-blue: #2563eb;
    --brand-blue-light: #eff6ff;
    --brand-emerald: #10b981;
    --brand-emerald-light: #ecfdf5;
    --brand-amber: #f59e0b;
    --brand-amber-light: #fffbeb;
    --brand-red: #ef4444;
    --brand-indigo: #6366f1;
    --brand-indigo-light: #e0e7ff;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.04);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
    --shadow-orange: 0 10px 25px -3px rgba(249, 115, 22, 0.28);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--slate-800);
    background-color: var(--slate-50);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea {
    font-family: inherit;
}

/* =========================================================================
   LOGIN SCREEN
   ========================================================================= */

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
}

@media (min-width: 1400px) {
    .login-shell {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #ffffff;
    background: linear-gradient(135deg, #1a2233 0%, #0f1624 60%, #1a2233 100%);
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.6;
    pointer-events: none;
}

.glow-orange {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

.glow-blue {
    position: absolute;
    bottom: -120px;
    right: -120px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

.brand-header {
    position: relative;
    z-index: 2;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.brand-logo-img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background: #ffffff;
    padding: 2px;
}

.brand-title-wrap {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.login-brand-body {
    position: relative;
    z-index: 2;
    margin: 40px 0;
    max-width: 580px;
}

.brand-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    color: #fdba74;
    letter-spacing: 0.03em;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.login-brand-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.8vw, 50px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin: 0 0 20px;
}

.login-brand-desc {
    color: var(--slate-300);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 32px;
}

.brand-features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.brand-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--slate-200);
    font-weight: 600;
}

.feature-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--brand-orange);
    font-size: 13px;
    flex-shrink: 0;
}

.login-brand-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: var(--slate-400);
}

.partner-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.partner-logo-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 3px 8px;
    height: 24px;
}

.partner-logo-pill img {
    height: 18px;
    width: auto;
    object-fit: contain;
}

/* Login Panel Side (Right) */
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #ffffff;
}

.login-form-container {
    width: 100%;
    max-width: 440px;
}

.mobile-logo-header {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.panel-header {
    margin-bottom: 28px;
}

.panel-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand-orange);
    margin-bottom: 8px;
}

.panel-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand-dark);
    margin: 0 0 8px;
}

.panel-subtitle {
    color: var(--slate-500);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.demo-credential-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--brand-orange-light);
    border: 1px solid var(--brand-orange-border);
    margin-bottom: 24px;
    font-size: 12px;
}

.demo-cred-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9a3412;
}

.demo-cred-info i {
    color: var(--brand-orange);
    font-size: 14px;
}

.demo-cred-info strong {
    font-family: monospace;
    font-size: 13px;
    color: #7c2d12;
    background: rgba(249, 115, 22, 0.12);
    padding: 1px 6px;
    border-radius: 4px;
}

.btn-quick-fill {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--brand-orange);
    color: #ffffff;
    border: none;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-quick-fill:hover {
    background: var(--brand-orange-hover);
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-700);
    margin-bottom: 8px;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrap .input-icon {
    position: absolute;
    left: 16px;
    color: var(--slate-400);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
}

.form-control {
    width: 100%;
    padding: 13px 16px 13px 44px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-900);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.form-control::placeholder {
    color: var(--slate-400);
    font-weight: 400;
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-control:focus + .input-icon,
.input-icon-wrap:focus-within .input-icon {
    color: var(--brand-orange);
}

.btn-toggle-pwd {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--slate-400);
    cursor: pointer;
    padding: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-pwd:hover {
    color: var(--slate-600);
}

.btn-submit-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 10px;
    background: var(--brand-orange);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-orange);
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn-submit-login:hover {
    background: var(--brand-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -3px rgba(249, 115, 22, 0.4);
}

.form-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 12px;
    color: var(--slate-400);
    text-align: center;
}

/* =========================================================================
   DASHBOARD SCREEN (AUTHENTICATED)
   ========================================================================= */

.app-shell {
    display: flex;
    min-height: 100vh;
    background: var(--slate-50);
}

/* Sidebar */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: 270px;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    background: #0b1220;
    color: #ffffff;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar .brand-logo-link {
    padding: 0 4px;
    margin-bottom: 24px;
}

.sidebar-dataset-card {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.sidebar-dataset-card .card-sub {
    font-size: 10px;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sidebar-dataset-card .card-main {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 4px 0 2px;
}

.sidebar-dataset-card .card-tag {
    font-size: 11px;
    color: #fdba74;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--slate-400);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border 0.2s;
}

.sidebar-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.sidebar-nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav-item.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.05) 100%);
    border-left: 3px solid var(--brand-orange);
    padding-left: 11px;
    font-weight: 700;
}

.sidebar-nav-item.active i {
    color: var(--brand-orange);
}

/* User Footer in Sidebar */
.sidebar-user-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-circle {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-orange) 0%, #ea580c 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
}

.user-online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand-emerald);
    border: 2px solid #0b1220;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.user-role {
    font-size: 11px;
    color: var(--slate-400);
}

.btn-sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--slate-400);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-sidebar-logout:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Main Content Area */
.main-content {
    width: 100%;
    margin-left: 270px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 36px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
    background: #ffffff;
    color: var(--slate-600);
    cursor: pointer;
    font-size: 15px;
}

.topbar-page-info {
    display: flex;
    flex-direction: column;
}

.topbar-eyebrow {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--slate-400);
}

.topbar-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-dark);
    margin: 0;
    letter-spacing: -0.02em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--brand-emerald-light);
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 12px;
    font-weight: 700;
}

.status-pill.simulation {
    background: var(--brand-orange-light);
    border-color: var(--brand-orange-border);
    color: #9a3412;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.status-pill.simulation .pulse-dot {
    background: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

.btn-presentation {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--slate-200);
    color: var(--slate-700);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-presentation:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
    color: var(--brand-dark);
}

/* Dashboard Views Container */
.dashboard-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 36px 64px;
}

.dashboard-view {
    display: none;
    animation: fadeInView 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-view.active {
    display: block;
}

@keyframes fadeInView {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Header Row */
.hero-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.hero-header-left h1 {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--brand-dark);
    margin: 6px 0 8px;
}

.hero-header-left p {
    color: var(--slate-500);
    font-size: 14px;
    margin: 0;
}

.date-pill-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--slate-200);
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-600);
    box-shadow: var(--shadow-xs);
    white-space: nowrap;
}

/* =========================================================================
   CARDS & KPI WIDGETS
   ========================================================================= */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.kpi-card {
    position: relative;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.kpi-icon-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    font-size: 16px;
}

.kpi-icon-pill.orange { background: var(--brand-orange-light); color: var(--brand-orange); }
.kpi-icon-pill.blue { background: var(--brand-blue-light); color: var(--brand-blue); }
.kpi-icon-pill.emerald { background: var(--brand-emerald-light); color: var(--brand-emerald); }
.kpi-icon-pill.indigo { background: var(--brand-indigo-light); color: var(--brand-indigo); }
.kpi-icon-pill.amber { background: var(--brand-amber-light); color: var(--brand-amber); }

.growth-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    background: var(--brand-emerald-light);
    color: #047857;
    font-size: 11px;
    font-weight: 800;
}

.kpi-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-500);
    margin-bottom: 4px;
    display: block;
}

.kpi-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--brand-dark);
    margin: 0 0 4px;
    line-height: 1.15;
}

.kpi-hint {
    font-size: 11px;
    color: var(--slate-400);
}

/* Skeleton Loading */
.skeleton-card {
    height: 140px;
    border-radius: var(--radius-xl);
    background: linear-gradient(100deg, #ffffff 20%, #f1f5f9 40%, #ffffff 60%);
    background-size: 300% 100%;
    animation: shimmer 1.5s infinite;
    border: 1px solid var(--slate-200);
}

@keyframes shimmer {
    to { background-position: -300% 0; }
}

/* Card General */
.card {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-xs);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-header-info span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
}

.card-header-info h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand-dark);
    margin: 4px 0 0;
}

/* Grid Layouts */
.analytics-grid,
.bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.grid-equal-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* Canvas Chart Containers */
.chart-box {
    position: relative;
    width: 100%;
    height: 280px;
}

.chart-box-donut {
    position: relative;
    width: 100%;
    height: 240px;
}

/* Dark Card (Transaction Health) */
.dark-card {
    background: linear-gradient(145deg, #111827 0%, #020617 100%);
    color: #ffffff;
    border: none;
}

.dark-card .card-header-info span {
    color: var(--slate-400);
}

.dark-card .card-header-info h3 {
    color: #ffffff;
}

.transaction-status-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 24px 0;
}

.tx-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-200);
    margin-bottom: 6px;
}

.tx-progress-bar {
    height: 7px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.tx-progress-fill {
    height: 100%;
    border-radius: inherit;
    transition: width 0.4s ease;
}

.dark-card-note {
    font-size: 11px;
    color: var(--slate-400);
    line-height: 1.6;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.data-table th {
    padding: 12px 16px;
    background: var(--slate-50);
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--slate-200);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-700);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: rgba(248, 250, 252, 0.8);
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.badge-status.success {
    background: var(--brand-emerald-light);
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-status.pending {
    background: var(--brand-amber-light);
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-category {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--slate-100);
    color: var(--slate-600);
    font-size: 11px;
    font-weight: 600;
}

/* Course Rows */
.course-card {
    padding: 24px 0;
}

.course-card .card-header {
    padding: 0 24px 16px;
    margin-bottom: 0;
}

.course-table-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 100px 140px;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-top: 1px solid var(--slate-100);
    font-size: 12px;
    transition: background 0.15s;
}

.course-table-row:hover {
    background: var(--slate-50);
}

.course-title {
    font-weight: 700;
    color: var(--slate-800);
}

.course-students {
    color: var(--slate-500);
    font-weight: 600;
}

.completion-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.completion-bar {
    flex: 1;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--slate-100);
    overflow: hidden;
}

.completion-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--brand-orange);
    transition: width 0.4s ease;
}

.completion-pct {
    font-weight: 800;
    font-size: 11px;
    color: var(--slate-700);
    min-width: 32px;
    text-align: right;
}

/* Strategic Insights View */
.insight-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.insight-card-item {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}

.insight-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-orange);
}

.insight-card-item.type-info::before { background: var(--brand-blue); }
.insight-card-item.type-warning::before { background: var(--brand-amber); }
.insight-card-item.type-primary::before { background: var(--brand-indigo); }

.insight-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.insight-tag-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--slate-100);
    color: var(--slate-700);
}

.insight-card-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    color: var(--brand-dark);
    margin: 0 0 10px;
    line-height: 1.35;
}

.insight-card-desc {
    color: var(--slate-600);
    font-size: 13px;
    line-height: 1.65;
    margin: 0;
}

.strategic-recommendation-box {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.strategic-recommendation-box h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.strategic-recommendation-box p {
    color: var(--slate-300);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px;
}

/* Presentation Mode & Sidebar Toggle */
.sidebar-hidden .sidebar {
    transform: translateX(-100%);
}

.sidebar-hidden .main-content {
    margin-left: 0;
}

.presentation .sidebar {
    transform: translateX(-100%);
}

.presentation .main-content {
    margin-left: 0;
}

.presentation .dashboard-container {
    max-width: none;
    padding-left: 48px;
    padding-right: 48px;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
    .kpi-grid,
    .insight-grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .analytics-grid,
    .bottom-grid,
    .grid-2col,
    .grid-equal-2col {
        grid-template-columns: 1fr;
    }
    .sidebar {
        transform: translateX(-100%);
    }
    .main-content {
        margin-left: 0;
    }
    .app-shell:not(.sidebar-hidden) .sidebar {
        transform: translateX(0);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.4);
    }
    .btn-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .login-shell {
        grid-template-columns: 1fr;
    }
    .login-brand {
        display: none;
    }
    .mobile-logo-header {
        display: flex;
    }
    .login-panel {
        padding: 40px 24px;
    }
    .topbar {
        padding: 0 20px;
    }
    .dashboard-container {
        padding: 24px 20px 48px;
    }
    .hero-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .date-pill-chip {
        display: none;
    }
    .kpi-grid,
    .insight-grid-cards {
        grid-template-columns: 1fr;
    }
    .course-table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .btn-presentation span {
        display: none;
    }
}
