/* EasyUptime Light Theme */
:root {
    /* Background colors - Light */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-input: #ffffff;
    
    /* Border colors */
    --border-primary: #e2e8f0;
    --border-secondary: #f1f5f9;
    --border-focus: #3b82f6;
    
    /* Text colors - Dark for light theme */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    
    /* Accent colors */
    --accent-blue: #3b82f6;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-teal: #14b8a6;
    
    /* Status colors */
    --status-up: #22c55e;
    --status-down: #ef4444;
    --status-warning: #f59e0b;
    --status-paused: #94a3b8;
    
    /* Chart colors */
    --chart-line: #3b82f6;
    --chart-fill: rgba(59, 130, 246, 0.1);
    
    /* Shadows - lighter for light theme */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Spacing */
    --sidebar-width: 240px;
}

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    background: var(--bg-primary) !important;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ==================== SIDEBAR LAYOUT ==================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    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: var(--shadow-sm);
}

.sidebar-header {
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    padding: 0.5rem 1.25rem;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    border-left: 2px solid transparent;
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-item.active {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
    border-left-color: var(--accent-blue);
    font-weight: 500;
}

.nav-item i {
    width: 18px;
    font-size: 0.9375rem;
    opacity: 0.8;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-primary);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-user:hover {
    background: var(--bg-tertiary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.8125rem;
    font-weight: 500;
    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);
}

.content-wrapper {
    padding: 1.5rem 2rem;
    max-width: 1400px;
}

/* ==================== TOP HEADER BAR ==================== */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-secondary);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-blue);
}

.breadcrumb-item {
    color: var(--text-secondary);
}

.breadcrumb-separator {
    color: var(--text-tertiary);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.period-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 0.25rem;
}

.period-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.375rem 0.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.period-btn:hover {
    color: var(--text-primary);
}

.period-current {
    background: var(--accent-blue);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ==================== STATS CARDS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.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.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.stat-arrow {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-value-small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.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.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.stat-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==================== CHARTS & PANELS ==================== */
.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    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-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.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-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.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.75rem;
    color: var(--text-secondary);
}

.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-md);
    transition: var(--transition-fast);
}

.leaderboard-item:hover {
    background: var(--bg-card-hover);
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.leaderboard-rank.gold { background: linear-gradient(135deg, #ffd700, #ffb300); color: #000; }
.leaderboard-rank.silver { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #000; }
.leaderboard-rank.bronze { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }

.leaderboard-info {
    flex: 1;
    min-width: 0;
}

.leaderboard-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.leaderboard-badge {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.leaderboard-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.leaderboard-unit {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ==================== MONITOR LIST ==================== */
.monitor-list-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 1.5rem;
}

.monitor-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
}

.monitor-list-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.monitor-list-count {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.monitor-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    background: var(--bg-card);
}

.monitor-row:last-child {
    border-bottom: none;
}

.monitor-row:hover {
    background: var(--bg-tertiary);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.up { 
    background: var(--status-up); 
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}
.status-indicator.down { 
    background: var(--status-down); 
    box-shadow: 0 0 8px 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; }
    50% { opacity: 0.5; }
}

.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.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.type-badge.web { background: rgba(59, 130, 246, 0.12); color: var(--accent-blue); }
.type-badge.heartbeat { background: rgba(139, 92, 246, 0.12); color: var(--accent-purple); }
.type-badge.tcp { background: rgba(245, 158, 11, 0.12); color: var(--accent-orange); }
.type-badge.ping { background: rgba(34, 197, 94, 0.12); color: var(--accent-green); }

.monitor-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.monitor-url {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 350px;
}

/* Monitor Metrics */
.monitor-metric {
    text-align: right;
    min-width: 70px;
}

.metric-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.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.6875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 70px;
    text-align: center;
}

.status-badge.up { background: rgba(34, 197, 94, 0.12); color: var(--accent-green); }
.status-badge.down { background: rgba(239, 68, 68, 0.12); color: var(--accent-red); }
.status-badge.paused { background: rgba(148, 163, 184, 0.15); color: var(--text-secondary); }

.edit-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.edit-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-tertiary);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    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-md);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ==================== DROPDOWN ==================== */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.375rem;
    min-width: 160px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
}

