:root {
    /* Color Palette - Minimalist & Elegant */
    --bg-body: #F5F5F3;        /* Warm Light Gray/Beige */
    --bg-surface: #FFFFFF;     /* Pure White */
    --bg-sidebar: #FFFFFF;
    
    /* Text Colors */
    --text-primary: #1A1A1A;   /* Near Black */
    --text-secondary: #666666; /* Medium Gray */
    --text-tertiary: #999999;  /* Light Gray */
    
    /* Functional Colors (Conditional Formatting) */
    --color-accent: #1A1A1A;   /* Black Accent */
    --color-border: #E5E5E5;
    
    /* Status Colors (Pastel/Soft) */
    --status-success-bg: #E3F9E5;
    --status-success-text: #1F7A35;
    
    --status-warning-bg: #FFF4D6;
    --status-warning-text: #996B00;
    
    --status-error-bg: #FFEBEB;
    --status-error-text: #D62828;
    
    --status-info-bg: #E3F2FD;
    --status-info-text: #0D47A1;
    
    /* Spacing & Layout */
    --sidebar-width: 260px;
    --header-height: 70px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);
    --radius-sm: 6px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: --bg-body;
    color: var(--text-primary);
    background-color: var(--bg-body);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: 40px;
}

.logo {
    width: 36px;
    height: 36px;
    background: var(--text-primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.brand h1 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}

.nav-item:hover {
    background-color: var(--bg-body);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: var(--text-primary);
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-body);
}

.top-bar {
    height: var(--header-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-xl);
    flex-shrink: 0;
}

.top-bar h2 {
    font-size: 20px;
    font-weight: 600;
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-xl);
}

/* Common Components */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: white;
    border: 1px solid var(--color-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-body);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
}

.btn-icon:hover {
    background: var(--bg-body);
}

/* Data Tables */
.data-table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    background: #FAFAFA;
    color: var(--text-secondary);
    font-weight: 500;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--text-primary);
}

.data-table tr:hover td {
    background-color: #FAFAFA;
}

/* Status Badges */
.badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success { background: var(--status-success-bg); color: var(--status-success-text); }
.badge-warning { background: var(--status-warning-bg); color: var(--status-warning-text); }
.badge-error { background: var(--status-error-bg); color: var(--status-error-text); }
.badge-info { background: var(--status-info-bg); color: var(--status-info-text); }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.metric-card {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.metric-label {
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-trend {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up { color: var(--status-success-text); }
.trend-down { color: var(--status-error-text); }
