/* ==========================================================================
   CLOUDASSET — AI-POWERED CLOUD OPERATIONS CENTER
   Futuristic Enterprise Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ==========================================================================
   DESIGN TOKENS (DARK MODE DEFAULT)
   ========================================================================== */
:root {
    /* Color Palette - Deep Obsidian & Cyber Slate */
    --bg-base: #060913;
    --bg-surface: #0c1222;
    --bg-surface-elevated: #111a30;
    --bg-surface-glass: rgba(12, 18, 34, 0.78);
    --bg-surface-hover: #172340;
    --bg-input: #090e1c;
    --bg-card: rgba(15, 23, 42, 0.75);

    /* Cyber Telemetry Accents */
    --cyan: #00f0ff;
    --cyan-glow: rgba(0, 240, 255, 0.25);
    --cyan-subtle: rgba(0, 240, 255, 0.08);
    
    --primary: #38bdf8;
    --primary-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
    --primary-glow: rgba(56, 189, 248, 0.35);
    --primary-hover: #0ea5e9;
    --primary-light: rgba(56, 189, 248, 0.12);

    --accent-purple: #a855f7;
    --accent-purple-glow: rgba(168, 85, 247, 0.3);

    /* Status Colors */
    --status-running: #10b981;
    --status-running-bg: rgba(16, 185, 129, 0.12);
    --status-running-border: rgba(16, 185, 129, 0.35);
    --status-running-glow: rgba(16, 185, 129, 0.4);

    --status-stopped: #f59e0b;
    --status-stopped-bg: rgba(245, 158, 11, 0.12);
    --status-stopped-border: rgba(245, 158, 11, 0.35);
    --status-stopped-glow: rgba(245, 158, 11, 0.4);

    --status-inactive: #64748b;
    --status-inactive-bg: rgba(100, 116, 139, 0.14);
    --status-inactive-border: rgba(100, 116, 139, 0.3);
    --status-inactive-glow: rgba(100, 116, 139, 0.2);

    --status-overdue: #ef4444;
    --status-overdue-bg: rgba(239, 68, 68, 0.14);
    --status-overdue-border: rgba(239, 68, 68, 0.4);
    --status-overdue-glow: rgba(239, 68, 68, 0.45);

    --status-terminated: #475569;
    --status-terminated-bg: rgba(71, 85, 105, 0.14);
    --status-terminated-border: rgba(71, 85, 105, 0.3);

    --status-pending: #8b5cf6;
    --status-pending-bg: rgba(139, 92, 246, 0.12);
    --status-pending-border: rgba(139, 92, 246, 0.35);

    /* Typography Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #38bdf8;

    /* Borders & Outlines */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.14);
    --border-glow: rgba(56, 189, 248, 0.3);
    --border-glass: rgba(255, 255, 255, 0.09);

    /* Shadows & Glows */
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-glass: 0 12px 40px -8px rgba(0, 0, 0, 0.6);
    --shadow-glow-cyan: 0 0 25px rgba(0, 240, 255, 0.18);
    --shadow-glow-blue: 0 0 30px rgba(37, 99, 235, 0.25);
    --shadow-card-hover: 0 16px 45px -10px rgba(0, 240, 255, 0.12), 0 0 0 1px rgba(0, 240, 255, 0.25);

    /* Geometry */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 9999px;
    --sidebar-width: 270px;
    --sidebar-collapsed-width: 80px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   LIGHT MODE OVERRIDES
   ========================================================================== */
body:not(.dark-mode) {
    --bg-base: #f0f4f8;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f8fafc;
    --bg-surface-glass: rgba(255, 255, 255, 0.88);
    --bg-surface-hover: #f1f5f9;
    --bg-input: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-accent: #0284c7;

    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-medium: rgba(15, 23, 42, 0.14);
    --border-glow: rgba(2, 132, 199, 0.3);
    --border-glass: rgba(15, 23, 42, 0.09);

    --shadow-subtle: 0 4px 18px rgba(15, 23, 42, 0.06);
    --shadow-glass: 0 12px 35px -8px rgba(15, 23, 42, 0.1);
    --shadow-card-hover: 0 16px 35px -10px rgba(2, 132, 199, 0.15), 0 0 0 1px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
    height: 100%;
}

body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(2, 132, 199, 0.15), transparent 70%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(168, 85, 247, 0.08), transparent 70%);
    background-attachment: fixed;
}

/* Monospace fonts for data / IDs / cost */
.font-mono,
.asset-id,
.cost-value,
.stat-number,
.badge-code {
    font-family: 'JetBrains Mono', monospace;
    font-feature-settings: 'zero' 1, 'tnum' 1;
}