/* ==================== 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-primary);
    background: var(--bg-secondary);
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.landing-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.landing-logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.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;
    transition: var(--transition-fast);
}

.landing-nav-link:hover {
    color: var(--text-primary);
}

.landing-hero {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.landing-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.5rem;
    line-height: 1.2;
}

.landing-hero h1 span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -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.6;
}

.landing-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.landing-features {
    padding: 4rem 2rem;
    background: var(--bg-secondary);
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.feature-icon.blue { background: rgba(59, 130, 246, 0.12); color: var(--accent-blue); }
.feature-icon.green { background: rgba(34, 197, 94, 0.12); color: var(--accent-green); }
.feature-icon.purple { background: rgba(139, 92, 246, 0.12); color: var(--accent-purple); }
.feature-icon.orange { background: rgba(245, 158, 11, 0.12); 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.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ==================== LOGIN PAGE ==================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-primary);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    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-blue);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .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;
    }
    
    .landing-hero h1 {
        font-size: 2rem;
    }
    
    .landing-features-grid {
        grid-template-columns: 1fr;
    }
    
    .landing-cta {
        flex-direction: column;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-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-primary);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.footer-logo i {
    color: var(--accent-green);
}

/* ==================== BOOTSTRAP CARD OVERRIDES ==================== */
.card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.card-header {
    background-color: var(--bg-tertiary) !important;
    border-bottom-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
}

.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-primary) !important;
}

.card-text {
    color: var(--text-secondary) !important;
}

.card-title {
    color: var(--text-primary) !important;
}

/* ==================== BOOTSTRAP TABLE OVERRIDES ==================== */
.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-tertiary) !important;
    color: var(--text-primary) !important;
}

.table thead th {
    border-bottom-color: var(--border-primary) !important;
    color: var(--text-secondary) !important;
    background-color: var(--bg-tertiary) !important;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td, .table th {
    border-color: var(--border-primary) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--bg-tertiary) !important;
}

.table-light,
thead.table-light {
    --bs-table-bg: var(--bg-tertiary) !important;
}

.table-light > th,
thead.table-light > tr > th {
    background: var(--bg-tertiary) !important;
    color: var(--text-secondary) !important;
}

/* ==================== BOOTSTRAP MODAL OVERRIDES ==================== */
.modal-content {
    background-color: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
}

.modal-header {
    border-bottom-color: var(--border-primary) !important;
    background: var(--bg-tertiary) !important;
}

.modal-footer {
    border-top-color: var(--border-primary) !important;
    background: var(--bg-tertiary) !important;
}

.modal-title {
    color: var(--text-primary) !important;
}

/* ==================== BOOTSTRAP DROPDOWN OVERRIDES ==================== */
.dropdown-menu {
    background-color: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

.dropdown-divider {
    border-color: var(--border-primary) !important;
}

/* ==================== BOOTSTRAP FORM OVERRIDES ==================== */
.form-control, .form-select {
    background-color: var(--bg-input) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--border-focus) !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15) !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;
}

.form-text {
    color: var(--text-secondary) !important;
}

/* ==================== BOOTSTRAP ALERT OVERRIDES ==================== */
.alert {
    border-radius: var(--radius-md);
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.12) !important;
    border-color: var(--accent-green) !important;
    color: #166534 !important;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.12) !important;
    border-color: var(--accent-red) !important;
    color: #991b1b !important;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.12) !important;
    border-color: var(--accent-orange) !important;
    color: #92400e !important;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.12) !important;
    border-color: var(--accent-blue) !important;
    color: #1e40af !important;
}

/* ==================== MISC BOOTSTRAP OVERRIDES ==================== */
.text-muted {
    color: var(--text-secondary) !important;
}

.border {
    border-color: var(--border-primary) !important;
}

.bg-light {
    background-color: var(--bg-tertiary) !important;
}

.bg-white {
    background-color: var(--bg-card) !important;
}

hr {
    border-color: var(--border-primary);
    opacity: 1;
}

/* Fix for list groups */
.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-tertiary) !important;
}

