/* Design System Tokens */
:root {
    --emerald-primary: #10b981;
    --emerald-dark: #059669;
    --emerald-soft: rgba(16, 185, 129, 0.1);
    --slate-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-border: rgba(0, 0, 0, 0.05);
}

/* Base Styles */
body {
    background-color: var(--slate-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Sidebar Navigation */
aside nav a.active {
    background-color: var(--emerald-soft);
    color: var(--emerald-primary);
    font-weight: 600;
}

/* Card Styles */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

/* Table Enhancements */
table thead th {
    letter-spacing: 0.1em;
    color: #94a3b8;
}

table tbody tr {
    transition: all 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

table tbody tr:hover {
    background-color: #f8fafc;
}

table td {
    color: var(--text-main);
    padding: 1.25rem 1rem;
}

/* Progress Bar (Usage) */
.usage-bar {
    width: 60px;
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.usage-low { background: #10b981; }
.usage-med { background: #f59e0b; }
.usage-high { background: #ef4444; }

/* Status Badges */
.badge {
    padding: 0.4rem 0.85rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-active { background: #ecfdf5; color: #059669; }
.badge-inactive { background: #fff1f2; color: #e11d48; }

/* Animations */
@keyframes slideUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out forwards;
}

/* Form Controls */
input, select {
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

input:focus, select:focus {
    border-color: var(--emerald-primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
    outline: none;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Utility Layout Classes */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.h-screen { height: 100vh; }
.h-full { height: 100%; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.border-r { border-right-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-purple-50 { background-color: #faf5ff; }
.text-slate-900 { color: #0f172a; }
.text-slate-500 { color: #64748b; }
.text-slate-400 { color: #94a3b8; }
.text-emerald-700 { color: #047857; }
.text-emerald-600 { color: #059669; }
.text-blue-600 { color: #2563eb; }
.text-purple-600 { color: #7c3aed; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-3xl { font-size: 1.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xs { font-size: 0.75rem; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-wider { letter-spacing: 0.05em; }
.z-30 { z-index: 30; }
.z-20 { z-index: 20; }
.transition-all { transition-property: all; }
.duration-300 { transition-duration: 300ms; }
.duration-200 { transition-duration: 200ms; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.italic { font-style: italic; }