/* Heading Typography */
h1, h2, h3, h4, .brand-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--text-primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.45);
}

/* ==========================================================================
   LOGIN SCREEN (FUTURISTIC COMMAND GATEWAY)
   ========================================================================== */
.login-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(2, 132, 199, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.14) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-attachment: fixed;
}

/* Left Hero Visual */
.login-visual {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, rgba(12, 18, 34, 0.75) 0%, rgba(6, 9, 19, 0.95) 100%);
    backdrop-filter: blur(20px);
}

.login-visual::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.visual-content {
    position: relative;
    z-index: 2;
    max-width: 540px;
}

.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--cyan-subtle);
    border: 1px solid var(--cyan-glow);
    border-radius: var(--radius-pill);
    color: var(--cyan);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.visual-badge .pulse-beacon {
    width: 7px;
    height: 7px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
    animation: beaconPulse 2s infinite ease-in-out;
}

.visual-title {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.visual-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.visual-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 36px;
}

/* Futuristic Telemetry Preview Cards on Visual */
.visual-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.visual-feat-card {
    padding: 16px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.visual-feat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
}

.visual-feat-card .feat-icon {
    font-size: 20px;
    margin-bottom: 8px;
    display: block;
}

.visual-feat-card strong {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.visual-feat-card span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Right Login Panel */
.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 44px 40px;
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-glass), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    animation: cardSlideUp 0.4s ease-out;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0.7;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
    color: var(--cyan);
}

.login-logo svg {
    width: 32px;
    height: 32px;
    stroke: var(--cyan);
}

.login-card h1 {
    font-size: 24px;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Login Form Elements */
.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-icon svg {
    width: 18px;
    height: 18px;
}

.input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), 0 0 12px rgba(56, 189, 248, 0.2);
    background: var(--bg-surface);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

.password-wrapper input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--text-primary);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.login-error {
    padding: 12px 16px;
    background: var(--status-overdue-bg);
    border: 1px solid var(--status-overdue-border);
    border-radius: var(--radius-md);
    color: #fca5a5;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.35s ease;
}

.login-button {
    width: 100%;
    height: 50px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(37, 99, 235, 0.6);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(0);
}

/* ==========================================================================
   APP LAYOUT & WORKSPACE
   ========================================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-base);
    position: relative;
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-surface-glass);
    border-right: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    z-index: 1000;
    transition: width var(--transition-smooth), transform var(--transition-smooth);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 8px 28px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.sidebar-brand .logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.05em;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
    flex-shrink: 0;
    position: relative;
}

.sidebar-brand .logo::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 1px solid var(--cyan);
    opacity: 0.6;
}

.sidebar-brand-text h2 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 40%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-brand-text span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Sidebar Navigation Items */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-item {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.22) 0%, rgba(56, 189, 248, 0.08) 100%);
    color: var(--cyan);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.12);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 16px;
    color: inherit;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Sidebar Footer / System Status */
.sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid var(--status-running-border);
    border-radius: var(--radius-md);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--status-running);
    box-shadow: 0 0 10px var(--status-running);
    position: relative;
    flex-shrink: 0;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--status-running);
    animation: beaconPulse 2.5s infinite;
}

.system-status strong {
    display: block;
    font-size: 12px;
    color: var(--text-primary);
}

.system-status small {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-smooth), width var(--transition-smooth);
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
    height: 80px;
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface-glass);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 900;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.topbar-title h1 {
    font-size: 22px;
    margin: 0;
    line-height: 1.2;
}

.topbar-title p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 3px 0 0;
}

/* Topbar Actions */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-glow);
    color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* User Profile Trigger */
.user-profile-wrapper {
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-profile:hover,
.user-profile.active {
    border-color: var(--border-glow);
    background: var(--bg-surface-hover);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.user-avatar, .dropdown-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.25;
}

.user-info strong {
    font-size: 13px;
    color: var(--text-primary);
}

.user-info span {
    font-size: 11px;
    color: var(--cyan);
    text-transform: capitalize;
    font-weight: 500;
}

.profile-arrow {
    font-size: 14px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.user-profile.active .profile-arrow {
    transform: rotate(180deg);
}

/* Profile Dropdown Menu */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    padding: 8px;
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-glass);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: 1000;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.profile-dropdown-header strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
}

.profile-dropdown-header span {
    display: block;
    font-size: 12px;
    color: var(--cyan);
    margin-top: 2px;
}

.profile-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 6px 0;
}

.logout-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: #f87171;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.logout-button:hover {
    background: var(--status-overdue-bg);
}

.logout-button svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   PAGE CONTAINER & TRANSITIONS
   ========================================================================== */
