:root {
    /* ========================================
       DESIGN TOKENS - Professional Design System
       ======================================== */

    /* Color Palette - Neutral Grays (Primary Brand) */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Slate Grays (Secondary) */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Semantic Colors */
    --success-50: #f0fdf4;
    --success-100: #dcfce7;
    --success-500: #10b981;
    --success-600: #059669;
    --success-700: #047857;

    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;

    --danger-50: #fef2f2;
    --danger-100: #fee2e2;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;

    --info-50: #eff6ff;
    --info-100: #dbeafe;
    --info-500: #3b82f6;
    --info-600: #2563eb;
    --info-700: #1e40af;

    /* Legacy Compatibility (mapped to new system) */
    --primary: var(--slate-600);
    --primary-dark: var(--slate-700);
    --primary-light: var(--slate-500);
    --secondary: var(--slate-500);
    --accent: var(--slate-700);
    --success: var(--success-500);
    --warning: var(--warning-500);
    --danger: var(--danger-500);
    --info: var(--info-500);
    --dark: var(--slate-800);
    --dark-alt: var(--slate-700);

    /* Background Colors */
    --bg: #ffffff;
    --bg-secondary: var(--slate-50);
    --bg-tertiary: var(--slate-100);
    --bg-hover: var(--slate-50);

    /* Border Colors */
    --border: var(--gray-200);
    --border-light: var(--gray-100);
    --border-dark: var(--gray-300);

    /* Text Colors */
    --text-primary: var(--slate-900);
    --text-secondary: var(--slate-600);
    --text-muted: var(--slate-400);
    --text-disabled: var(--slate-300);

    /* Spacing Scale */
    --space-0: 0;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Typography Scale */
    --text-xs: 11px;
    --text-sm: 12px;
    --text-base: 14px;
    --text-md: 15px;
    --text-lg: 16px;
    --text-xl: 18px;
    --text-2xl: 20px;
    --text-3xl: 24px;
    --text-4xl: 28px;
    --text-5xl: 32px;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* Border Radius */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px rgba(0,0,0,0.25);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index Scale */
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 900;
    --z-modal: 1000;
    --z-notification: 1100;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif; background: var(--bg-tertiary); color: var(--text-primary); line-height: 1.6; min-height: 100vh; }
[v-cloak] { display: none !important; }

/* Loading */
.loading-screen { display: flex; justify-content: center; align-items: center; height: 100vh; background: var(--dark); }
.loading-content { text-align: center; color: white; }
.loading-spinner { border: 4px solid rgba(71,85,105,0.2); border-top: 4px solid var(--accent); border-radius: 50%; width: 48px; height: 48px; animation: spin 0.8s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Login */
.login-container { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: var(--dark); }
.login-box { background: white; padding: 48px; border-radius: 8px; box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; border-top: 3px solid var(--accent); }
.login-logo { font-size: 32px; font-weight: 700; color: var(--dark); text-align: center; margin-bottom: 8px; }
.login-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 32px; font-size: 14px; }

/* Layout */
.app-container { display: flex; height: 100vh; background: var(--bg); animation: fadeIn 0.3s; }

