:root {
    /* Modern Vibrant Palette - Light Mode (Clean & Professional) */
    --bg-body: #f8fafc; /* Slate 50 */
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff; 
    --bg-header: rgba(255, 255, 255, 0.85); /* Glassmorphism */
    
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #64748b; /* Slate 500 */
    
    /* Brand Colors - Gold & Navy Theme */
    --primary: #ca8a04; /* Gold 600 */
    --primary-hover: #a16207; /* Gold 700 */
    --primary-light: #fef9c3; /* Yellow 50 */
    --primary-text: #ffffff;
    
    /* Functional Colors */
    --success: #10b981; /* Emerald 500 */
    --warning: #f59e0b; /* Amber 500 */
    --danger: #ef4444; /* Red 500 */
    --info: #0ea5e9; /* Sky 500 */
    --border: #e2e8f0; /* Slate 200 */
    
    /* Modern Shadows (Softer & Deeper) */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    
    /* Radius (Softer corners) */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    --scrollbar-thumb: #cbd5e1;
    --scrollbar-thumb-hover: #94a3b8;

    --font-sans: 'Cairo', 'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
    /* Deep Space Theme */
    --bg-body: #020617; /* Rich Navy Black */
    --bg-card: rgba(15, 23, 42, 0.6); /* Semi-transparent Slate 900 */
    --bg-sidebar: rgba(15, 23, 42, 0.6);
    --bg-header: rgba(15, 23, 42, 0.6);
    --text-primary: #f8fafc; /* Slate 50 */
    --text-secondary: #94a3b8; /* Slate 400 */
    
    /* Gold Accents */
    --primary: #fbbf24; /* Amber 400 */
    --primary-hover: #f59e0b; /* Amber 500 */
    --primary-light: rgba(251, 191, 36, 0.15);
    
    --border: rgba(255, 255, 255, 0.1); /* Subtle white border */
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    
    --scrollbar-thumb: #475569;
    --scrollbar-thumb-hover: #64748b;
}

/* Reset & Base */
* { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; padding: 0; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; max-width: 100%; }
@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    /* Dynamic background based on theme - Enhanced Gold */
    background-image: 
        radial-gradient(at 0% 0%, rgba(202, 138, 4, 0.25) 0px, transparent 60%),
        radial-gradient(at 100% 100%, rgba(234, 179, 8, 0.15) 0px, transparent 60%),
        linear-gradient(120deg, rgba(202, 138, 4, 0.1) 0%, rgba(253, 224, 71, 0.05) 50%, rgba(202, 138, 4, 0.1) 100%);
    background-size: 300% 300%;
    animation: gradient-move 15s ease infinite alternate;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s, color 0.3s;
}

[data-theme="dark"] body {
    background-image: 
        radial-gradient(at 0% 0%, rgba(251, 191, 36, 0.2) 0px, transparent 70%),
        radial-gradient(at 100% 100%, rgba(234, 179, 8, 0.15) 0px, transparent 70%),
        linear-gradient(120deg, rgba(15, 23, 42, 1) 0%, rgba(30, 41, 59, 0.95) 50%, rgba(15, 23, 42, 1) 100%);
}

/* Icons */
.icon { width: 24px; height: 24px; stroke-width: 2; }
.icon-sm { width: 18px; height: 18px; stroke-width: 2; }