.page {
    display: none;
    padding: 36px;
    flex: 1;
}

.page.active-page {
    display: block;
    animation: pageReveal 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-intro {
    margin-bottom: 28px;
}

.page-intro h2 {
    font-size: 26px;
    margin: 4px 0 6px;
}

.page-intro p {
    color: var(--text-secondary);
    font-size: 14px;
}

.eyebrow {
    color: var(--cyan) !important;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==========================================================================
   DASHBOARD SECTION
   ========================================================================== */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.welcome-section::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-section h2 {
    font-size: 28px;
    margin: 4px 0 8px;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 600px;
}

/* Dashboard Statistics Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.dashboard-card {
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card-hover);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-icon, .card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    border: 1px solid var(--border-glow);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.dashboard-icon svg, .card-icon svg {
    width: 24px;
    height: 24px;
}

.dashboard-card p {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-card h3 {
    font-size: 28px;
    font-weight: 800;
    margin: 4px 0 2px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Outfit', sans-serif;
}

.dashboard-card small {
    font-size: 11px;
    color: var(--text-muted);
}

/* Dashboard Content Grid */
.dashboard-content-grid,
.cost-content-grid,
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.analytics-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Panels */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-subtle);
    transition: border-color var(--transition-fast);
}

.panel:hover {
    border-color: var(--border-medium);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.panel-header h3, .panel h3 {
    font-size: 17px;
    margin: 0;
}

.panel-header p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 0 0;
}

.text-button {
    background: transparent;
    border: none;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.text-button:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Recent Assets Feed */
#recentAssets {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-asset {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.recent-asset:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-glow);
    transform: translateX(4px);
}

.recent-asset strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
}

.recent-asset span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.recent-asset-cost {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--cyan);
    padding: 4px 10px;
    background: var(--cyan-subtle);
    border: 1px solid var(--cyan-glow);
    border-radius: var(--radius-sm);
}

/* Infrastructure Summary List */
.summary-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.summary-item:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-medium);
}

.summary-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.running-dot {
    background: var(--status-running);
    box-shadow: 0 0 10px var(--status-running);
}

.stopped-dot {
    background: var(--status-stopped);
    box-shadow: 0 0 10px var(--status-stopped);
}

.inactive-dot {
    background: var(--status-inactive);
}

.overdue-dot {
    background: var(--status-overdue);
    box-shadow: 0 0 10px var(--status-overdue);
}

.terminated-dot {
    background: var(--status-terminated);
}

.summary-item strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    color: var(--text-primary);
}

.overdue-item {
    background: var(--status-overdue-bg);
    border-color: var(--status-overdue-border);
}

.overdue-item strong {
    color: #f87171;
}

/* ==========================================================================
   BUTTONS SYSTEM
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: var(--bg-surface);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-glow);
    color: var(--cyan);
}

.btn-danger {
    background: var(--status-overdue-bg);
    border-color: var(--status-overdue-border);
    color: #fca5a5;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
}

.btn-edit {
    background: var(--primary-light);
    border-color: var(--border-glow);
    color: var(--cyan);
}

.btn-edit:hover {
    background: rgba(56, 189, 248, 0.22);
    color: #ffffff;
}

.btn-estimate {
    background: var(--cyan-subtle);
    border: 1px solid var(--cyan-glow);
    color: var(--cyan);
    white-space: nowrap;
    padding: 0 14px;
    height: 44px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all var(--transition-fast);
}

.btn-estimate:hover {
    background: rgba(0, 240, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 0 12px var(--cyan-glow);
}

/* ==========================================================================
   FORMS & INPUTS SYSTEM
   ========================================================================== */
.add-asset-section, .assets-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-subtle);
}

.section-title {
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.section-title h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.section-title p {
    font-size: 13px;
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13.5px;
    outline: none;
    transition: all var(--transition-fast);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
    background: var(--bg-surface);
}

.cost-form-group .cost-input-group {
    display: flex;
    gap: 10px;
}

/* ==========================================================================
   SEARCH & FILTER BAR
   ========================================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.section-header h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.section-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.search-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.search-box {
    flex: 1.5;
    min-width: 220px;
}

.search-box input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 38px;
    background: var(--bg-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 12px center;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13.5px;
    outline: none;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filter-controls select {
    height: 42px;
    padding: 0 34px 0 12px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.filter-controls select:focus {
    border-color: var(--primary);
}

/* Messages & Feedback */
.loading {
    padding: 24px;
    text-align: center;
    color: var(--cyan);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid var(--cyan-glow);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.error, .success {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 13.5px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.error {
    background: var(--status-overdue-bg);
    border: 1px solid var(--status-overdue-border);
    color: #fca5a5;
}

.success {
    background: var(--status-running-bg);
    border: 1px solid var(--status-running-border);
    color: #86efac;
}

/* ==========================================================================
   ASSET CARDS GRID
   ========================================================================== */
#assetsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.asset-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-subtle);
}

.asset-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card-hover);
}

