:root {
    /* Brand Colors */
    --brand-yellow: #eea54e;
    --brand-light-green: #e7efee;
    --brand-green: #244941;
    --brand-pink: #fbc5b9;
    
    /* Transparent Variants */
    --brand-yellow-10: rgba(238, 165, 78, 0.1);
    --brand-yellow-20: rgba(238, 165, 78, 0.2);
    --brand-green-10: rgba(36, 73, 65, 0.1);
    --brand-green-20: rgba(36, 73, 65, 0.2);
    --brand-pink-10: rgba(251, 197, 185, 0.1);
    --brand-pink-20: rgba(251, 197, 185, 0.2);
    
    /* Highlight (accent for active states, hover, focus) */
    --highlight: #1eb97a;
    --highlight-10: rgba(30, 185, 122, 0.1);
    --highlight-20: rgba(30, 185, 122, 0.2);

    /* Complementary Colors */
    --accent-teal: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-red: #ef4444;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    
    /* Backgrounds */
    --bg-primary: #e7efee;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-header: #ffffff;
    --bg-soft: #f8f9fa;
    --bg-hover: #f3f4f6;
    
    /* Text */
    --text-primary: #1f2937;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --text-on-brand: #ffffff;
    
    /* Borders */
    --card-border: #e5e7eb;
    --border-subtle: #e5e7eb;
    --border-light: rgba(36, 73, 65, 0.1);
    
    /* Spacing Scale */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 48px;
    
    /* Elevation System */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--accent-success); }
.text-warning { color: var(--accent-warning); }
.text-danger { color: var(--accent-red); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    gap: var(--spacing-sm);
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--brand-green);
    color: white;
}
.btn-primary:hover {
    background-color: #1a3630;
}

.btn-secondary {
    background-color: white;
    border-color: var(--card-border);
    color: #000;
}
.btn-secondary:hover {
    background-color: var(--bg-hover);
    border-color: var(--highlight);
    color: var(--highlight);
}

.btn-accent {
    background-color: var(--brand-yellow);
    color: #000;
}
.btn-accent:hover {
    background-color: #d99645;
    color: var(--highlight);
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    border: 1px solid var(--card-border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Status Badges */
.status-badge {
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.status-active, .status-occupied {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
}
.status-inactive, .status-vacant {
    background-color: rgba(107, 114, 128, 0.1);
    color: var(--text-muted);
}
.status-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--accent-warning);
}
.status-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

/* Tables */
.table-container {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th {
    text-align: left;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 2px solid var(--bg-primary);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
}
td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
}
tr:last-child td {
    border-bottom: none;
}

/* Material Icons helpers */
.material-icons {
    font-size: 20px;
    vertical-align: middle;
}
.material-icons.md-18 { font-size: 18px; }
.material-icons.md-24 { font-size: 24px; }
.material-icons.md-36 { font-size: 36px; }
.material-icons.md-48 { font-size: 48px; }

/* Grid Layouts Helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--spacing-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-lg); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Button Disabled State */
.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Chart Tab Active State */
.chart-tab.active {
    border-bottom: 2px solid var(--highlight);
    font-weight: 700;
    color: var(--highlight);
}
.chart-tab {
    color: var(--text-muted);
}
