:root {
    --bg-body: #0b0f19;
    --bg-card: rgba(22, 28, 45, 0.75);
    --bg-card-hover: rgba(30, 38, 60, 0.85);
    --border-ghost: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(59, 130, 246, 0.3);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-green: #10b981;
    --accent-emerald: #059669;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    
    --shadow-ambient: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Noto Serif', serif;
    --font-mono: 'Manrope', monospace;
}

[data-bs-theme="light"] {
    --bg-body: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(241, 245, 249, 0.9);
    --border-ghost: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-ambient: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image: 
        radial-gradient(at 15% 15%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
        radial-gradient(at 85% 85%, rgba(99, 102, 241, 0.12) 0px, transparent 50%);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-ghost);
    border-radius: 20px;
    box-shadow: var(--shadow-ambient);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--border-accent);
}

.navbar-glass {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-ghost);
}

.brand-title {
    font-family: var(--font-sans);
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kpi-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.kpi-card .kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.kpi-card .kpi-value {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-sans);
    line-height: 1.1;
}

.kpi-card .kpi-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.table-custom {
    color: var(--text-primary);

}

.table-custom th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.7px;
    padding: 1rem;
    border-bottom: 1px solid var(--border-ghost);
}

.table-custom td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-ghost);
    vertical-align: middle;
    white-space: nowrap;
}

.badge-soft-green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.35em 0.75em;
    border-radius: 8px;
}

.badge-soft-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.35em 0.75em;
    border-radius: 8px;
}

.badge-soft-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.35em 0.75em;
    border-radius: 8px;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1.4rem;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.5);
    color: white;
}

.terminal-box {
    background: #090d16;
    border-radius: 12px;
    border: 1px solid var(--border-ghost);
    padding: 1rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #34d399;
    max-height: 350px;
    overflow-y: auto;
}
