/* ========================================
   NetchX Hosting - Liquid Glass Blue Theme
   ======================================== */

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

:root {
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-hover: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-bright: rgba(255, 255, 255, 0.20);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --glass-blur: 20px;
    --glass-blur-heavy: 40px;

    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;

    --green: #10b981;
    --green-glow: rgba(16, 185, 129, 0.4);
    --yellow: #f59e0b;
    --yellow-glow: rgba(245, 158, 11, 0.4);
    --orange: #f97316;
    --orange-glow: rgba(249, 115, 22, 0.4);
    --red: #ef4444;
    --red-glow: rgba(239, 68, 68, 0.4);
    --purple: #6366f1;

    --text-primary: #f0f6ff;
    --text-secondary: rgba(191, 219, 254, 0.8);
    --text-muted: rgba(147, 197, 253, 0.5);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-full: 9999px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #020617 0%, #0a1628 25%, #0f1d35 50%, #0a1628 75%, #020617 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated background orbs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    animation: floatOrb 20s ease-in-out infinite;
}
body::before {
    width: 600px;
    height: 600px;
    background: var(--blue-500);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}
body::after {
    width: 500px;
    height: 500px;
    background: var(--blue-700);
    bottom: -150px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(30px, 40px) scale(1.03); }
}

/* Third decorative orb via wrapper */
.bg-orb {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
    z-index: -1;
    background: var(--blue-400);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatOrb 25s ease-in-out infinite reverse;
}

/* ========================================
   Glass Card Component
   ======================================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    pointer-events: none;
}

.glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-bright);
    box-shadow: var(--glass-shadow-lg);
    transform: translateY(-2px);
}

.glass-static {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.glass-static::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    pointer-events: none;
}

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Header / Navbar (netchx.net style)
   ======================================== */
.netchx-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 15, 30, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0;
}

.netchx-navbar-inner {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 0;
}

.netchx-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: 32px;
    flex-shrink: 0;
}

.netchx-brand img {
    height: 30px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

.netchx-brand-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.netchx-brand-text sup {
    font-size: 0.55em;
    color: var(--text-muted);
    font-weight: 500;
    vertical-align: super;
}

.netchx-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.netchx-nav-link {
    color: rgba(180, 200, 230, 0.7);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.netchx-nav-link:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
}

.netchx-nav-link.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.1);
}

.netchx-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.netchx-nav-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(180, 200, 230, 0.8);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s;
    white-space: nowrap;
}

.netchx-nav-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
}

.netchx-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

@media (max-width: 768px) {
    .netchx-navbar-inner {
        flex-wrap: wrap;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .netchx-mobile-toggle {
        display: block;
    }
    .netchx-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 12px 0 4px;
        gap: 2px;
    }
    .netchx-nav-links.open {
        display: flex;
    }
    .netchx-nav-link {
        width: 100%;
        padding: 10px 16px;
    }
    .netchx-nav-actions {
        display: none;
    }
}

/* Legacy (keep for admin) */
.header {
    padding: 24px 0;
    position: relative;
    z-index: 10;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-area img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--blue-200), var(--blue-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-badge {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* (public-nav replaced by netchx-navbar) */

/* ========================================
   Overall Status Banner
   ======================================== */
.status-banner {
    padding: 28px 32px;
    margin-bottom: 32px;
    text-align: center;
}

.status-banner.operational {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.03));
    border-color: rgba(16, 185, 129, 0.2);
}
.status-banner.degraded {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.03));
    border-color: rgba(245, 158, 11, 0.2);
}
.status-banner.partial_outage {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.03));
    border-color: rgba(249, 115, 22, 0.2);
}
.status-banner.major_outage {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.03));
    border-color: rgba(239, 68, 68, 0.2);
}

.status-banner h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.status-banner .status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    vertical-align: middle;
}

.status-dot.operational { background: var(--green); box-shadow: 0 0 12px var(--green-glow); }
.status-dot.degraded { background: var(--yellow); box-shadow: 0 0 12px var(--yellow-glow); }
.status-dot.partial_outage { background: var(--orange); box-shadow: 0 0 12px var(--orange-glow); }
.status-dot.major_outage { background: var(--red); box-shadow: 0 0 12px var(--red-glow); }

.status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.3;
    animation: pulse-ring 2s ease-out infinite;
}
.status-dot.operational::after { border-color: var(--green); }
.status-dot.degraded::after { border-color: var(--yellow); }
.status-dot.partial_outage::after { border-color: var(--orange); }
.status-dot.major_outage::after { border-color: var(--red); }

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.8); opacity: 0; }
}

.status-banner .status-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ========================================
   Category Section
   ======================================== */
.category-section {
    margin-bottom: 24px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    margin-bottom: 2px;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none;
}

.category-name {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.category-status {
    font-size: 0.78rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========================================
   Monitor Row
   ======================================== */
.monitor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: background 0.2s;
}

.monitor-item:hover {
    background: rgba(255,255,255,0.05);
}

.monitor-item:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
}

.monitor-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.monitor-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.monitor-status-dot.operational { background: var(--green); box-shadow: 0 0 8px var(--green-glow); }
.monitor-status-dot.degraded { background: var(--yellow); box-shadow: 0 0 8px var(--yellow-glow); }
.monitor-status-dot.partial_outage { background: var(--orange); box-shadow: 0 0 8px var(--orange-glow); }
.monitor-status-dot.major_outage { background: var(--red); box-shadow: 0 0 8px var(--red-glow); }