/* Sidebar */
.sidebar { width: 260px; background: var(--dark); color: white; display: flex; flex-direction: column; box-shadow: 2px 0 8px rgba(0,0,0,0.1); transition: width 0.3s ease; position: relative; }
.sidebar.collapsed { width: 70px; }
.sidebar.collapsed .nav-link span:not(.nav-icon) { opacity: 0; width: 0; overflow: hidden; }
.sidebar.collapsed .logo { font-size: 18px; }
.sidebar.collapsed .sidebar-user-name,
.sidebar.collapsed .sidebar-user-email,
.sidebar.collapsed .sidebar-user-role { opacity: 0; height: 0; overflow: hidden; margin: 0; }
.sidebar.collapsed .sidebar-user .btn { padding: 8px; font-size: 0; }
.sidebar.collapsed .sidebar-user .btn::before { content: '⎋'; font-size: 16px; }
.sidebar-toggle { position: absolute; top: 50%; right: -6px; transform: translateY(-50%); width: 12px; height: 40px; background: var(--slate-700); border: none; border-radius: 0 3px 3px 0; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; transition: all 0.15s ease; color: rgba(255,255,255,0.25); }
.sidebar:hover .sidebar-toggle { right: -10px; color: rgba(255,255,255,0.5); background: var(--slate-600); }
.sidebar-toggle:hover { background: var(--slate-500); color: rgba(255,255,255,0.9); right: -12px; width: 14px; }
.sidebar-toggle:active { background: var(--slate-400); }
.sidebar-toggle svg { width: 8px; height: 8px; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); stroke-width: 2.5; }
.sidebar.collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.sidebar-header { padding: 20px; transition: padding 0.3s; }
.sidebar.collapsed .sidebar-header { padding: 20px 10px; }
.logo { text-align: center; margin-bottom: 4px; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.sidebar-header > div:last-child { text-align: center; color: rgba(255,255,255,0.5); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.3s; }
nav { flex: 1; padding: 12px 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }
nav::-webkit-scrollbar { width: 6px; }
nav::-webkit-scrollbar-track { background: transparent; }
nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }
.nav-menu { list-style: none; }
.nav-item { margin-bottom: 1px; padding: 0 10px; }
.sidebar.collapsed .nav-item { padding: 0 8px; }
.nav-link { display: flex; align-items: center; flex-direction: row; gap: 10px; padding: 8px 14px; border-radius: 5px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; white-space: nowrap; position: relative; }
.nav-link.active { background: rgba(71,85,105,0.2); color: white; font-weight: 600; }
.sidebar.collapsed .nav-link { padding: 10px 12px; justify-content: center; }
.sidebar.collapsed .nav-link.active { flex-direction: row; }
.nav-link:hover { background: rgba(255,255,255,0.08); color: white; }
.nav-icon { font-size: 18px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-right: 0; transition: all 0.2s; }
.nav-icon svg { width: 18px; height: 18px; transition: all 0.2s; }
.sidebar.collapsed .nav-icon { width: 26px; height: 26px; }
.sidebar.collapsed .nav-icon svg { width: 24px; height: 24px; }
.nav-link span:not(.nav-icon) { transition: opacity 0.2s, width 0.2s; }

/* Sidebar User */
.sidebar-user { margin-top: auto; padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2); transition: padding 0.3s; }
.sidebar.collapsed .sidebar-user { padding: 12px 8px; }
.sidebar-user-label { color: rgba(255,255,255,0.5); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 8px; transition: all 0.3s; }
.sidebar.collapsed .sidebar-user-label { opacity: 0; height: 0; margin: 0; }
.sidebar-user-name { color: white; font-weight: 600; font-size: 15px; margin-bottom: 4px; transition: all 0.3s; }
.sidebar-user-email { color: rgba(255,255,255,0.6); font-size: 12px; margin-bottom: 2px; transition: all 0.3s; }
.sidebar-user-role { color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 4px; transition: all 0.3s; }
.sidebar-user .btn { margin-top: 12px; width: 100%; transition: all 0.2s; background: transparent; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.5); font-size: 12px; padding: 6px 12px; }
.sidebar-user .btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.8); }

