/* ============================================
   LOVABLE-INSPIRED LIGHT THEME
   Modern, Clean, Beautiful Design System
   ============================================ */

/* ==================== DESIGN TOKENS ==================== */
:root {
    /* Background colors - Modern layered */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #fafbfc;
    --bg-sidebar: rgba(255, 255, 255, 0.85);
    --bg-input: #ffffff;
    --bg-gradient-start: #f0f4ff;
    --bg-gradient-end: #faf5ff;
    
    /* Border colors */
    --border-primary: rgba(0, 0, 0, 0.06);
    --border-secondary: rgba(0, 0, 0, 0.04);
    --border-focus: #667eea;
    
    /* Text colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    
    /* Primary Accent - Lovable Purple/Blue */
    --accent-primary: #667eea;
    --accent-primary-dark: #5a67d8;
    --accent-primary-light: #a5b4fc;
    --accent-primary-bg: rgba(102, 126, 234, 0.08);
    
    /* Accent Colors */
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-teal: #14b8a6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #F2994A 0%, #F2C94C 100%);
    --gradient-danger: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-purple: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    
    /* Status colors */
    --status-up: #10b981;
    --status-down: #ef4444;
    --status-warning: #f59e0b;
    --status-paused: #94a3b8;
    
    /* Chart colors */
    --chart-line: #667eea;
    --chart-fill: rgba(102, 126, 234, 0.1);
    
    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    
    /* Shadows - Modern layered */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 28px -8px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
    
    /* Glow Effects */
    --glow-primary: 0 0 24px rgba(102, 126, 234, 0.25);
    --glow-success: 0 0 24px rgba(16, 185, 129, 0.25);
    --glow-danger: 0 0 24px rgba(239, 68, 68, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Border radius */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;
    
    /* Spacing */
    --sidebar-width: 260px;
}

/* ==================== BASE STYLES ==================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(102, 126, 234, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(236, 72, 153, 0.05), transparent);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== SIDEBAR LAYOUT ==================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-primary);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-secondary);
    display: flex;
    align-items: center;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Modern Logo */
.sidebar-logo-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.sidebar-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.sidebar-logo-text {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.sidebar-logo-easy {
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-accent {
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    margin: 0.125rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    position: relative;
}

.nav-item:hover {
    color: var(--accent-primary);
    background: var(--accent-primary-bg);
}

.nav-item.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.nav-item i {
    width: 20px;
    font-size: 1rem;
    opacity: 0.85;
    text-align: center;
}

.nav-item.active i {
    opacity: 1;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-secondary);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar-user:hover {
    background: var(--bg-tertiary);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main content area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    min-width: 0;
}

/* ==================== TOP HEADER BAR ==================== */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 2rem;
    border-bottom: 1px solid var(--border-secondary);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.breadcrumb-item {
    color: var(--text-secondary);
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 0.625rem;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ==================== STATS CARDS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover {
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stat-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stat-dot.blue { background: var(--accent-blue); }
.stat-dot.green { background: var(--accent-green); }
.stat-dot.red { background: var(--accent-red); }
.stat-dot.purple { background: var(--accent-purple); }

.stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}

.stat-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.stat-card:hover .stat-arrow {
    transform: translateX(2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.stat-value-small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.stat-change.positive { color: var(--accent-green); }
.stat-change.negative { color: var(--accent-red); }
.stat-change.neutral { color: var(--text-secondary); }

.stat-subtitle {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

/* ==================== BOLD COLORED STAT CARDS ==================== */
.stat-card-colored {
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 100px;
}

.stat-card-colored:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

.stat-card-colored::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.stat-card-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.stat-card-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.stat-card-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}

.stat-card-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.stat-card-purple {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.stat-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    z-index: 1;
}

.stat-card-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.stat-card-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.stat-card-sub {
    font-size: 0.6875rem;
    opacity: 0.75;
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== DASHBOARD GRID LAYOUT ==================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
}

.dashboard-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-secondary);
}

.dashboard-panel-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-panel-title i {
    color: var(--accent-primary);
    font-size: 0.875rem;
}

.dashboard-panel-badge {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Status Distribution Chart */
.status-chart-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.status-chart-wrapper {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    position: relative;
}

.status-chart-canvas {
    width: 100% !important;
    height: 100% !important;
}

.status-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.legend-dot.up { background: var(--status-up); }
.legend-dot.down { background: var(--status-down); }
.legend-dot.paused { background: var(--status-paused); }

.legend-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    flex: 1;
}

.legend-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* Uptime by Type Bars */
.type-bar-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.type-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.type-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.type-bar-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.type-bar-label i {
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
}

.type-bar-value {
    font-size: 0.8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.type-bar-track {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.type-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.type-bar-fill.blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.type-bar-fill.purple { background: linear-gradient(90deg, #a855f7, #c084fc); }
.type-bar-fill.orange { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.type-bar-fill.green { background: linear-gradient(90deg, #10b981, #34d399); }

/* Recent Activity Panel */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-secondary);
    transition: background var(--transition-fast);
}

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

.activity-item:hover {
    background: var(--bg-tertiary);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: var(--radius-sm);
}

.activity-dot {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.activity-dot.up {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.activity-dot.down {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-description {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.125rem;
}

.activity-time {
    font-size: 0.6875rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Sidebar Search Box */
.sidebar-search {
    padding: 0 1rem 0.75rem;
}

.sidebar-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-fast);
}

.sidebar-search-input::placeholder {
    color: var(--text-muted);
}

.sidebar-search-input:focus {
    border-color: var(--accent-primary);
    background: var(--bg-input);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sidebar-search-wrapper {
    position: relative;
}

.sidebar-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.75rem;
    pointer-events: none;
}

/* Quick Stats Mini */
.sidebar-stats {
    padding: 0 1rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.sidebar-stat-mini {
    flex: 1;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    text-align: center;
}

.sidebar-stat-mini .mini-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.sidebar-stat-mini .mini-label {
    font-size: 0.5625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-stat-mini.up .mini-value { color: var(--accent-green); }
.sidebar-stat-mini.down .mini-value { color: var(--accent-red); }

/* Responsive dashboard grid */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stat-card-colored {
        min-height: auto;
        padding: 1rem;
    }

    .stat-card-number {
        font-size: 1.25rem;
    }

    .stat-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ==================== CHARTS & PANELS ==================== */
.section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
}

.chart-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chart-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ==================== LEADERBOARD / LISTS ==================== */
.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.leaderboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
}

.leaderboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.leaderboard-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.leaderboard-period {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.leaderboard-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.leaderboard-rank {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.leaderboard-rank.gold { 
    background: linear-gradient(135deg, #fbbf24, #f59e0b); 
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.leaderboard-rank.silver { 
    background: linear-gradient(135deg, #94a3b8, #64748b); 
    color: white; 
}
.leaderboard-rank.bronze { 
    background: linear-gradient(135deg, #f97316, #ea580c); 
    color: white; 
}

.leaderboard-info {
    flex: 1;
    min-width: 0;
}

.leaderboard-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.leaderboard-badge {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
}

.leaderboard-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.leaderboard-unit {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
}

/* ==================== MONITOR LIST ==================== */
.monitor-list-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.monitor-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-secondary);
    background: var(--bg-tertiary);
}

.monitor-list-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.monitor-list-count {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: var(--bg-card);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
}

.monitor-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--bg-card);
    position: relative;
}

.monitor-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-success);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.monitor-row:last-child {
    border-bottom: none;
}

.monitor-row:hover {
    background: var(--bg-card-hover);
}

.monitor-row:hover::before {
    opacity: 1;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.status-indicator.up { 
    background: var(--status-up); 
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.status-indicator.down { 
    background: var(--status-down); 
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
    animation: pulse-down 2s infinite;
}

.status-indicator.paused { 
    background: var(--status-paused); 
}

@keyframes pulse-down {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

.monitor-info {
    flex: 1;
    min-width: 0;
}

.monitor-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.type-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.type-badge.web { 
    background: rgba(59, 130, 246, 0.1); 
    color: var(--accent-blue); 
}
.type-badge.heartbeat { 
    background: rgba(168, 85, 247, 0.1); 
    color: var(--accent-purple); 
}
.type-badge.tcp { 
    background: rgba(245, 158, 11, 0.1); 
    color: var(--accent-orange); 
}
.type-badge.ping { 
    background: rgba(16, 185, 129, 0.1); 
    color: var(--accent-green); 
}

.monitor-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.monitor-url {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 350px;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
}

/* Monitor Metrics */
.monitor-metric {
    text-align: right;
    min-width: 80px;
}

.metric-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.metric-value.good { color: var(--accent-green); }
.metric-value.warn { color: var(--accent-orange); }
.metric-value.bad { color: var(--accent-red); }

.metric-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.125rem;
}

.status-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 75px;
    text-align: center;
}

.status-badge.up { 
    background: rgba(16, 185, 129, 0.1); 
    color: #059669; 
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-badge.down { 
    background: rgba(239, 68, 68, 0.1); 
    color: #dc2626; 
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.status-badge.paused { 
    background: rgba(148, 163, 184, 0.1); 
    color: #64748b; 
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.edit-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    color: var(--text-tertiary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.edit-btn:hover {
    background: var(--accent-primary-bg);
    color: var(--accent-primary);
    transform: scale(1.05);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary-bg);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-secondary:focus, .btn-secondary:active {
    background: var(--accent-primary-bg);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.btn-outline-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-focus);
}

/* Button color variants */
.btn-blue, .btn-primary {
    background: var(--gradient-blue);
    border: none;
}

.btn-green, .btn-success {
    background: var(--gradient-success);
    border: none;
}

.btn-red, .btn-danger {
    background: var(--gradient-danger);
    border: none;
}

.btn-purple {
    background: var(--gradient-purple);
    border: none;
}

.btn-teal {
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
    border: none;
}

.btn-pink {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    border: none;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ==================== DROPDOWN ==================== */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 180px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--accent-primary-bg);
    color: var(--accent-primary);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    opacity: 0.7;
}

.dropdown-divider {
    border-color: var(--border-primary);
    margin: 0.375rem 0;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 2px dashed var(--border-primary);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.03) 0%, transparent 50%);
}

.empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: var(--glow-primary);
    position: relative;
    z-index: 1;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    position: relative;
    z-index: 1;
}

.empty-state p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Empty state color variants */
.empty-icon.blue { background: var(--gradient-blue); box-shadow: var(--glow-primary); }
.empty-icon.pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.empty-icon.purple { background: var(--gradient-purple); }
.empty-icon.teal { background: linear-gradient(135deg, #14b8a6, #06b6d4); }

.empty-state-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem auto;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full, 9999px);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    transition: all var(--transition-fast);
}

.feature-chip:hover {
    background: var(--accent-primary-bg);
    border-color: rgba(102, 126, 234, 0.2);
    color: var(--accent-primary);
}

.feature-chip:hover i {
    color: var(--accent-primary);
}

.feature-chip i {
    color: var(--accent-blue);
    font-size: 0.625rem;
    width: 14px;
    text-align: center;
}

.feature-chip span {
    line-height: 1;
}

/* ==================== LANDING PAGE (NO SIDEBAR) ==================== */
.landing-page {
    min-height: 100vh;
    background: var(--bg-primary);
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-secondary);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.landing-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: var(--glow-primary);
}

.landing-logo-text {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.footer-logo-svg {
    color: var(--accent-primary);
}

.footer-logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.landing-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.landing-nav-link:hover {
    color: var(--accent-primary);
}

.landing-hero {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.landing-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.landing-hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0 0 2rem;
    line-height: 1.7;
}

.landing-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.landing-features {
    padding: 4rem 2rem;
    background: var(--bg-tertiary);
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-xs);
}

.feature-card:hover {
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.feature-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.feature-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.feature-icon.purple { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); }
.feature-icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--accent-orange); }

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.feature-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ==================== LOGIN PAGE ==================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(102, 126, 234, 0.1), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(236, 72, 153, 0.08), transparent);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--glow-primary);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

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

@media (max-width: 1024px) {
    .chart-grid,
    .leaderboard-grid {
        grid-template-columns: 1fr;
    }
    
    .landing-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .monitor-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .monitor-metric {
        min-width: 60px;
    }
    
    .landing-hero h1 {
        font-size: 2.25rem;
    }
    
    .landing-features-grid {
        grid-template-columns: 1fr;
    }
    
    .landing-cta {
        flex-direction: column;
    }
    
    .top-header {
        padding: 0.75rem 1rem;
    }
}

/* ==================== CREATE MONITOR PAGE ==================== */
.create-monitor-page {
    max-width: 800px;
    margin: 0 auto;
}

.create-header {
    margin-bottom: 2rem;
}

.create-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    transition: color var(--transition-fast);
}

.create-back-link:hover {
    color: var(--accent-primary);
}

.create-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.375rem;
    letter-spacing: -0.02em;
}

.create-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
}

.create-section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.create-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-secondary);
    background: var(--bg-tertiary);
}

.create-section-number {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.create-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.create-section-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0.125rem 0 0;
}

.create-section-body {
    padding: 1.5rem;
}

/* Monitor type grid */
.monitor-type-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.625rem;
    padding: 1.25rem 1.5rem;
}

.monitor-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.125rem 0.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.monitor-type-option:hover {
    border-color: rgba(102, 126, 234, 0.3);
    background: var(--accent-primary-bg);
}

.monitor-type-option.selected {
    border-color: var(--accent-primary);
    background: var(--accent-primary-bg);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.monitor-type-radio {
    display: none;
}

.monitor-type-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.monitor-type-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.monitor-type-icon.purple { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); }
.monitor-type-icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--accent-orange); }
.monitor-type-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.monitor-type-icon.red { background: rgba(239, 68, 68, 0.1); color: var(--accent-red); }

