/* === Polaris Status Page Styles === */
/* Professional design matching the marketing site aesthetic */

/* === CSS Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

html {
    scroll-behavior: smooth;
    background: #0f172a !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-feature-settings: 'cv11', 'ss01';
    font-variation-settings: 'opsz' 32;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
    min-height: 100vh !important;
    color: #ffffff !important;
    overflow-x: hidden;
}

/* Ensure all containers inherit the dark theme */
*, *::before, *::after {
    color: inherit;
}

/* === CSS Custom Properties === */
:root {
    /* Colors matching marketing site */
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;

    /* Status Colors */
    --color-healthy: #10b981;
    --color-degraded: #f59e0b;
    --color-unhealthy: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary-600), #6366f1);
    --gradient-background: linear-gradient(135deg, #0f172a 0%, #374151 50%, #0f172a 100%);
    --gradient-text: linear-gradient(135deg, #ffffff, #bfdbfe);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Glass morphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-backdrop: blur(16px);
    
    /* Timing */
    --transition-fast: 150ms ease-out;
    --transition-normal: 300ms ease-out;
    --transition-slow: 500ms ease-out;
}

/* === Utility Classes === */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === Layout & Structure === */
.min-h-screen { min-height: 100vh !important; }
.relative { position: relative; }
.overflow-x-hidden { overflow-x: hidden; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }

/* === Z-Index === */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* === Spacing === */
.pt-16 { padding-top: 4rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-8 { padding-top: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-6 { margin-top: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.p-6 { padding: 1.5rem; }

/* === Spacing Between Elements === */
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* === Flexbox === */
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.inline-flex { display: inline-flex; }

/* === Grid === */
.grid { display: grid; }
.gap-6 { gap: 1.5rem; }

/* === Text Alignment === */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* === Colors === */
.text-white { color: #ffffff !important; }
.text-gray-300 { color: #d1d5db !important; }
.text-gray-400 { color: #9ca3af !important; }
.text-red-400 { color: #f87171 !important; }

/* === Typography === */
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* === Width & Max Width === */
.max-w-6xl { max-width: 72rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }

/* === Background Colors === */
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05) !important; }
.bg-slate-800\/50 { background-color: rgba(30, 41, 59, 0.5) !important; }
.bg-slate-900\/80 { background-color: rgba(15, 23, 42, 0.8) !important; }

/* === Backdrop Blur === */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }

/* === Border Radius === */
.rounded-2xl { border-radius: 1rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* === Borders === */
.border { border-width: 1px; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1) !important; }

/* === Background Gradients === */
.bg-clip-text { 
    background-clip: text; 
    -webkit-background-clip: text;
    background: linear-gradient(to right, #ffffff, #bfdbfe) !important;
}
.text-transparent { 
    color: transparent !important; 
}
.bg-gradient-to-r { 
    background: linear-gradient(to right, #ffffff, #bfdbfe) !important;
}

/* === Fix System Status Title === */
#system-status-title {
    background: linear-gradient(to right, #ffffff, #bfdbfe) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    text-shadow: none !important;
    font-size: 3.75rem !important; /* lg:text-6xl */
    line-height: 1 !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
}

/* Responsive title sizing */
@media (max-width: 1024px) {
    #system-status-title {
        font-size: 3rem !important; /* md:text-5xl */
    }
}

@media (max-width: 768px) {
    #system-status-title {
        font-size: 2.25rem !important; /* text-4xl */
        line-height: 2.5rem !important;
    }
}

/* Hero section spacing and layout */
[data-testid="status-title-section"] {
    margin-bottom: 2rem !important;
    text-align: center !important;
}

[data-testid="system-status-description"] {
    font-size: 1.5rem !important; /* text-2xl */
    line-height: 2rem !important;
    color: #d1d5db !important;
    margin-bottom: 2rem !important;
    max-width: 48rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 768px) {
    [data-testid="system-status-description"] {
        font-size: 1.25rem !important; /* text-xl */
        line-height: 1.75rem !important;
    }
}

/* Status header overall spacing */
[data-testid="status-header"] {
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
    text-align: center !important;
}

/* Overall status badge styling */
[data-testid="overall-status-badge"] {
    margin-top: 2rem !important;
    margin-bottom: 1.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem 2rem !important;
    border-radius: 2rem !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Last updated section */
[data-testid="last-updated-section"] {
    margin-top: 1.5rem !important;
    font-size: 0.875rem !important;
    color: #9ca3af !important;
}

/* Fallback for browsers that don't support background-clip */
@supports not (background-clip: text) {
    #system-status-title {
        color: #ffffff !important;
        background: none !important;
    }
}

/* === Hero Section Fixes === */
section h1 {
    background: transparent !important;
}

/* === Make sure no elements have white backgrounds === */
.space-y-8 > *,
.space-y-4 > * {
    background: transparent !important;
}

/* === Height === */
.min-h-\[40vh\] { min-height: 40vh; }

/* === Responsive Grid === */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-left { text-align: left; }
    .md\:flex { display: flex; }
    .hidden.md\:flex { display: flex; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .lg\:block { display: block; }
    .lg\:hidden { display: none; }
}

/* === Floating Background Elements === */
.floating-bg-element {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background-color: var(--color);
    opacity: 0.4;
    border-radius: 50%;
    filter: blur(60px);
    left: var(--x);
    top: var(--y);
    animation: float var(--duration) ease-in-out infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    25% {
        transform: translate3d(100px, -50px, 0) scale(1.1);
    }
    50% {
        transform: translate3d(-50px, 100px, 0) scale(0.9);
    }
    75% {
        transform: translate3d(-100px, -25px, 0) scale(1.05);
    }
}

/* === Animated Polaris Logo === */
.polaris-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.polaris-logo-container {
    position: relative;
    width: 6.5rem !important;
    height: 6.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
}

/* Outer rotating kaleidoscope ring */
.polaris-logo-ring {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(
        from 0deg,
        #3b82f6,  /* Blue - North Star */
        #a855f7,  /* Purple - Goals & KPIs */
        #22c55e,  /* Green - Target Audiences */
        #f97316,  /* Orange - Objectives & KRs */
        #ef4444,  /* Red - Capabilities */
        #06b6d4,  /* Cyan - Initiatives */
        #6366f1,  /* Indigo - Learnings */
        #10b981,  /* Emerald - Summary */
        #3b82f6   /* Back to Blue */
    ) !important;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6)) drop-shadow(0 0 24px rgba(168, 85, 247, 0.4));
    animation: polaris-rotate 20s linear infinite;
    z-index: 3;
}

.polaris-logo-ring::after {
    content: '';
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    background: rgba(15, 23, 42, 0.9) !important;
    border-radius: 50%;
    backdrop-filter: blur(6px);
    z-index: 1;
}

/* Secondary outer glow ring */
.polaris-logo-glow {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    opacity: 0.6;
    background: conic-gradient(
        from 45deg,
        transparent,
        rgba(59, 130, 246, 0.25),
        transparent,
        rgba(239, 116, 22, 0.25),
        transparent
    ) !important;
    filter: blur(4px);
    animation: polaris-rotate-reverse 30s linear infinite;
    z-index: 2;
}

/* Inner cycling background */
.polaris-logo-inner {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(6.5rem - 16px);
    height: calc(6.5rem - 16px);
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(135deg, #3b82f6, #1e40af) !important;
    animation: polaris-color-cycle 10s ease-in-out infinite;
    z-index: 4;
}

/* Enhanced pulsing glow effect */
.polaris-logo-pulse {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.8),
        rgba(168, 85, 247, 0.4) 50%,
        transparent 80%
    ) !important;
    filter: blur(20px);
    animation: polaris-pulse 4s ease-in-out infinite;
    z-index: 1;
}

/* Logo star icon - Fixed centering */
.polaris-logo-star {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)) !important;
}