.monitor-name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.monitor-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.monitor-uptime {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ========================================
   Uptime Bars (90-day)
   ======================================== */
.uptime-bars {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 28px;
}

.uptime-bar {
    width: 3px;
    border-radius: 2px;
    min-height: 8px;
    height: 28px;
    transition: all 0.2s;
    position: relative;
}

.uptime-bar:hover {
    transform: scaleY(1.2);
    filter: brightness(1.3);
}

.uptime-bar.operational { background: var(--green); }
.uptime-bar.degraded { background: var(--yellow); }
.uptime-bar.partial { background: var(--orange); }
.uptime-bar.major { background: var(--red); }
.uptime-bar.empty { background: rgba(255,255,255,0.08); }

.uptime-bar-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    margin-bottom: 4px;
    z-index: 100;
    pointer-events: none;
}

.uptime-bar:hover .uptime-bar-tooltip {
    display: block;
}

/* ========================================
   Monitor Detail Expansion
   ======================================== */
.monitor-detail {
    display: none;
    padding: 20px 24px;
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.04);
}

.monitor-detail.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.response-chart-container {
    height: 180px;
    margin-top: 12px;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.detail-stat {
    background: rgba(255,255,255,0.04);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.06);
}

.detail-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   Incidents
   ======================================== */
.incidents-section {
    margin-top: 40px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.incident-card {
    padding: 20px 24px;
    margin-bottom: 12px;
}

.incident-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.incident-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.incident-severity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: capitalize;
}

.severity-investigating { background: rgba(239, 68, 68, 0.15); color: var(--red); }
.severity-identified { background: rgba(249, 115, 22, 0.15); color: var(--orange); }
.severity-monitoring { background: rgba(59, 130, 246, 0.15); color: var(--blue-400); }
.severity-resolved { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.severity-maintenance { background: rgba(99, 102, 241, 0.15); color: var(--purple); }

.incident-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.incident-updates {
    border-left: 2px solid rgba(255,255,255,0.08);
    padding-left: 16px;
    margin-top: 12px;
}

.incident-update {
    margin-bottom: 12px;
    position: relative;
}

.incident-update::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-500);
    border: 2px solid var(--blue-800);
}

.incident-update-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.incident-update-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.incident-update-severity {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

/* ========================================
   Scheduled Maintenance
   ======================================== */
.maintenance-card {
    padding: 18px 24px;
    margin-bottom: 12px;
    border-left: 3px solid var(--purple);
}

.maintenance-time {
    font-size: 0.78rem;
    color: var(--purple);
    font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    text-align: center;
    padding: 40px 0 30px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-text {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-text a {
    color: var(--blue-400);
    text-decoration: none;
}

.footer-powered {
    font-size: 0.7rem;
    color: rgba(147, 197, 253, 0.3);
    margin-top: 8px;
}

/* ========================================
   No Data State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .header-inner { flex-direction: column; gap: 12px; }
    .status-banner { padding: 20px; }
    .status-banner h1 { font-size: 1.2rem; }
    .monitor-item { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
    .monitor-right { width: 100%; justify-content: space-between; }
    .uptime-bars { overflow-x: auto; }
    .detail-stats { grid-template-columns: repeat(2, 1fr); }
    .category-header { padding: 14px 16px; }
}

/* ========================================
   Admin Styles
   ======================================== */
.admin-body {
    background: linear-gradient(135deg, #020617 0%, #0a1628 40%, #0f1d35 100%);
}

.admin-header {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 32px;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    transition: all 0.2s;
}

.admin-nav a:hover, .admin-nav a.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-300);
}

.admin-nav .nav-brand {
    font-weight: 700;
    color: var(--blue-300);
    margin-right: 16px;
    font-size: 0.95rem;
}

.admin-nav .nav-right {
    margin-left: auto;
}

.admin-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

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

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2393c5fd' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-select option {
    background: #1e293b;
    color: #f0f6ff;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.data-table td {
    padding: 14px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.badge-operational { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.badge-degraded { background: rgba(245, 158, 11, 0.15); color: var(--yellow); }
.badge-partial_outage { background: rgba(249, 115, 22, 0.15); color: var(--orange); }
.badge-major_outage { background: rgba(239, 68, 68, 0.15); color: var(--red); }

/* Login Page */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.login-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.login-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Inline form row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   Roadmap Page
   ======================================== */
.roadmap-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.roadmap-column-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.roadmap-column-title .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.roadmap-card {
    padding: 16px 20px;
    margin-bottom: 10px;
}

.roadmap-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.roadmap-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.roadmap-card-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.roadmap-category-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(59, 130, 246, 0.12);
    color: var(--blue-300);
}

/* ========================================
   Changelog Page
   ======================================== */
.changelog-entry {
    padding: 20px 24px;
    margin-bottom: 12px;
    position: relative;
}

.changelog-version {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.changelog-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.changelog-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.changelog-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.changelog-type {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ========================================
   Incident History Page
   ======================================== */
.incident-month-header {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.incident-month-header:first-child {
    margin-top: 0;
}

.no-incidents-day {
    padding: 14px 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Page header */
.page-header {
    margin-bottom: 28px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.page-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Filter tabs */
.filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-tab {
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.filter-tab:hover, .filter-tab.active {
    color: var(--blue-200);
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}