.asset-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.asset-card-header h3 {
    font-size: 16px;
    margin: 0 0 4px;
    color: var(--text-primary);
    word-break: break-word;
}

.asset-id {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-running, .status-active {
    background: var(--status-running-bg);
    border: 1px solid var(--status-running-border);
    color: #34d399;
}
.status-running::before, .status-active::before {
    background: #34d399;
    box-shadow: 0 0 6px #34d399;
}

.status-stopped {
    background: var(--status-stopped-bg);
    border: 1px solid var(--status-stopped-border);
    color: #fbbf24;
}
.status-stopped::before {
    background: #fbbf24;
    box-shadow: 0 0 6px #fbbf24;
}

.status-inactive {
    background: var(--status-inactive-bg);
    border: 1px solid var(--status-inactive-border);
    color: #94a3b8;
}
.status-inactive::before {
    background: #94a3b8;
}

.status-terminated {
    background: var(--status-terminated-bg);
    border: 1px solid var(--status-terminated-border);
    color: #64748b;
}
.status-terminated::before {
    background: #64748b;
}

.status-pending {
    background: var(--status-pending-bg);
    border: 1px solid var(--status-pending-border);
    color: #c084fc;
}
.status-pending::before {
    background: #c084fc;
}

/* Asset Info Specs */
.asset-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
    padding: 12px;
    background: var(--bg-base);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.asset-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.asset-info-item span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.asset-info-item strong {
    font-size: 12.5px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Asset Cost Row */
.asset-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

.asset-cost span {
    font-size: 12px;
    color: var(--text-secondary);
}

.asset-cost strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    color: var(--cyan);
    font-weight: 700;
}

/* Asset Actions */
.asset-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.view-only-label {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--bg-surface-hover);
    border-color: var(--border-glow);
    color: var(--cyan);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 6px;
}

.page-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.page-number:hover {
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.page-number.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   COST OVERVIEW & ANALYTICS
   ========================================================================== */
.cost-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.cost-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.cost-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
}

.cost-card.featured {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: var(--border-glow);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
}

.cost-card p {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.cost-card h2 {
    font-size: 32px;
    font-family: 'JetBrains Mono', 'Outfit', sans-serif;
    color: var(--cyan);
    margin-bottom: 6px;
}

.cost-card span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Cost & Analytics Row Visualizations */
.cost-list, .analytics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analytics-row, .cost-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.analytics-row:hover, .cost-row:hover {
    border-color: var(--border-medium);
}

.analytics-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-primary);
}

.analytics-label strong {
    font-family: 'JetBrains Mono', monospace;
    color: var(--cyan);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-base);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-pill);
    transition: width 0.6s ease;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.empty-state {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13.5px;
}

/* ==========================================================================
   SETTINGS SECTION
   ========================================================================== */
.settings-panel {
    max-width: 700px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.setting-item p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.badge-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--status-running-bg);
    border: 1px solid var(--status-running-border);
    border-radius: var(--radius-pill);
    color: #34d399;
    font-size: 12px;
    font-weight: 700;
}

/* ==========================================================================
   MODAL DIALOG (GLASSMORPHISM)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(4, 7, 16, 0.75);
    backdrop-filter: blur(12px);
    overflow-y: auto;
    padding: 40px 20px;
}

.modal-content {
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    max-width: 580px;
    margin: 30px auto;
    padding: 36px;
    backdrop-filter: blur(28px);
    box-shadow: var(--shadow-glass);
    position: relative;
    animation: cardSlideUp 0.3s ease-out;
}

.modal-content h2 {
    font-size: 22px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.close:hover {
    color: var(--text-primary);
    border-color: var(--border-glow);
    background: var(--bg-surface-hover);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes beaconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .login-screen {
        flex-direction: column;
    }
    .login-visual {
        display: none;
    }
    .login-panel {
        padding: 24px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .dashboard-content-grid,
    .cost-content-grid,
    .cost-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 0 18px;
    }
    .page {
        padding: 20px 18px;
    }
    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .search-filter-container {
        flex-direction: column;
    }
    .filter-controls {
        flex-direction: column;
        width: 100%;
    }
    .filter-controls select,
    .filter-controls button {
        width: 100%;
    }
    .user-info {
        display: none;
    }
    .modal-content {
        padding: 24px;
    }
}