/* ==============================================================================
   Motrjim Academy CRM & Education Operating System
   Design System: Fintech Academy Intelligence (لوحة فنتك أكاديمية التدريب)
   Visual Concept: Slim Dark SideRail (76px) + Curved Surface (28px) + Capsule Buttons + Donut Panel
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Exact Fintech Palette Tokens */
    --sidebar: #2A2D32;
    --sidebarMuted: #8D9198;
    --sidebarActiveBg: #3A3E45;
    --pageBg: #E8EDF4;
    --surface: #F7F9FC;
    --card: #FFFFFF;
    --ink: #2C3038;
    --muted: #8B929C;
    --line: #E6EAF0;
    --accent: #7EB3F8;
    --accentStrong: #5B9BE8;
    --accentSoft: #B9D7FB;
    --successBg: #D8F0DE;
    --success: #2F9E57;
    --waitBg: #E6E9EE;
    --wait: #6B7280;
    --dangerBg: #F8D6DB;
    --danger: #D45363;
    --shadow: 0 10px 30px rgba(28, 39, 61, 0.06);

    /* Dimensions & Radii Spec */
    --sidebar-width: 76px;
    --topbar-height: 72px;
    --radius-shell: 28px;
    --radius-card: 24px;
    --radius-row: 18px;
    --radius-capsule: 999px;

    /* Legacy Token Aliases for backward module compatibility */
    --color-navy-950: var(--sidebar);
    --color-navy-900: #18202F;
    --color-navy-800: #242E42;
    --color-teal-600: var(--accentStrong);
    --color-teal-500: var(--accent);
    --color-teal-light: var(--accentSoft);
    --color-bg: var(--pageBg);
    --color-surface: var(--card);
    --color-surface-soft: var(--surface);
    --color-text-primary: var(--ink);
    --color-text-secondary: var(--muted);
    --color-text-muted: var(--muted);
    --color-border: var(--line);
    --color-border-strong: #D5DCE4;
    --color-success: var(--success);
    --color-success-light: var(--successBg);
    --color-warning: #E4A84A;
    --color-warning-light: #FEF7EC;
    --color-danger: var(--danger);
    --color-danger-light: var(--dangerBg);
    --color-info: var(--accentStrong);
    --color-info-light: var(--accentSoft);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 6px rgba(28, 39, 61, 0.04);
    --shadow-md: var(--shadow);
    --shadow-lg: 0 14px 40px rgba(28, 39, 61, 0.08);
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
}

/* ==============================================================================
   Reset & Typography Base
   ============================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}

/* Universal SVG Boundaries - Prevent oversized unconstrained icons */
svg {
    display: inline-block;
    width: 20px;
    height: 20px;
    max-width: 100%;
    max-height: 100%;
    flex-shrink: 0;
    vertical-align: middle;
}

body {
    background-color: var(--sidebar);
    color: var(--ink);
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, .h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
}

h2, .h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.35;
}

h3, .h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.4;
}

p {
    color: var(--color-text-secondary);
}

a {
    color: var(--color-teal-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-teal-500);
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-surface-soft);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border-strong);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* ==============================================================================
   Layout Architecture: Fintech Academy Shell (لوحة فنتك)
   ============================================================================== */
.fintech-shell {
    display: flex;
    min-height: 100vh;
    background-color: var(--sidebar);
    width: 100%;
}

/* ==========================================================================
   EXPANDABLE SIDERAI / SIDE PANEL (SLIM 76px -> EXPANDED 260px)
   ========================================================================== */
.side-rail {
    width: var(--sidebar-width, 76px);
    min-width: var(--sidebar-width, 76px);
    max-width: var(--sidebar-width, 76px);
    background-color: var(--sidebar);
    display: flex;
    flex-direction: column;
    padding: 16px 10px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.25s ease;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}

.side-rail::-webkit-scrollbar {
    width: 4px;
}
.side-rail::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Expanded State */
.side-rail.expanded,
html.sidebar-is-expanded .side-rail {
    width: 268px;
    min-width: 268px;
    max-width: 268px;
    padding: 16px 14px;
}

/* Header inside SideRail */
.rail-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    width: 100%;
    min-height: 48px;
}

.side-rail.expanded .rail-header,
html.sidebar-is-expanded .side-rail .rail-header {
    justify-content: space-between;
}

.rail-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
}