/* Main Content */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.header { background: white; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.page-title { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.mobile-menu, .sidebar-menu { display: none; }
.content { flex: 1; padding: 16px 20px; overflow-y: auto; background: var(--bg-tertiary); }

.tab-button{background:none;border:none;padding:12px 24px;cursor:pointer;font-size:14px;color:#6b7280;border-bottom:2px solid transparent;transition:all 0.2s;}
.tab-button:hover{color:#111827;}
.tab-active{color:#475569;border-bottom-color:#475569;font-weight:500;}
.badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:12px;font-weight:500;}
.badge-admin{background:#e2e8f0;color:#64748b;}
.badge-operator{background:#f3f4f6;color:#374151;}
.badge-user{background:#f3f4f6;color:#374151;}
.badge-success{background:#d1fae5;color:#065f46;}
.badge-danger{background:#fee2e2;color:#991b1b;}
.form-input{width:100%;padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;}
.form-input:focus{outline:none;border-color:#475569;box-shadow:0 0 0 3px rgba(71,85,105,0.1);}
textarea.form-input{resize:vertical;font-family:inherit;}
.data-table{width:100%;border-collapse:collapse;}
.data-table th,.data-table td{padding:12px;text-align:left;border-bottom:1px solid #e5e7eb;}
.data-table th{background:#f9fafb;font-weight:600;color:#374151;}
.data-table tbody tr:hover{background:#f9fafb;}
.btn-sm{padding:6px 12px;font-size:13px;}
code{font-family:'Courier New',monospace;}

/* Cards */
.card { background: white; border-radius: 6px; padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; }
.card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card { background: white; border-radius: 6px; padding: 14px 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.metric-label { font-size: 11px; color: #64748b !important; margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.metric-value { font-size: 24px; font-weight: 700; color: #0f172a !important; line-height: 1.2; }
.metric-trend { display: inline-flex; align-items: center; font-size: 12px; padding: 2px 6px; border-radius: 4px; font-weight: 500; margin-top: 6px; }
.trend-up { color: var(--success); background: rgba(5,150,105,0.1); }
.trend-down { color: var(--danger); background: rgba(220,38,38,0.1); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--text-primary); font-size: 14px; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; background: white; color: var(--text-primary); transition: all 0.2s; }
.form-control:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 3px rgba(15,23,42,0.05); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

/* ========================================
   BUTTONS - Standardized Component System
   ======================================== */

/* Base Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
    cursor: pointer;
    transition: all var(--transition-base);
    user-select: none;
    white-space: nowrap;
}

/* Button Sizes */
.btn-xs {
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    gap: var(--space-1);
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-lg);
}

/* Button Variants */
.btn-primary {
    background: var(--slate-500);
    color: white;
    border-color: var(--slate-500);
}

.btn-primary:hover:not(:disabled) {
    background: var(--slate-600);
    border-color: var(--slate-600);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--border-dark);
}

.btn-success {
    background: var(--success-600);
    color: white;
    border-color: var(--success-600);
}

.btn-success:hover:not(:disabled) {
    background: var(--success-700);
    border-color: var(--success-700);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger-600);
    color: white;
    border-color: var(--danger-600);
}

.btn-danger:hover:not(:disabled) {
    background: var(--danger-700);
    border-color: var(--danger-700);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning-600);
    color: white;
    border-color: var(--warning-600);
}

.btn-warning:hover:not(:disabled) {
    background: var(--warning-700);
    border-color: var(--warning-700);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-icon {
    background: transparent;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
    font-size: var(--text-xl);
    color: var(--text-secondary);
    border-radius: var(--radius);
}

.btn-icon:hover:not(:disabled) {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* Button States */
button:disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn:focus-visible {
    outline: 2px solid var(--slate-500);
    outline-offset: 2px;
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    gap: var(--space-2);
}

.btn-group .btn:not(:first-child):not(:last-child) {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Tables */
.data-table, .table { width: 100%; border-collapse: collapse; }
.data-table th, .table th { background: var(--bg-tertiary); padding: 10px 12px; text-align: left; font-weight: 600; font-size: 11px; border-bottom: 1px solid var(--border); color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.data-table td, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.data-table tr:hover, .table tr:hover { background: var(--bg-secondary); }

/* Table Row Actions - Better visibility */
.table td .btn-sm, .data-table td .btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 6px; }
.table td .btn-danger, .data-table td .btn-danger { background: var(--danger-50); color: var(--danger-600); border: 1px solid var(--danger-200, #fecaca); }
.table td .btn-danger:hover, .data-table td .btn-danger:hover { background: var(--danger-600); color: white; border-color: var(--danger-600); }
.table td .btn-secondary, .data-table td .btn-secondary { background: var(--gray-50); color: var(--gray-600); border: 1px solid var(--gray-200); }
.table td .btn-secondary:hover, .data-table td .btn-secondary:hover { background: var(--gray-100); border-color: var(--gray-300); }

/* Status */
.status { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; gap: 4px; }
.status-success { background: rgba(5,150,105,0.1); color: var(--success); }
.status-warning { background: rgba(217,119,6,0.1); color: var(--warning); }
.status-danger { background: rgba(220,38,38,0.1); color: var(--danger); }
.status-primary { background: rgba(71,85,105,0.1); color: var(--accent); }

/* Alerts */
.alert { padding: 14px 16px; border-radius: 6px; margin: 12px 0; border-left: 3px solid; font-size: 14px; }
.alert-danger { background: #fef2f2; border-color: var(--danger); color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: var(--warning); color: #92400e; }
.alert ul { margin: 8px 0 0 20px; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.7); display: flex; align-items: center; justify-content: center; z-index: var(--z-modal); backdrop-filter: blur(4px); animation: fadeIn var(--transition-base); }
.modal { background: white; border-radius: var(--radius-xl); padding: var(--space-8); max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-2xl); animation: slideUp var(--transition-slow); }
.modal-content { background: white; border-radius: var(--radius-xl); max-width: 800px; width: 90%; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-2xl); }
.modal-header { margin-bottom: 0; padding: var(--space-6); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; background: white; }
.modal-title { font-size: var(--text-2xl); font-weight: var(--font-semibold); color: var(--text-primary); }
.modal-body { flex: 1; overflow-y: auto; max-height: calc(90vh - 100px); }
.modal-footer { margin-top: 0; padding: var(--space-4) var(--space-6); display: flex; justify-content: flex-end; gap: var(--space-2); border-top: 1px solid var(--border); background: white; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Confirmation Modal */
.confirm-modal { max-width: 480px; }
.confirm-modal .modal-header { padding: var(--space-6); background: var(--danger-50); border-bottom: 2px solid var(--danger-200); }
.confirm-modal .modal-title { display: flex; align-items: center; gap: var(--space-3); color: var(--danger-700); }
.confirm-modal .modal-title i { font-size: var(--text-3xl); }
.confirm-modal .modal-body { padding: var(--space-6); }
.confirm-modal .confirm-message { font-size: var(--text-base); color: var(--text-secondary); line-height: var(--leading-relaxed); }
.confirm-modal .confirm-details { margin-top: var(--space-4); padding: var(--space-4); background: var(--slate-50); border-left: 3px solid var(--slate-400); border-radius: var(--radius); font-size: var(--text-sm); color: var(--text-secondary); }
.confirm-modal .confirm-warning { margin-top: var(--space-4); padding: var(--space-3); background: var(--warning-50); border: 1px solid var(--warning-200); border-radius: var(--radius); font-size: var(--text-sm); color: var(--warning-700); display: flex; align-items: start; gap: var(--space-2); }
.confirm-modal .confirm-warning i { margin-top: 2px; }

/* Notifications */
.notification { position: fixed; bottom: 20px; right: 20px; background: white; padding: 16px 20px; border-radius: 6px; box-shadow: var(--shadow-lg); max-width: 400px; z-index: 1001; border: 1px solid var(--border); font-size: 14px; }
.notification.success { border-left: 4px solid var(--success); }
.notification.error { border-left: 4px solid var(--danger); }

/* Misc */
.progress-bar { width: 100%; height: 8px; background: var(--bg-tertiary); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); transition: width 0.4s; }
.upload-zone { border: 2px dashed var(--border); border-radius: 6px; padding: 40px; text-align: center; background: var(--bg-secondary); }
.upload-zone:hover { border-color: var(--accent); background: rgba(71,85,105,0.03); }
.monitor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.monitor-item { background: white; border-radius: 6px; padding: 16px; border-left: 3px solid var(--accent); border: 1px solid var(--border); }
.tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.tab { padding: 12px 20px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text-secondary); font-size: 14px; font-weight: 500; background: none; border-top: none; border-left: none; border-right: none; }
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.page-btn { padding: 6px 12px; border: 1px solid var(--border); background: white; cursor: pointer; border-radius: 4px; color: var(--text-primary); font-size: 14px; }
.page-btn:hover:not(:disabled) { background: var(--bg-secondary); }
.page-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.chart-container { position: relative; height: 400px; margin-top: 20px; }

/* Standard Section Headers - Enterprise Style */
.section-header-standard { background: #f8fafc; color: #0f172a; padding: 16px 20px; border-bottom: 2px solid #e2e8f0; border-radius: 0; margin: 0; }
.section-header-standard h2, .section-header-standard h3 { margin: 0; font-size: 16px; font-weight: 600; color: #0f172a; display: flex; align-items: center; gap: 10px; }
.section-header-standard h2 i, .section-header-standard h3 i { color: #64748b; font-size: 16px; }
.section-subheader { background: #ffffff; color: #0f172a; padding: 14px 20px; border-bottom: 1px solid #e2e8f0; }
.section-subheader h4 { margin: 0; font-size: 14px; font-weight: 600; color: #374151; display: flex; align-items: center; gap: 8px; }
.section-subheader h4 i { color: #64748b; font-size: 14px; }

/* ========================================
   UTILITY CLASSES - Loading, Empty States, Feedback
   ======================================== */

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--slate-300);
    border-top-color: var(--slate-600);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--slate-300);
    border-top-color: var(--slate-600);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner-lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) var(--space-6);
    text-align: center;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    color: var(--slate-300);
    margin-bottom: var(--space-4);
}

.empty-state-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.empty-state-description {
    font-size: var(--text-base);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    max-width: 400px;
}

.empty-state-action {
    margin-top: var(--space-4);
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 50%, var(--slate-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

.skeleton-text {
    height: 14px;
    margin-bottom: var(--space-2);
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: var(--space-3);
}

.skeleton-block {
    height: 100px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: var(--space-2) var(--space-3);
    background: var(--slate-900);
    color: white;
    font-size: var(--text-sm);
    border-radius: var(--radius);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    z-index: var(--z-dropdown);
}

.tooltip:hover::before {
    opacity: 1;
}

/* Focus Ring */
.focus-ring:focus-visible {
    outline: 2px solid var(--slate-500);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Truncate Text */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-4) 0;
}

.divider-vertical {
    width: 1px;
    height: auto;
    background: var(--border);
    margin: 0 var(--space-4);
}

/* Responsive */
@media (max-width: 768px) { .sidebar { position: fixed; z-index: 999; transform: translateX(-100%); } .sidebar.open { transform: translateX(0); } .sidebar-menu { display: flex !important; align-items: center; justify-content: center; padding: 6px; border-radius: 4px; color: var(--slate-500); background: transparent; border: 1px solid var(--slate-200); } .dashboard-grid, .form-row, .monitor-grid { grid-template-columns: 1fr; } .header, .content { padding: 16px; } }
/* Font Awesome Icon Adjustments */
i.fas, i.far, i.fab {
    display: inline-block;
    margin-right: 6px;
}

/* Icon sizing in different contexts */
.metric-card i {
    font-size: 28px;
    margin-right: 0;
}

.card-header i {
    font-size: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.btn i {
    margin-right: 6px;
    font-size: 14px;
    vertical-align: middle;
    line-height: 1;
}

.nav-link i {
    margin-right: 0;
    margin-left: 0;
}

/* ========================================
   UTILITY CLASSES (for inline style replacement)
   ======================================== */

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

/* Gap Utilities */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Spacing Utilities - Margin */
.m-0 { margin: 0; }
.m-2 { margin: var(--space-2); }
.m-4 { margin: var(--space-4); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.ml-2 { margin-left: var(--space-2); }
.ml-4 { margin-left: var(--space-4); }
.mr-2 { margin-right: var(--space-2); }
.mr-4 { margin-right: var(--space-4); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Spacing Utilities - Padding */
.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pt-5 { padding-top: var(--space-5); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-5 { padding-bottom: var(--space-5); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.uppercase { text-transform: uppercase; }

/* Width/Height Utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-fit { height: fit-content; }

/* Background Utilities */
.bg-white { background: white; }
.bg-slate-50 { background: var(--slate-50); }
.bg-slate-100 { background: var(--slate-100); }
.bg-primary { background: var(--primary); }

/* Border Utilities */
.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-l { border-left: 1px solid var(--border); }
.border-r { border-right: 1px solid var(--border); }
.border-2 { border-width: 2px; }
.border-primary { border-color: var(--primary); }
.border-none { border: none; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }

/* Display Utilities */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Overflow Utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* Max-Width Utilities (for modals) */
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 600px; }
.max-w-lg { max-width: 700px; }
.max-w-xl { max-width: 800px; }
.max-w-2xl { max-width: 900px; }

/* Max-Height Utilities */
.max-h-screen-90 { max-height: 90vh; }

/* Flex Utilities (additional) */
.flex-1 { flex: 1; }

/* Alert/Warning Boxes */
.alert-warning {
    padding: var(--space-4);
    background: #fef3c7;
    border-radius: var(--radius);
    margin-bottom: var(--space-5);
    color: #92400e;
}

.alert-info {
    padding: var(--space-4);
    background: #dbeafe;
    border-radius: var(--radius);
    margin-bottom: var(--space-5);
    color: #1e40af;
}

/* Code Blocks */
.code-block {
    background: #1f2937;
    color: #f3f4f6;
    padding: var(--space-4);
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: var(--text-xs);
    font-family: 'Courier New', monospace;
}

/* Value Display Box */
.value-display {
    padding: var(--space-3);
    background: var(--slate-100);
    border-radius: var(--radius);
}

/* Label Styles */
.label {
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    display: block;
}
    width: 20px;
    text-align: center;
}

/* Ensure icons don't break layout */
i.fas, i.far, i.fab {
    vertical-align: middle;
}

/* Fix icon alignment in buttons and flex containers */
button i, .btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Prevent icons from being too tall */
i.fas, i.far, i.fab {
    line-height: 1;
}

/* Ensure modal inputs are clickable and editable */
.modal-overlay input,
.modal-overlay textarea,
.modal-overlay select,
.modal-content input,
.modal-content textarea,
.modal-content select {
    pointer-events: auto !important;
    cursor: text !important;
    user-select: text !important;
    -webkit-user-select: text !important;
}

.modal-overlay button,
.modal-content button {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Fix textarea styling */
textarea.form-control {
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

/* Landing Page */
.landing-page {
    min-height: 100vh;
    background: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, rgba(51, 65, 85, 0.05) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.05) 0, transparent 50%);
}

.landing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Landing Navigation */
.landing-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); 
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M 8 2 Q 2 2, 2 8 L 2 30 L 30 30 L 30 2 L 8 2 Z' fill='%231e293b'/%3E%3Ccircle cx='23' cy='23' r='4' fill='%23fff'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.btn-nav-login {
    background: #64748b;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(100, 116, 139, 0.15);
}

.btn-nav-login:hover {
    background: #475569;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.25);
}

/* Hero Section */
.hero-section {
    padding: 120px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(51, 65, 85, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(51, 65, 85, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 21px;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 16px 36px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-primary {
    background: white;
    color: #0f172a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    background: #f8fafc;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-cta {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta-primary {
    background: white;
    color: #0f172a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    background: #f8fafc;
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number,
.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 44px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 19px;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: white;
    border-color: #94a3b8;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(148, 163, 184, 0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.icon-blue {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
}

.icon-purple {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.icon-green {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.icon-orange {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
}

/* Value Section */
.value-section {
    padding: 100px 0;
    background: white;
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.value-content {
    display: flex;
    flex-direction: column;
}

.value-title {
    font-size: 44px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.value-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.value-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value-item i {
    color: #64748b;
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.value-item strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.value-item p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.value-visual {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    width: 100%;
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.visual-header i {
    color: #64748b;
    font-size: 24px;
}

.visual-header span {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.visual-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.metric {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}

.metric-label {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.metric-change {
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.metric-change.positive {
    color: #059669;
}

.metric-change.negative {
    color: #dc2626;
}

.visual-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.visual-placeholder i {
    font-size: 80px;
    margin-bottom: 16px;
    display: block;
}

/* Public Data Catalog Section */
.catalog-section {
    padding: 100px 0;
    background: white;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
}

.catalog-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    background: white;
    border-color: #94a3b8;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(51, 65, 85, 0.15);
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.catalog-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.catalog-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-public {
    background: rgba(5, 150, 105, 0.15);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.badge-protected {
    background: rgba(217, 119, 6, 0.15);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.catalog-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.catalog-description {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    min-height: 60px;
}

.catalog-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.catalog-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.catalog-stat i {
    color: #64748b;
    font-size: 14px;
}

.catalog-footer {
    margin-top: auto;
}

.btn-catalog {
    width: 100%;
    padding: 12px 20px;
    background: #64748b;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-catalog:hover {
    background: #475569;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.25);
}

/* Use Cases Section */
.usecases-section {
    padding: 100px 0;
    background: #f8fafc;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.usecase-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 44px;
    transition: all 0.3s;
    text-align: center;
}

.usecase-card:hover {
    background: white;
    border-color: #94a3b8;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(51, 65, 85, 0.15);
}

.usecase-card i {
    font-size: 48px;
    color: #64748b;
    margin-bottom: 24px;
    display: block;
}

.usecase-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
}

.usecase-card p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.usecase-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.usecase-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.usecase-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 20px;
}

.usecase-features {
    list-style: none;
    padding: 0;
}

.usecase-features li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.usecase-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: #f8fafc;
}

.cta-content {
    text-align: center;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border: none;
    border-radius: 24px;
    padding: 80px 48px;
    box-shadow: 0 8px 32px rgba(100, 116, 139, 0.2);
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.cta-text,
.cta-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-white {
    background: white;
    color: #0f172a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta-white:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
    background: #f8fafc;
}

.btn-cta-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Landing Footer */
.landing-footer {
    background: #0f172a;
    border-top: 1px solid #cbd5e1;
    padding: 48px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.footer-brand p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.footer-copy {
    font-size: 14px;
    color: #64748b;
}

.footer-text {
    font-size: 14px;
    color: #64748b;
}

/* Login Modal */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(12px);
    animation: fadeIn 0.2s;
}

.login-modal {
    background: white;
    border-radius: 20px;
    padding: 48px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.login-modal .modal-header {
    text-align: center;
    margin-bottom: 36px;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.modal-logo-icon {
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M 8 2 Q 2 2, 2 8 L 2 30 L 30 30 L 30 2 L 8 2 Z' fill='%231e293b'/%3E%3Ccircle cx='23' cy='23' r='4' fill='%23fff'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    box-shadow: 0 4px 12px rgba(51, 65, 85, 0.3);
}

.modal-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.login-modal .modal-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.login-modal .modal-header p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.login-modal .modal-body {
    padding: 0;
}

.modal-body-centered {
    text-align: center;
}

.login-modal .form-group {
    margin-bottom: 24px;
    text-align: left;
}

.login-modal .form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.form-hint {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-top: 6px;
}

.login-modal .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
}

.login-modal .form-control:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 4px rgba(51, 65, 85, 0.1);
}

.login-modal .form-control::placeholder {
    color: #94a3b8;
}

.btn-modal-primary {
    width: 100%;
    padding: 16px;
    background: #64748b;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    box-shadow: 0 1px 3px rgba(100, 116, 139, 0.15);
}

.btn-modal-primary:hover:not(:disabled) {
    background: #475569;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.25);
    transform: translateY(-1px);
}

.btn-modal-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-modal-secondary {
    width: 100%;
    padding: 14px;
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.modal-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 13px;
}

.modal-footer-note i {
    color: #64748b;
    font-size: 14px;
}

.login-modal small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* Email Sent Success Screen */
.email-sent-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 16px rgba(100, 116, 139, 0.2);
}

.email-sent-icon i {
    font-size: 36px;
    color: white;
}

.email-sent-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.email-sent-text {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.6;
}

.email-display {
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    padding: 16px 24px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 24px;
    word-break: break-all;
}

.email-instructions {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.email-instructions p {
    margin: 0;
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
}

.email-instructions p:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 8px;
}

.email-instructions i {
    color: #64748b;
}

.text-muted {
    font-size: 14px;
    color: #94a3b8;
}

/* Dev Mode Alert */
.dev-mode-alert {
    background: #fef3c7;
    border: 2px solid #d97706;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.dev-mode-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #92400e;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.dev-mode-header i {
    font-size: 16px;
}

.dev-mode-text {
    font-size: 14px;
    color: #92400e;
    margin-bottom: 12px;
}

.dev-mode-link {
    padding: 12px;
    background: white;
    border: 2px solid #d97706;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow-wrap: break-word;
    word-break: break-all;
}

.dev-mode-link a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
}

.dev-mode-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        gap: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .visual-metrics {
        grid-template-columns: 1fr;
    }

    .usecases-grid {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .hero-cta,
    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
    }

    .login-modal {
        padding: 32px 24px;
        max-width: 95%;
    }

    .login-modal .modal-logo {
        font-size: 24px;
    }

    .login-modal .modal-header h3 {
        font-size: 20px;
    }
}

/* ========================================
   UTILITY CLASSES - Reusable Components
   ======================================== */

/* Button Variants */
.btn-primary {
    background: var(--slate-500);
    border: none;
    color: white;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary:hover {
    background: var(--slate-600);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--gray-300);
    color: var(--slate-500);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--gray-50);
}

.btn-icon {
    background: white;
    color: var(--slate-500);
    border: 1px solid var(--gray-300);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.btn-icon:hover {
    background: var(--gray-50);
}

.btn-icon-primary {
    background: var(--slate-500);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.btn-icon-primary:hover {
    background: var(--slate-600);
}

.btn-filter {
    background: white;
    color: var(--slate-500);
    border: 1px solid var(--gray-300);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-filter:hover {
    background: var(--gray-50);
}

.btn-filter.active {
    background: var(--slate-500);
    color: white;
    border-color: var(--slate-500);
}

/* Header Layouts */
.card-header-split {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: var(--space-5) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-5);
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex: 1;
    min-width: 0;
}

.card-header-right {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex-shrink: 0;
}

.card-header-icon {
    font-size: 24px;
    color: var(--gray-500);
    flex-shrink: 0;
}

.card-header-content {
    min-width: 0;
}

.card-header-title {
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.card-header-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.stat-card {
    background: white;
    padding: var(--space-5);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-1);
}

.stat-value {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: var(--slate-500);
}

.stat-description {
    font-size: var(--text-sm);
    color: var(--slate-400);
    margin-top: var(--space-1);
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.quick-action-card {
    background: white;
    padding: var(--space-5);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.quick-action-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.quick-action-description {
    font-size: var(--text-sm);
    color: var(--slate-400);
    margin-bottom: var(--space-4);
}

.quick-action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* Table Utilities */
.table-header {
    background: var(--slate-50);
}

.table-row-hover:hover {
    background: var(--slate-50);
    cursor: pointer;
}

/* Badge Variants */
.badge-neutral {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    background: var(--slate-100);
    color: var(--slate-500);
}

.badge-slate {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--gray-500);
}

/* Separator */
.separator-vertical {
    width: 1px;
    height: 30px;
    background: var(--gray-300);
    margin: 0 var(--space-2);
}

/* Flex Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.flex-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }

/* Text Utilities */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }


/* ==================== Force Graph Network Visualization ==================== */

#forceGraphContainer {
    position: relative;
    user-select: none;
}

#forceGraphContainer canvas {
    display: block;
    cursor: grab;
}

#forceGraphContainer canvas:active {
    cursor: grabbing;
}

/* Force Graph Tooltips */
.force-graph-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Force Graph Node Highlight */
.force-graph-node-highlight {
    stroke: #3b82f6;
    stroke-width: 3px;
    fill: #60a5fa;
}

/* Force Graph Link Highlight */
.force-graph-link-highlight {
    stroke: #3b82f6;
    stroke-width: 3px;
    opacity: 0.8;
}

/* Force Graph Controls */
.force-graph-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.force-graph-control-btn {
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.force-graph-control-btn:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.force-graph-control-btn:active {
    transform: translateY(0);
}

/* Force Graph Loading Overlay */
.force-graph-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    gap: 16px;
}

.force-graph-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--slate-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Force Graph Legend */
.force-graph-legend {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.force-graph-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.force-graph-legend-item:last-child {
    margin-bottom: 0;
}

.force-graph-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}