.monitor-type-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.monitor-type-desc {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
}

/* Toggle rows for notifications */
.create-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
}

.create-toggle-row:not(:last-child) {
    border-bottom: 1px solid var(--border-secondary);
}

.create-toggle-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.create-toggle-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.create-toggle-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.create-toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.create-toggle-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

/* Submit area */
.create-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
}

@media (max-width: 768px) {
    .monitor-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .create-submit {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    .create-submit .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .monitor-type-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-secondary);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-logo i {
    color: var(--accent-primary);
}

/* ==================== BOOTSTRAP OVERRIDES ==================== */
.card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-xs) !important;
}

.card-header {
    background-color: var(--bg-tertiary) !important;
    border-bottom-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
}

.card-body {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

.card-footer {
    background-color: var(--bg-tertiary) !important;
    border-top-color: var(--border-primary) !important;
    color: var(--text-secondary) !important;
}

.card-text {
    color: var(--text-secondary) !important;
}

.card-title {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

/* Table */
.table {
    color: var(--text-primary) !important;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: var(--bg-tertiary);
    --bs-table-hover-bg: var(--bg-card-hover);
}

.table-hover tbody tr:hover {
    background-color: var(--bg-card-hover) !important;
    color: var(--text-primary) !important;
}

.table thead th {
    border-bottom-color: var(--border-primary) !important;
    color: var(--text-tertiary) !important;
    background-color: var(--bg-tertiary) !important;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table td, .table th {
    border-color: var(--border-primary) !important;
    padding: 0.875rem 1rem;
}

/* Modal */
.modal-content {
    background-color: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
    border-radius: var(--radius-xl) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-xl) !important;
}

.modal-header {
    border-bottom-color: var(--border-primary) !important;
    background: var(--bg-tertiary) !important;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
}

.modal-footer {
    border-top-color: var(--border-primary) !important;
    background: var(--bg-tertiary) !important;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl) !important;
}

.modal-title {
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Form elements */
.form-control, .form-select {
    background-color: var(--bg-input) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-lg) !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--border-focus) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    background-color: var(--bg-input) !important;
    color: var(--text-primary) !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

.form-label {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.form-text {
    color: var(--text-secondary) !important;
}

/* Alerts */
.alert {
    border-radius: var(--radius-lg) !important;
    border: none !important;
    padding: 1rem 1.25rem !important;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #d97706 !important;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #2563eb !important;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.375em 0.65em;
    border-radius: var(--radius-full);
}

.badge.bg-primary { background: var(--gradient-primary) !important; }
.badge.bg-success { background: var(--gradient-success) !important; }
.badge.bg-danger { background: var(--gradient-danger) !important; }
.badge.bg-warning { background: var(--gradient-warning) !important; color: #000 !important; }
.badge.bg-info { background: var(--gradient-blue) !important; }
.badge.bg-secondary { background: var(--bg-tertiary) !important; color: var(--text-secondary) !important; }

/* Text utilities */
.text-primary { color: var(--accent-primary) !important; }
.text-success { color: var(--accent-green) !important; }
.text-danger { color: var(--accent-red) !important; }
.text-warning { color: var(--accent-orange) !important; }
.text-muted { color: var(--text-muted) !important; }

/* Background utilities */
.bg-light { background-color: var(--bg-tertiary) !important; }
.bg-white { background-color: var(--bg-card) !important; }

/* Border */
.border { border-color: var(--border-primary) !important; }

/* HR */
hr {
    border-color: var(--border-primary);
    opacity: 1;
}

/* List group */
.list-group-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
}

.list-group-item:hover {
    background-color: var(--bg-card-hover) !important;
}

/* Pagination */
.page-link {
    background-color: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-secondary) !important;
    border-radius: var(--radius-lg) !important;
    margin: 0 0.125rem;
}

.page-link:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--accent-primary) !important;
}