.rail-logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background-color: var(--sidebarActiveBg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
.rail-logo:hover {
    transform: scale(1.05);
}

.rail-brand-text {
    display: none;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.side-rail.expanded .rail-brand-text,
html.sidebar-is-expanded .side-rail .rail-brand-text {
    display: flex;
}

.rail-brand-name {
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.rail-brand-sub {
    font-size: 11px;
    color: var(--sidebarMuted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Toggle Buttons */
.rail-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--sidebarMuted);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.rail-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.side-rail.expanded .rail-toggle-btn,
html.sidebar-is-expanded .side-rail .rail-toggle-btn {
    display: flex;
}

.rail-expand-trigger {
    width: 44px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--sidebarMuted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 12px;
}
.rail-expand-trigger:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    transform: scale(1.05);
}

.side-rail.expanded .rail-expand-trigger,
html.sidebar-is-expanded .side-rail .rail-expand-trigger {
    display: none;
}

/* Navigation List */
.rail-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.side-rail.expanded .rail-nav,
html.sidebar-is-expanded .side-rail .rail-nav {
    align-items: stretch;
}

/* Rail Item */
.rail-item {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sidebarMuted);
    text-decoration: none;
    position: relative;
    transition: all 0.18s ease;
    box-sizing: border-box;
}

.side-rail.expanded .rail-item,
html.sidebar-is-expanded .side-rail .rail-item {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    justify-content: flex-start;
    gap: 12px;
    border-radius: 12px;
}

.rail-item svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    transition: color 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.rail-item:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.07);
}