/* Navigation specific logo star */
nav .polaris-logo-star {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    z-index: 10 !important;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)) !important;
}

/* Sparkle effects */
.polaris-logo-sparkle {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(6.5rem - 24px);
    height: calc(6.5rem - 24px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 100%
    ) !important;
    animation: polaris-sparkle 15s linear infinite;
    z-index: 5;
}

/* Animations */
@keyframes polaris-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes polaris-rotate-reverse {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes polaris-color-cycle {
    0% { background: linear-gradient(135deg, #3b82f6, #1e40af) !important; }
    14% { background: linear-gradient(135deg, #a855f7, #7c3aed) !important; }
    28% { background: linear-gradient(135deg, #22c55e, #16a34a) !important; }
    42% { background: linear-gradient(135deg, #f97316, #ea580c) !important; }
    56% { background: linear-gradient(135deg, #ef4444, #dc2626) !important; }
    70% { background: linear-gradient(135deg, #06b6d4, #0891b2) !important; }
    84% { background: linear-gradient(135deg, #6366f1, #4f46e5) !important; }
    100% { background: linear-gradient(135deg, #3b82f6, #1e40af) !important; }
}

@keyframes polaris-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@keyframes polaris-sparkle {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* === Status Indicators === */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.status-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

.status-dot.healthy {
    background-color: var(--color-healthy);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.status-dot.healthy::before {
    background-color: var(--color-healthy);
}

.status-dot.degraded {
    background-color: var(--color-degraded);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.status-dot.degraded::before {
    background-color: var(--color-degraded);
}

.status-dot.unhealthy {
    background-color: var(--color-unhealthy);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.status-dot.unhealthy::before {
    background-color: var(--color-unhealthy);
}

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

/* === Cards & Containers === */
.status-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    transition: all 300ms ease-out;
    color: #ffffff !important;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.service-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    transition: all 300ms ease-out;
    position: relative;
    overflow: hidden;
    color: #ffffff !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    opacity: 0;
    transition: opacity 300ms ease-out;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2) !important;
}

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

.service-card.healthy::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.service-card.degraded::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.service-card.unhealthy::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.uptime-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    transition: all 300ms ease-out;
    position: relative;
    overflow: hidden;
    color: #ffffff !important;
}

.uptime-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    opacity: 0;
    transition: opacity 300ms ease-out;
}

.uptime-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: calc(1rem - 1px);
    z-index: 1;
}

.uptime-card > * {
    position: relative;
    z-index: 2;
}

.uptime-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

.uptime-card:hover::before {
    opacity: 0.8;
}

/* === Navigation === */
nav {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
}

nav * {
    background: transparent !important;
}

/* Navigation logo section styling */
[data-testid="polaris-logo-section"] {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-shrink: 0 !important;
}

/* Ensure proper logo container sizing in navigation */
nav .polaris-logo-container {
    width: 4rem !important;
    height: 4rem !important;
}

/* Scale down all logo elements for navigation */
nav .polaris-logo-ring,
nav .polaris-logo-glow,
nav .polaris-logo-pulse {
    width: 4rem !important;
    height: 4rem !important;
}

nav .polaris-logo-inner {
    width: calc(4rem - 16px) !important;
    height: calc(4rem - 16px) !important;
}

nav .polaris-logo-sparkle {
    width: calc(4rem - 24px) !important;
    height: calc(4rem - 24px) !important;
}

/* Mobile menu styling */
#mobile-menu {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 0.375rem;
}

/* Fix navigation title styling */
[data-testid="polaris-status-title"] {
    background: linear-gradient(to right, #ffffff, #bfdbfe) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    font-size: 1.5rem !important;
    line-height: 2rem !important;
    font-weight: 700 !important;
}

/* Ensure logo animations are always visible */
.polaris-logo-container * {
    animation-play-state: running !important;
    display: block !important;
}

.polaris-logo-container .polaris-logo-ring,
.polaris-logo-container .polaris-logo-glow,
.polaris-logo-container .polaris-logo-inner,
.polaris-logo-container .polaris-logo-pulse,
.polaris-logo-container .polaris-logo-sparkle {
    opacity: 1 !important;
    visibility: visible !important;
}

/* === Sections === */
section {
    background: transparent !important;
}

main {
    background: transparent !important;
}

footer {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* === Text Colors === */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

p {
    color: inherit !important;
}

/* === Links === */
a {
    color: #60a5fa !important;
    text-decoration: none;
    transition: color 300ms ease-out;
}

a:hover {
    color: #93c5fd !important;
}

/* === Buttons === */
button {
    background: linear-gradient(135deg, #2563eb, #6366f1) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 300ms ease-out;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #5b21b6) !important;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* === Form Elements === */
input, textarea, select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: #ffffff !important;
    backdrop-filter: blur(16px);
}

input::placeholder, textarea::placeholder {
    color: #9ca3af !important;
}

/* === Loading States === */
.col-span-full {
    grid-column: 1 / -1;
}

/* === Status Badges === */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(16px);
    border: 1px solid;
    transition: all 300ms ease-out;
    color: #ffffff !important;
}

/* === Overall Status Badge === */
#overall-status-badge {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

#overall-status-badge * {
    color: #ffffff !important;
}

.status-badge.healthy {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #34d399 !important;
}

.status-badge.degraded {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #fbbf24 !important;
}

.status-badge.unhealthy {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #f87171 !important;
}

/* === History Chart === */
.history-bar {
    flex: 1;
    min-width: 2px;
    height: 2rem;
    border-radius: 0.125rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.history-bar.healthy {
    background: var(--color-healthy);
}

.history-bar.degraded {
    background: var(--color-degraded);
}

.history-bar.unhealthy {
    background: var(--color-unhealthy);
}

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

/* === Tooltips === */
.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    z-index: 50;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.history-bar:hover .tooltip {
    opacity: 1;
}

/* === Loading States === */
.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loading-dots::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .floating-bg-element {
        opacity: 0.2;
        filter: blur(40px);
    }
    
    .service-card,
    .uptime-card,
    .status-card {
        padding: 1rem;
    }
    
    #services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #uptime-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .history-bar {
        min-width: 3px;
    }
}

@media (max-width: 480px) {
    #uptime-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .history-bar {
        min-width: 4px;
    }
}

/* === Animation Performance === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-bg-element {
        animation: none;
    }
}

/* === Accessibility === */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.1);
        --glass-border: rgba(255, 255, 255, 0.3);
    }
    
    .status-dot {
        border: 2px solid white;
    }
}

/* === Print Styles === */
@media print {
    .floating-bg-element,
    #refresh-button,
    nav {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .status-card,
    .service-card,
    .uptime-card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* === Focus States === */
button:focus,
a:focus {
    outline: 2px solid var(--color-primary-500);
    outline-offset: 2px;
}

/* === High Performance GPU Acceleration === */
.status-card,
.service-card,
.uptime-card,
.floating-bg-element {
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
} 