/* Utilities */
.text-gold { color: var(--primary); }
.bg-gold { background-color: var(--primary); }
.bg-gold-light { background-color: var(--primary-light); }
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .glass {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.text-gradient-gold {
    background: linear-gradient(135deg, #fcd34d 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Layout */
.app {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 64px 1fr;
    grid-template-areas: "sidebar header" "sidebar main";
    height: 100vh;
    height: 100dvh;
}
[dir="rtl"] .app { direction: rtl; }

/* Sidebar */
.sidebar {
    grid-area: sidebar;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-right: 1px solid rgba(202, 138, 4, 0.2); /* Subtle Gold Border */
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(25px); /* Enhanced Glass */
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 4px 0 24px rgba(202, 138, 4, 0.05); /* Golden Glow */
    overflow-y: auto;
}
[dir="rtl"] .sidebar { 
    border-right: none; 
    border-left: 1px solid rgba(202, 138, 4, 0.2);
    box-shadow: -4px 0 24px rgba(202, 138, 4, 0.05);
}

[data-theme="dark"] .sidebar {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(2, 6, 23, 0.7) 100%);
    border-right: 1px solid rgba(251, 191, 36, 0.15);
    box-shadow: 4px 0 24px rgba(251, 191, 36, 0.05);
}
[data-theme="dark"][dir="rtl"] .sidebar {
    border-left: 1px solid rgba(251, 191, 36, 0.15);
    box-shadow: -4px 0 24px rgba(251, 191, 36, 0.05);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.5rem;
    position: relative;
}
.brand::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0.5rem;
    right: 0.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.brand span:first-child { 
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white; 
    width: 40px; height: 40px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 12px;
    font-size: 1.4rem;
    box-shadow: 0 8px 16px -4px rgba(234, 179, 8, 0.4);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav { display: flex; flex-direction: column; gap: 0.5rem; }
.nav button {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-lg);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: right;
    position: relative;
    overflow: hidden;
}
[dir="ltr"] .nav button { text-align: left; }

.nav button:hover { 
    background-color: var(--bg-body); 
    color: var(--primary);
    transform: translateX(-4px);
    border-color: rgba(255,255,255,0.05);
}
[dir="ltr"] .nav button:hover { transform: translateX(4px); }

.nav button.active { 
    background: linear-gradient(90deg, rgba(254, 249, 195, 0.5), transparent); /* Golden Tint */
    color: var(--primary); 
    font-weight: 700; 
    box-shadow: inset 3px 0 0 0 var(--primary); /* Gold Indicator */
    border-color: rgba(234, 179, 8, 0.2);
    text-shadow: 0 0 1px rgba(234, 179, 8, 0.2);
}
[dir="ltr"] .nav button.active { 
    background: linear-gradient(90deg, rgba(254, 249, 195, 0.5), transparent);
    box-shadow: inset 4px 0 0 0 var(--primary);
}
[dir="rtl"] .nav button.active { 
    background: linear-gradient(270deg, rgba(254, 249, 195, 0.5), transparent);
    box-shadow: inset -4px 0 0 0 var(--primary);
}

[data-theme="dark"] .nav button.active {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), transparent);
    box-shadow: inset 3px 0 0 0 var(--primary);
    border-color: rgba(251, 191, 36, 0.2);
}
[data-theme="dark"][dir="rtl"] .nav button.active {
    background: linear-gradient(270deg, rgba(251, 191, 36, 0.15), transparent);
    box-shadow: inset -4px 0 0 0 var(--primary);
}

.nav button.active::before { display: none; } /* Removed old bar */

.nav button .icon { width: 22px; height: 22px; stroke-width: 2; transition: stroke 0.2s; }

/* Header */
.header {
    grid-area: header;
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 40;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
}

#menuToggle {
    z-index: 60;
    position: relative;
}
#menuToggle svg {
    pointer-events: none;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg-body);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    width: 380px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light), inset 0 2px 4px rgba(0,0,0,0.02);
    width: 420px;
}