.rail-item.active {
    background-color: var(--sidebarActiveBg);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.side-rail.expanded .rail-item.active,
html.sidebar-is-expanded .side-rail .rail-item.active {
    border-right: 3px solid var(--accent, #7EB3F8);
}
[dir="ltr"] .side-rail.expanded .rail-item.active,
[dir="ltr"] html.sidebar-is-expanded .side-rail .rail-item.active {
    border-right: none;
    border-left: 3px solid var(--accent, #7EB3F8);
}

/* Rail Item Details inside expanded sidebar */
.rail-item-info {
    display: none;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.side-rail.expanded .rail-item-info,
html.sidebar-is-expanded .side-rail .rail-item-info {
    display: flex;
}

.rail-item-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.rail-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.rail-item-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Metric Badges inside Expanded Rail Item */
.rail-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    white-space: nowrap;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    flex-shrink: 0;
}

.side-rail.expanded .rail-badge,
html.sidebar-is-expanded .side-rail .rail-badge {
    display: inline-flex;
}

.rail-badge-accent {
    background: rgba(126, 179, 248, 0.18);
    color: var(--accentSoft, #B9D7FB);
    border: 1px solid rgba(126, 179, 248, 0.35);
}

.rail-badge-danger {
    background: rgba(248, 214, 219, 0.18);
    color: #FF808F;
    border: 1px solid rgba(212, 83, 99, 0.45);
}

.rail-badge-warning {
    background: rgba(254, 243, 199, 0.15);
    color: #FCD34D;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.rail-badge-soft {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}

/* Collapsed indicator dot */
.rail-dot-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D45363;
    box-shadow: 0 0 6px #D45363;
}
.side-rail.expanded .rail-dot-indicator,
html.sidebar-is-expanded .side-rail .rail-dot-indicator {
    display: none !important;
}

/* Tooltip on Hover when collapsed */
.side-rail:not(.expanded) .rail-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    background: #111A2E;
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.15s ease;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

[dir="rtl"] .side-rail:not(.expanded) .rail-item[data-tooltip]::after {
    right: 56px;
    transform: translateX(-6px);
}
[dir="ltr"] .side-rail:not(.expanded) .rail-item[data-tooltip]::after {
    left: 56px;
    transform: translateX(6px);
}

.side-rail:not(.expanded) .rail-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.side-rail.expanded .rail-item::after,
html.sidebar-is-expanded .side-rail .rail-item::after {
    display: none !important;
}

/* Footer & Logout */
.rail-footer-profile {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.side-rail.expanded .rail-footer-profile,
html.sidebar-is-expanded .side-rail .rail-footer-profile {
    display: flex;
}

.rail-footer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accentSoft, #B9D7FB);
    color: #0E2954;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rail-footer-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.rail-footer-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rail-footer-role {
    font-size: 11px;
    color: var(--sidebarMuted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rail-logout {
    margin-top: auto;
}
.rail-logout:hover {
    color: #FF808F;
    background-color: rgba(212, 83, 99, 0.15);
}

/* Curved Surface (radius 28px) */
.fintech-surface {
    flex: 1;
    min-height: 100vh;
    background: radial-gradient(circle at 100% 0%, rgba(126, 179, 248, 0.08) 0%, transparent 45%), var(--surface);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

[dir="rtl"] .fintech-surface {
    border-top-right-radius: var(--radius-shell);
    border-bottom-right-radius: var(--radius-shell);
}
[dir="ltr"] .fintech-surface {
    border-top-left-radius: var(--radius-shell);
    border-bottom-left-radius: var(--radius-shell);
}

/* Fixed Header (72px height, 3 sections) */
.fintech-header {
    height: var(--topbar-height);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(247, 249, 252, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(230, 234, 240, 0.8);
}

.header-user-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sidebar);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(42, 45, 50, 0.18);
}

.header-greeting-texts .greeting-title {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
}

.header-greeting-texts .greeting-sub {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

/* Capsule Search Input (#EEF2F7, height 42-44px) */
.header-search-capsule {
    position: relative;
    display: flex;
    align-items: center;
    width: 380px;
}

.header-search-capsule input {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-capsule);
    background: #EEF2F7;
    border: 1px solid transparent;
    padding: 0 42px 0 16px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--ink);
    transition: all 0.15s ease;
}

[dir="rtl"] .header-search-capsule input {
    padding: 0 42px 0 16px;
}
[dir="ltr"] .header-search-capsule input {
    padding: 0 16px 0 42px;
}

.header-search-capsule svg {
    position: absolute;
    right: 14px;
    color: var(--muted);
    pointer-events: none;
}
[dir="ltr"] .header-search-capsule svg {
    right: auto;
    left: 14px;
}

.header-search-capsule input:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(126, 179, 248, 0.25);
    width: 440px;
}

.search-dropdown-overlay {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    left: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(28, 39, 61, 0.12);
    padding: 12px;
    z-index: 150;
}

.search-category-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    padding: 6px 10px;
    text-transform: uppercase;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.12s ease;
}
.search-result-item:hover {
    background: var(--surface);
}

/* Capsule Account Button */
.header-account-block {
    position: relative;
}

.btn-account-capsule {
    height: 44px;
    padding: 0 20px;
    background: var(--sidebar);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-capsule);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 12px rgba(42, 45, 50, 0.12);
}
.btn-account-capsule:hover {
    background: #3A3E45;
}

.account-menu-dropdown {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(28, 39, 61, 0.12);
    width: 220px;
    z-index: 150;
    overflow: hidden;
}
[dir="rtl"] .account-menu-dropdown {
    left: 0;
    right: auto;
}
.account-menu-dropdown.show {
    display: block;
}

.dropdown-link {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.12s ease;
}
.dropdown-link:hover {
    background: var(--surface);
}

/* Content Area */
.fintech-content {
    padding: 24px 32px;
    flex: 1;
}

.fintech-alert {
    margin: 0 32px 20px 32px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fintech-alert.success {
    background: var(--successBg);
    color: var(--success);
    border: 1px solid rgba(47, 158, 87, 0.2);
}
.fintech-alert.danger {
    background: var(--dangerBg);
    color: var(--danger);
    border: 1px solid rgba(212, 83, 99, 0.2);
}

/* ==============================================================================
   Fintech Dashboard Components (لوحة فنتك المرجعية)
   ============================================================================== */
.fintech-dashboard-grid {
    display: grid;
    grid-template-columns: 1.55fr 0.85fr;
    gap: 22px;
    align-items: start;
}

/* Quick Cards Row */
.quick-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.card-kpi-dark {
    background: radial-gradient(circle at 100% 0%, #383D45 0%, #2A2D32 75%);
    color: #FFFFFF;
    border-radius: var(--radius-card);
    padding: 24px 26px;
    box-shadow: 0 10px 30px rgba(28, 39, 61, 0.08);
    position: relative;
    overflow: hidden;
}

.card-kpi-light {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 24px 26px;
    box-shadow: var(--shadow);
    position: relative;
}

.kpi-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.kpi-title-label {
    font-size: 13.5px;
    font-weight: 600;
}
.card-kpi-dark .kpi-title-label {
    color: #A0A6B2;
}
.card-kpi-light .kpi-title-label {
    color: var(--muted);
}

.kpi-big-number {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 6px 0 14px 0;
    letter-spacing: -0.5px;
}
.card-kpi-dark .kpi-big-number {
    color: #FFFFFF;
}
.card-kpi-light .kpi-big-number {
    color: var(--ink);
}

.kpi-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
}
.card-kpi-dark .kpi-bottom-row {
    color: #A0A6B2;
}
.card-kpi-light .kpi-bottom-row {
    color: var(--muted);
}

/* Switch Toggle Component */
.switch-box {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch-box input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #E6EAF0;
    transition: .2s;
    border-radius: 24px;
}
.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.switch-box input:checked + .switch-slider {
    background-color: var(--sidebar);
}
.switch-box input:checked + .switch-slider:before {
    transform: translateX(20px);
}

/* Four Shortcut Buttons (Height 52px, Radius 18px) */
.shortcuts-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.btn-shortcut {
    height: 52px;
    border-radius: var(--radius-row);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(28, 39, 61, 0.04);
    transition: all 0.15s ease;
}
.btn-shortcut:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28, 39, 61, 0.08);
}
.btn-shortcut.filled-accent {
    background: var(--accentSoft);
    border-color: rgba(126, 179, 248, 0.4);
    color: #18202F;
}
.btn-shortcut.filled-accent:hover {
    background: #A9CEFA;
}
.btn-shortcut .circle-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: var(--ink);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.btn-shortcut.filled-accent .circle-icon {
    background: #FFFFFF;
    color: #18202F;
}

/* Recent Enrollments (Independent Cards, Radius 18px) */
.recent-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.recent-section-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}