.page-item.active .page-link {
    background: var(--gradient-primary) !important;
    border-color: transparent !important;
}

.page-item.disabled .page-link {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-muted) !important;
}

/* Code */
pre.bg-light, pre {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

code {
    background-color: var(--bg-tertiary);
    color: var(--accent-purple);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-xs);
    font-size: 0.875em;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* Nav tabs */
.nav-tabs {
    border-bottom-color: var(--border-primary);
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border-color: transparent;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.nav-tabs .nav-link:hover {
    border-color: var(--border-primary);
    color: var(--text-primary);
}

.nav-tabs .nav-link.active {
    background: var(--bg-card) !important;
    border-color: var(--border-primary) var(--border-primary) var(--bg-card) !important;
    color: var(--text-primary);
    font-weight: 600;
}

/* Progress bar */
.progress {
    background: var(--bg-tertiary) !important;
    border-radius: var(--radius-full);
    height: 8px;
}

/* Accordion */
.accordion-item {
    background: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.accordion-button {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-card-hover) !important;
    color: var(--accent-primary) !important;
}

.accordion-body {
    background: var(--bg-card) !important;
    color: var(--text-secondary);
}

/* Form check */
.form-check-input {
    background-color: var(--bg-input);
    border-color: var(--border-primary);
    border-radius: var(--radius-xs);
}

.form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.form-check-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Input group */
.input-group-text {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-secondary) !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-primary);
    font-weight: 700;
}

/* Links */
a {
    color: var(--accent-primary);
    text-decoration: none;
}

a:hover {
    color: var(--accent-primary-dark);
}

/* Spinner */
.spinner-border, .spinner-grow {
    color: var(--accent-primary);
}

/* ==================== FAVICON STYLES ==================== */
.monitor-favicon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favicon-img {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-xs);
    object-fit: contain;
    background: var(--bg-tertiary);
}

.favicon-fallback {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.details-favicon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-favicon .favicon-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
}

.details-favicon .favicon-fallback {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    font-size: 1.25rem;
}

/* ==================== CONTENT WRAPPER ==================== */
.content-wrapper {
    padding: 1.5rem 2rem;
    max-width: 1400px;
    flex: 1;
}