.search-bar svg { width: 18px; height: 18px; color: var(--text-secondary); }
.header .search-bar input {
    border: none !important;
    background: transparent !important;
    width: 100%;
    color: var(--text-primary);
    font-family: inherit;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Main Content */
.main {
    grid-area: main;
    padding: 2rem;
    overflow-y: auto;
    background-color: var(--bg-body);
    position: relative; /* Ensure absolute positioned children (like spreadsheet) are relative to this container */
    z-index: 0; /* Create stacking context so children (like Luckysheet) don't overlap sidebar/header */
    transition: padding 0.3s ease;
}
.main.main-full {
    padding: 0;
    overflow: hidden; /* Let the inner component handle scroll */
    transition: none !important; /* Prevent layout shift during initialization */
}
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.page-title { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); margin: 0; }
.page-actions { display: flex; gap: 0.75rem; }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background-color: var(--bg-card);
    padding: 1.75rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(234, 179, 8, 0.2);
}
.card:hover::before { opacity: 1; }

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.stat-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--bg-body), var(--bg-card));
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    color: var(--primary);
}
.stat-info h3 { 
    color: var(--text-secondary);
    font-size: 0.9rem; 
    margin-bottom: 0.4rem;
    font-weight: 500;
}
.stat-info p { 
    font-size: 1.75rem; 
    font-weight: 800; 
    color: var(--text-primary);
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Tables */
.table-container {
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    backdrop-filter: blur(10px);
}
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { 
    text-align: right; 
    padding: 1.25rem 1.5rem; 
    color: var(--text-secondary);
    font-weight: 600; 
    font-size: 0.85rem; 
    border-bottom: 1px solid var(--border);
    background-color: rgba(234, 179, 8, 0.03); /* Subtle gold tint */
    white-space: nowrap;
}
[dir="ltr"] th { text-align: left; }

td { 
    /* padding: 1.25rem 1.5rem;  */
    border-bottom: 1px solid var(--border); 
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: rgba(234, 179, 8, 0.02); }
.table tr:hover td { background-color: var(--bg-body); }

.table-striped tbody tr:nth-of-type(odd) td {
    background-color: rgba(0, 0, 0, 0.01);
}
[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) td {
    background-color: rgba(255, 255, 255, 0.02);
}
.table-bordered th, .table-bordered td {
    border-right: 1px solid var(--border);
}
.table-bordered th:last-child, .table-bordered td:last-child {
    border-right: none;
}
[dir="rtl"] .table th { text-align: right; }
[dir="rtl"] .table-bordered th, [dir="rtl"] .table-bordered td {
    border-right: none;
    border-left: 1px solid var(--border);
}
[dir="rtl"] .table-bordered th:last-child, [dir="rtl"] .table-bordered td:last-child {
    border-left: none;
}

.sticky-top { position: sticky; top: 0; z-index: 10; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    gap: 0.625rem;
    font-size: 0.95rem;
    user-select: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}
.btn:active { transform: scale(0.96); }

.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--primary-text); 
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -1px rgba(79, 70, 229, 0.1);
    border: 1px solid transparent;
}
.btn-primary:hover { 
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3), 0 4px 6px -2px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-body); color: var(--primary); }

.btn-danger { background: var(--danger); color: white; box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2); }
.btn-danger:hover { background: #dc2626; box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3); }

.btn-success { background: var(--success); color: white; box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2); }
.btn-warning { background: var(--warning); color: white; box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2); }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }

/* Inputs */
.input, .select, .textarea, 
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], 
select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus,
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}
.input::placeholder, input::placeholder, textarea::placeholder { color: var(--text-secondary); opacity: 0.7; }

/* Remove default appearance */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { display: none; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, #ca8a04, #eab308); 
    border-radius: 10px; 
    border: 2px solid transparent; 
    background-clip: content-box; 
}
::-webkit-scrollbar-thumb:hover { background-color: #a16207; }

/* Selection Color */
::selection {
    background-color: rgba(234, 179, 8, 0.3);
    color: inherit;
}

.btn-circle {
    border-radius: 9999px;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.btn-sm.btn-circle {
    width: 2rem;
    height: 2rem;
    padding: 0;
}

.btn-icon {
    border-radius: 9999px;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.btn-sm.btn-icon {
    width: 2rem;
    height: 2rem;
    padding: 0;
}

/* Action Menu & Dropdown */
.action-menu, .dropdown-menu {
    position: fixed;
    z-index: 50;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* Luckysheet Fixes */
.luckysheet-input-box {
    z-index: 10000 !important;
    color: #000;
}
.luckysheet-input-box * {
    box-sizing: content-box !important;
}
/* Reset global input styles if they leak */
.luckysheet-input-box input,
.luckysheet-input-box textarea,
.luckysheet-modal-dialog input,
.luckysheet-modal-dialog textarea {
    padding: 0 5px !important;
    height: auto !important;
    min-height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: white !important;
    color: black !important;
    width: auto !important;
}

/* Dashboard Specifics */
.dashboard-banner {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); /* Dark Navy */
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    overflow: hidden;
    color: white;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.dashboard-banner-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at top right, rgba(202, 138, 4, 0.15), transparent 40%);
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.quick-action-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.quick-action-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* KPI Cards */
.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.kpi-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.kpi-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.kpi-trend.positive {
    color: var(--success);
}
.kpi-trend.negative {
    color: var(--danger);
}

/* KPI Colors */
.kpi-blue .kpi-icon-wrapper { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.kpi-purple .kpi-icon-wrapper { background-color: rgba(168, 85, 247, 0.1); color: #a855f7; }
.kpi-amber .kpi-icon-wrapper { background-color: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.kpi-emerald .kpi-icon-wrapper { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }

.kpi-icon-wrapper {
    width: 3rem; 
    height: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Charts & Progress */
.progress-bar {
    height: 8px;
    background-color: var(--bg-body);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}
.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}