.recent-headers-strip {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1fr;
    padding: 0 20px 8px 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
}

.recent-card-row {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-row);
    padding: 14px 20px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1fr;
    align-items: center;
    box-shadow: 0 4px 14px rgba(28, 39, 61, 0.03);
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 64px;
    box-sizing: border-box;
}
.recent-card-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(28, 39, 61, 0.07);
    border-color: #D5DCE4;
}

/* Status Chips */
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: var(--radius-capsule);
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
}
.status-chip.success {
    background-color: var(--successBg);
    color: var(--success);
}
.status-chip.wait {
    background-color: var(--waitBg);
    color: var(--wait);
}
.status-chip.danger {
    background-color: var(--dangerBg);
    color: var(--danger);
}

/* Right Statistics Panel (Donut Chart) */
.statistic-panel-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.statistic-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.statistic-panel-header h3 {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.period-select-capsule {
    height: 34px;
    padding: 0 14px;
    border-radius: var(--radius-capsule);
    background: var(--surface);
    border: 1px solid var(--line);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    outline: none;
}

.donut-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 20px 0;
}

.donut-legend-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
}

.transactions-list {
    margin-top: 24px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.transaction-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.transaction-info .t-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}
.transaction-info .t-time {
    font-size: 11.5px;
    color: var(--muted);
}
.transaction-amount {
    font-size: 14px;
    font-weight: 800;
    color: var(--success);
    font-family: 'Inter', sans-serif;
}

/* Modal Dialog System */
.fintech-modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 18, 32, 0.55);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.fintech-modal-backdrop.show,
.fintech-modal-backdrop.active {
    display: flex !important;
}

.fintech-modal-dialog {
    background: #FFFFFF;
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(11, 18, 32, 0.2);
    overflow: hidden;
    animation: modalPop 0.2s ease;
}
@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header-fintech {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header-fintech h3 {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
}
.modal-body-fintech {
    padding: 24px;
}
.modal-footer-fintech {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: var(--surface);
}

/* Responsive Rules */
@media (max-width: 1100px) {
    .fintech-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .shortcuts-row {
        grid-template-columns: 1fr 1fr;
    }
    .quick-cards-row {
        grid-template-columns: 1fr;
    }
    .recent-headers-strip {
        display: none;
    }
    .recent-card-row {
        grid-template-columns: 1fr 1fr;
        height: auto;
        gap: 10px;
    }
    .header-search-capsule {
        width: 220px;
    }
}

/* ==========================================================================
   FINTECH ACADEMY DESIGN SYSTEM — DASHBOARD & COMPONENT ALIASES
   ========================================================================== */
.fintech-dash-grid {
    display: grid;
    grid-template-columns: 1.55fr 0.85fr;
    gap: 24px;
    margin-bottom: 30px;
}
@media (max-width: 1100px) {
    .fintech-dash-grid {
        grid-template-columns: 1fr;
    }
}

.fintech-quick-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}
@media (max-width: 800px) {
    .fintech-quick-cards {
        grid-template-columns: 1fr;
    }
}