/* Pagination */
.page-link {
    background-color: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-primary) !important;
}

.page-link:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--accent-blue) !important;
}

.page-item.active .page-link {
    background-color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
    color: white !important;
}

.page-item.disabled .page-link {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-muted) !important;
}

/* Fix for pre/code blocks */
pre.bg-light, pre {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-primary);
}

code {
    background-color: var(--bg-tertiary);
    color: var(--accent-purple);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* ==================== BADGE OVERRIDES ==================== */
.badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
}

.badge.bg-primary {
    background: var(--accent-blue) !important;
    color: white !important;
}

.badge.bg-success {
    background: var(--accent-green) !important;
    color: white !important;
}

.badge.bg-danger {
    background: var(--accent-red) !important;
    color: white !important;
}

.badge.bg-warning {
    background: var(--accent-orange) !important;
    color: white !important;
}

.badge.bg-info {
    background: var(--accent-teal) !important;
    color: white !important;
}

.badge.bg-secondary {
    background: var(--bg-tertiary) !important;
    color: var(--text-secondary) !important;
}

.badge.bg-light {
    background: var(--bg-tertiary) !important;
    color: var(--text-secondary) !important;
}

/* ==================== TEXT UTILITIES ==================== */
.text-primary {
    color: var(--accent-blue) !important;
}

.text-success {
    color: var(--accent-green) !important;
}

.text-danger {
    color: var(--accent-red) !important;
}

.text-warning {
    color: var(--accent-orange) !important;
}

.text-info {
    color: var(--accent-teal) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* ==================== BUTTON VARIANTS ==================== */
.btn-success {
    background: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
    color: white !important;
}

.btn-danger {
    background: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    color: white !important;
}

.btn-warning {
    background: var(--accent-orange) !important;
    border-color: var(--accent-orange) !important;
    color: white !important;
}

.btn-info {
    background: var(--accent-teal) !important;
    border-color: var(--accent-teal) !important;
    color: white !important;
}

.btn-outline-primary {
    color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--accent-blue) !important;
    color: white !important;
}

.btn-outline-secondary {
    color: var(--text-secondary) !important;
    border-color: var(--border-primary) !important;
    background: transparent !important;
}

.btn-outline-secondary:hover {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

.btn-outline-success {
    color: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
    background: transparent !important;
}

.btn-outline-success:hover {
    background: var(--accent-green) !important;
    color: white !important;
}

.btn-outline-danger {
    color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    background: transparent !important;
}

.btn-outline-danger:hover {
    background: var(--accent-red) !important;
    color: white !important;
}

/* ==================== FORM CHECK (CHECKBOX/RADIO) ==================== */
.form-check-input {
    background-color: var(--bg-input);
    border-color: var(--border-primary);
}

.form-check-input:checked {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.form-check-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-check-label {
    color: var(--text-primary);
}

/* ==================== INPUT GROUP ==================== */
.input-group-text {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-primary) !important;
    color: var(--text-secondary) !important;
}

/* ==================== NAV TABS ==================== */
.nav-tabs {
    border-bottom-color: var(--border-primary);
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border-color: transparent;
}

.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);
}

/* ==================== PROGRESS BAR ==================== */
.progress {
    background: var(--bg-tertiary) !important;
    border-radius: var(--radius-sm);
    height: 8px;
}

/* ==================== ACCORDION ==================== */
.accordion-item {
    background: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
}

.accordion-button {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-card-hover) !important;
    color: var(--accent-blue) !important;
}

.accordion-body {
    background: var(--bg-card) !important;
    color: var(--text-secondary);
}

/* ==================== HEADINGS ==================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-primary);
}

/* ==================== LINKS ==================== */
a {
    color: var(--accent-blue);
}

a:hover {
    color: #2563eb;
}

/* ==================== SPINNER ==================== */
.spinner-border,
.spinner-grow {
    color: var(--accent-blue);
}

/* ==================== FAVICON STYLES ==================== */
.monitor-favicon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favicon-img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    background: var(--bg-tertiary);
}

.favicon-fallback {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.details-favicon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-favicon .favicon-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.details-favicon .favicon-fallback {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 1.25rem;
}