.fintech-card-dark {
    background: var(--cardDark, #2A2D32);
    border-radius: var(--radius-card, 22px);
    padding: 24px 26px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.fintech-card-dark-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fintech-card-dark-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fintech-card-dark-dots {
    background: transparent;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
}
.fintech-card-dark-stat {
    font-size: 2.1rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 12px 0 4px 0;
    letter-spacing: -0.5px;
}
.fintech-card-dark-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
}
.fintech-badge-growth {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(56, 178, 172, 0.15);
    color: #38B2AC;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
}
.fintech-mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 26px;
    margin-top: 14px;
}
.fintech-mini-bar {
    flex: 1;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    transition: height 0.3s ease;
}
.fintech-mini-bar.active {
    background: var(--accentSoft, #B9D7FB);
}

.fintech-card-light {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card, 22px);
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    box-shadow: var(--shadow);
}
.fintech-card-light-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fintech-card-light-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.fintech-icon-warning {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #FEE2E2;
    color: #DC2626;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fintech-card-light-stat {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--ink);
    margin: 12px 0 4px 0;
    letter-spacing: -0.5px;
}
.fintech-card-light-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.fintech-shortcuts-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}
@media (max-width: 800px) {
    .fintech-shortcuts-strip {
        grid-template-columns: 1fr 1fr;
    }
}

.fintech-btn-capsule {
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid var(--line);
    box-shadow: 0 4px 14px rgba(28, 39, 61, 0.04);
    font-family: inherit;
    text-decoration: none;
}
.fintech-btn-capsule:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28, 39, 61, 0.08);
}
.fintech-btn-accent {
    background: var(--accentSoft, #B9D7FB);
    border-color: rgba(126, 179, 248, 0.4);
    color: #0E2954;
}
.fintech-btn-ghost {
    background: #FFFFFF;
    color: var(--ink);
}

.fintech-section {
    margin-bottom: 24px;
}
.fintech-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.fintech-section-title {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
}
.fintech-section-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin: 2px 0 0 0;
}
.fintech-filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fintech-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.fintech-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.fintech-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #E6EAF0;
    transition: .2s;
    border-radius: 24px;
}
.fintech-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.fintech-switch input:checked + .fintech-slider {
    background-color: #DC2626;
}
.fintech-switch input:checked + .fintech-slider:before {
    transform: translateX(20px);
}

.fintech-enrollment-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fintech-enroll-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 14px rgba(28, 39, 61, 0.03);
    transition: all 0.15s ease;
    min-height: 72px;
}
.fintech-enroll-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(28, 39, 61, 0.07);
    border-color: #D5DCE4;
}
.fintech-enroll-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #EFF6FF;
    color: #2563EB;
    font-weight: 800;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fintech-enroll-info {
    flex: 1.5;
    min-width: 0;
}
.fintech-enroll-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    display: block;
}
.fintech-enroll-course {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fintech-enroll-batch {
    flex: 1;
    text-align: center;
}
.fintech-badge-subtle {
    display: inline-block;
    background: #F1F5F9;
    color: #475569;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
}
.fintech-enroll-date {
    flex: 0.8;
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
}
.fintech-enroll-price {
    flex: 0.8;
    font-size: 14px;
    color: var(--ink);
    text-align: center;
    font-weight: 700;
}
.fintech-enroll-chip {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.fintech-stat-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 26px;
    box-shadow: var(--shadow);
}
.fintech-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.fintech-stat-title {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
}
.fintech-period-select {
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    outline: none;
}
.fintech-donut-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 16px 0;
}
.fintech-donut-svg-container {
    position: relative;
    width: 160px;
    height: 160px;
}
.fintech-donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.fintech-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.fintech-donut-pct {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
}
.fintech-donut-label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
    font-weight: 600;
}
.fintech-donut-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
    width: 100%;
}
.fintech-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}
.fintech-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.fintech-legend-val {
    color: var(--ink);
    font-weight: 700;
}

.fintech-recent-ops {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fintech-ops-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
}
.fintech-ops-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
.fintech-ops-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #F8FAFC;
}
.fintech-ops-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #EFF6FF;
    color: #3B82F6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fintech-ops-info {
    flex: 1;
    min-width: 0;
}
.fintech-ops-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fintech-ops-sub {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fintech-ops-amount {
    text-align: left;
    flex-shrink: 0;
}
.fintech-badge-income {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #166534;
}
.fintech-ops-time {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.fintech-modal-box {
    background: #FFFFFF;
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(11, 18, 32, 0.2);
    overflow: hidden;
    animation: modalPop 0.2s ease;
}
.fintech-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fintech-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}
.fintech-modal-body {
    padding: 24px;
}
.fintech-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: var(--surface);
}
.fintech-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}

/* Sidebar - Deep Academic Navy */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-navy-950);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition-normal);
    border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
}

[dir="rtl"] .sidebar {
    right: 0;
}
[dir="ltr"] .sidebar {
    left: 0;
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background-color: var(--color-navy-950);
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-teal-500) 0%, var(--color-teal-600) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px var(--color-teal-glow);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

.brand-tagline {
    font-size: 11px;
    color: var(--color-text-muted);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Domain Navigation Groups */
.nav-group {
    margin-bottom: 6px;
}

.nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B7B94;
    cursor: pointer;
    user-select: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.nav-group-header:hover {
    color: #A3B3CC;
}

.nav-group-header svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.nav-group.collapsed .nav-group-items {
    display: none;
}

.nav-group.collapsed .nav-group-header svg {
    transform: rotate(-90deg);
}

.nav-group-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    color: #A0AEC0;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    color: #718096;
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

.nav-link:hover {
    background-color: var(--color-navy-900);
    color: #FFFFFF;
}

.nav-link:hover svg {
    color: var(--color-teal-400);
}

/* Active Navigation Item (Teal Indicator) */
.nav-link.active {
    background-color: var(--color-teal-light);
    color: #FFFFFF;
    font-weight: 600;
}

.nav-link.active svg {
    color: var(--color-teal-400);
}

[dir="rtl"] .nav-link.active {
    border-right: 3px solid var(--color-teal-500);
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

[dir="ltr"] .nav-link.active {
    border-left: 3px solid var(--color-teal-500);
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background-color: var(--color-navy-950);
}

.user-snippet {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--color-navy-800);
    border: 1px solid var(--color-navy-700);
    color: var(--color-teal-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* Main Wrapper */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin var(--transition-normal);
}

[dir="rtl"] .main-wrapper {
    margin-right: var(--sidebar-width);
}
[dir="ltr"] .main-wrapper {
    margin-left: var(--sidebar-width);
}

/* Top Bar */
.topbar {
    height: var(--topbar-height);
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    color: var(--color-text-primary);
    cursor: pointer;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--color-teal-600);
}

.breadcrumb-separator {
    color: var(--color-border-strong);
    font-size: 11px;
}

.breadcrumb-current {
    color: var(--color-text-primary);
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Global Search Input in Topbar */
.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.topbar-search input {
    height: 38px;
    width: 240px;
    padding: 0 34px 0 14px;
    background-color: var(--color-surface-soft);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
}

[dir="rtl"] .topbar-search input {
    padding: 0 34px 0 14px;
}

.topbar-search input:focus {
    outline: none;
    background-color: var(--color-surface);
    border-color: var(--color-teal-500);
    box-shadow: 0 0 0 3px var(--color-teal-light);
    width: 290px;
}

.topbar-search svg {
    position: absolute;
    right: 10px;
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    color: var(--color-text-muted);
    pointer-events: none;
}

[dir="ltr"] .topbar-search svg {
    right: auto;
    left: 10px;
}
[dir="ltr"] .topbar-search input {
    padding: 0 14px 0 34px;
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    background-color: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 12.5px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.lang-switch-btn:hover {
    background-color: var(--color-surface);
    border-color: var(--color-teal-500);
    color: var(--color-teal-600);
}

/* Page Body Container */
.page-body {
    flex: 1;
    padding: 28px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* Page Header Standard */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.page-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-navy-950);
    letter-spacing: -0.3px;
}

.page-subtitle {
    font-size: 13.5px;
    color: var(--color-text-secondary);
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==============================================================================
   Components: Cards & StatCards
   ============================================================================== */
.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 6px 24px rgba(11, 18, 32, 0.06);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-surface);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-navy-900);
}

.card-title svg {
    width: 18px;
    height: 18px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-surface-soft);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* KPI / StatCards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

/* Subtle Semantic Accents */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
}

[dir="rtl"] .stat-card::before {
    right: 0;
}
[dir="ltr"] .stat-card::before {
    left: 0;
}

.stat-card.accent-teal::before {
    background-color: var(--color-teal-500);
}
.stat-card.accent-amber::before {
    background-color: var(--color-amber-500);
}
.stat-card.accent-danger::before {
    background-color: var(--color-danger);
}
.stat-card.accent-blue::before {
    background-color: var(--color-info);
}

.stat-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--color-navy-950);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 4px 0 2px 0;
    font-family: 'Inter', 'IBM Plex Sans Arabic', sans-serif;
}

.stat-value .currency {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.stat-sub {
    font-size: 12px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.stat-icon svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    flex-shrink: 0;
}

.stat-icon.teal {
    background-color: var(--color-teal-light);
    color: var(--color-teal-600);
}
.stat-icon.amber {
    background-color: var(--color-amber-light);
    color: var(--color-amber-500);
}
.stat-icon.danger {
    background-color: var(--color-danger-light);
    color: var(--color-danger);
}
.stat-icon.blue {
    background-color: var(--color-info-light);
    color: var(--color-info);
}

/* ==============================================================================
   Components: Buttons
   ============================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-teal-light);
}

.btn:disabled, .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Primary CTA - Intelligent Teal */
.btn-primary {
    background-color: var(--color-teal-500);
    color: #FFFFFF;
    border-color: var(--color-teal-500);
    box-shadow: 0 2px 8px var(--color-teal-glow);
}

.btn-primary:hover {
    background-color: var(--color-teal-600);
    border-color: var(--color-teal-600);
    color: #FFFFFF;
}

/* Secondary CTA - White + Navy Border */
.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-navy-800);
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--color-surface-soft);
    border-color: var(--color-border-strong);
    color: var(--color-navy-950);
}

/* Ghost Button */
.btn-ghost {
    background-color: transparent;
    color: var(--color-text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    background-color: var(--color-surface-soft);
    color: var(--color-navy-900);
}

/* Danger / Destructive CTA - Red */
.btn-danger {
    background-color: var(--color-danger);
    color: #FFFFFF;
    border-color: var(--color-danger);
}

.btn-danger:hover {
    background-color: #C24545;
    color: #FFFFFF;
}

/* Warning CTA - Amber */
.btn-warning {
    background-color: var(--color-amber-500);
    color: #FFFFFF;
    border-color: var(--color-amber-500);
}

.btn-warning:hover {
    background-color: #D39535;
    color: #FFFFFF;
}

/* Small Button */
.btn-sm {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
}

/* Icon Button */
.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    min-height: unset;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==============================================================================
   Components: Tables
   ============================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 13.5px;
    color: var(--color-text-primary);
}

[dir="ltr"] .data-table {
    text-align: left;
}

.data-table th {
    background-color: var(--color-surface-soft);
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
    transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover td {
    background-color: rgba(24, 184, 176, 0.03);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==============================================================================
   Components: Status Badges
   ============================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.badge-success {
    background-color: var(--color-success-light);
    color: var(--color-success);
}

.badge-warning {
    background-color: var(--color-warning-light);
    color: var(--color-warning);
}

.badge-danger {
    background-color: var(--color-danger-light);
    color: var(--color-danger);
}

.badge-info {
    background-color: var(--color-info-light);
    color: var(--color-info);
}

.badge-teal {
    background-color: var(--color-teal-light);
    color: var(--color-teal-600);
}

.badge-secondary {
    background-color: var(--color-surface-soft);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.badge-navy {
    background-color: var(--color-navy-800);
    color: #FFFFFF;
}

/* ==============================================================================
   Components: Forms
   ============================================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-navy-900);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: inherit;
    color: var(--color-text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-teal-500);
    box-shadow: 0 0 0 3px var(--color-teal-light);
}

textarea.form-control {
    height: auto;
    min-height: 100px;
    padding: 12px 14px;
    resize: vertical;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 5px;
}

.form-error {
    display: block;
    font-size: 12px;
    color: var(--color-danger);
    margin-top: 5px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-bar .form-control {
    height: 40px;
    width: auto;
    min-width: 220px;
}

/* ==============================================================================
   Components: Alerts & Flash Messages
   ============================================================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 13.5px;
    line-height: 1.5;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-success {
    background-color: var(--color-success-light);
    border: 1px solid rgba(46, 155, 104, 0.25);
    color: #1E6B47;
}

.alert-danger {
    background-color: var(--color-danger-light);
    border: 1px solid rgba(217, 85, 85, 0.25);
    color: #9E3535;
}

.alert-warning {
    background-color: var(--color-warning-light);
    border: 1px solid rgba(217, 154, 43, 0.25);
    color: #8C5F16;
}

.alert-info {
    background-color: var(--color-info-light);
    border: 1px solid rgba(67, 135, 199, 0.25);
    color: #295F93;
}

/* ==============================================================================
   Components: Modals
   ============================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(11, 18, 32, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.modal-overlay.active,
.modal-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex !important;
}

.modal-container {
    width: 100%;
    max-width: 600px;
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transform: translateY(12px);
    transition: transform var(--transition-fast);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container,
.modal-overlay.show .modal-container {
    transform: translateY(0) !important;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-surface);
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy-950);
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-danger);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-surface-soft);
}

/* ==============================================================================
   Components: Empty States
   ============================================================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--color-surface-soft);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.empty-state-icon svg {
    width: 32px;
    height: 32px;
}

.empty-state-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy-900);
    margin-bottom: 6px;
}

.empty-state-description {
    font-size: 13.5px;
    color: var(--color-text-secondary);
    max-width: 420px;
    margin-bottom: 20px;
}

/* ==============================================================================
   Components: Kanban Pipeline
   ============================================================================== */
.kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    min-height: calc(100vh - 220px);
}

.kanban-column {
    flex: 0 0 290px;
    background-color: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 220px);
}

.kanban-column-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-surface);
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.kanban-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-navy-900);
}

.kanban-count {
    font-size: 11.5px;
    font-weight: 600;
    background-color: var(--color-surface-soft);
    padding: 2px 8px;
    border-radius: 12px;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.kanban-total-value {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--color-teal-600);
    font-family: 'Inter', sans-serif;
}

.kanban-cards-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    cursor: grab;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-teal-400);
}

.kanban-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.kanban-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-navy-900);
    margin-bottom: 4px;
}

.kanban-card-meta {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
    margin-top: 8px;
}

/* ==============================================================================
   Components: Student 360 Profile & Timeline
   ============================================================================== */
.student-profile-header {
    background-color: var(--color-navy-950);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: #FFFFFF;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.student-profile-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-teal-500) 0%, var(--color-amber-500) 100%);
}

.student-profile-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.student-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.student-avatar {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-teal-500) 0%, var(--color-navy-800) 100%);
    border: 2px solid var(--color-teal-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}

.student-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.student-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

.student-code {
    font-family: 'Inter', monospace;
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-teal-400);
    padding: 2px 8px;
    border-radius: 4px;
}

.student-contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #A0AEC0;
    flex-wrap: wrap;
}

.student-metrics-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.student-metric-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.student-metric-label {
    font-size: 12px;
    color: #8993A2;
}

.student-metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFFFFF;
    font-family: 'Inter', 'IBM Plex Sans Arabic', sans-serif;
}

/* Tabs System */
.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--color-teal-600);
}

.tab-btn.active {
    color: var(--color-teal-600);
    border-bottom-color: var(--color-teal-500);
}

/* Timeline System */
.timeline {
    position: relative;
    padding: 10px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-border);
}

[dir="rtl"] .timeline::before {
    right: 18px;
}
[dir="ltr"] .timeline::before {
    left: 18px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
}

.timeline-point {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--color-surface);
    border: 2px solid var(--color-teal-500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-teal-600);
    flex-shrink: 0;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.timeline-point svg {
    width: 18px;
    height: 18px;
}

.timeline-content {
    flex: 1;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
}

.timeline-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy-950);
    margin-bottom: 4px;
}

.timeline-time {
    font-size: 11.5px;
    color: var(--color-text-muted);
}

/* ==============================================================================
   Financial UI Standards
   ============================================================================== */
.currency-amount {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--color-navy-950);
}

.currency-amount.positive {
    color: var(--color-success);
}

.currency-amount.negative {
    color: var(--color-danger);
}

/* ==============================================================================
   Responsive Queries
   ============================================================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(100%);
    }

    [dir="ltr"] .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .main-wrapper {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

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

    .topbar-search input {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .page-body {
        padding: 16px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar {
        padding: 0 16px;
    }

    .topbar-search {
        display: none;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .student-identity {
        flex-direction: column;
        text-align: center;
    }

    .student-contact-row {
        justify-content: center;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}
