        /* --- MevaSearch CSS Variables --- */
        @font-face {
            font-family: 'Space Grotesk';
            src: url('/font/Space-Grotesk.ttf') format('truetype');
            font-weight: 100 900;
            font-style: normal;
            font-display: swap;
        }

        :root {
            --background: 245 247 250; 
            --foreground: 20 23 30; 
            --card: 255 255 255; 
            --primary: 14 165 233; /* Niebieski */
            --border: 222 226 230;
            --ring: 14 165 233;
            --radius: 1.25rem; /* Large Rounding: 20px */
            --search: 255 255 255;
        }

        /* Applying font and colors */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif !important;
        }

        html, body {
            width: 100%;
            height: 100%;
        }

        body {
            background-color: rgb(var(--background));
            color: rgb(var(--foreground));
            font-size: 16px;
            line-height: 1.5;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        header {
            position: sticky;
            top: 0;
            z-index: 100;
            background-color: rgb(var(--background));
            border-bottom: 1px solid rgb(var(--border));
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 16px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo {
            width: 32px;
            height: 32px;
            background-color: rgb(var(--primary));
            border-radius: 10px; 
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: 700;
            font-size: 16px;
            flex-shrink: 0;
        }

        .company-name {
            font-weight: 700;
            font-size: 18px;
            color: rgb(var(--foreground));
        }

        .status-type {
            font-size: 12px;
            color: #888;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 20px;
            font-size: 13px;
            color: #666;
        }

        main {
            max-width: 1200px;
            margin: 0 auto;
            padding: 60px 40px;
        }

        /* --- Hero Section --- */
        .hero {
            margin-bottom: 60px;
            padding: 40px 0;
        }

        .hero h1 {
            font-size: 52px;
            font-weight: 800;
            color: rgb(var(--foreground));
            margin-bottom: 16px;
            line-height: 1.1;
        }

        .hero p {
            font-size: 18px;
            color: #666;
            margin-bottom: 30px;
            max-width: 700px;
        }

        .hero-meta {
            display: flex;
            align-items: center;
            gap: 40px;
            padding: 24px 0;
            border-top: 1px solid rgb(var(--border));
            border-bottom: 1px solid rgb(var(--border));
        }

        .meta-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .meta-label {
            font-size: 13px;
            color: #999;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            font-weight: 600;
        }

        .meta-value {
            font-size: 18px;
            color: rgb(var(--foreground));
            font-weight: 700;
        }

        /* --- Status Section --- */
        .status-section {
            margin-bottom: 60px;
        }

        .section-title {
            font-size: 24px;
            font-weight: 700;
            color: rgb(var(--foreground));
            margin-bottom: 32px;
            padding-bottom: 16px;
            border-bottom: 1px solid rgb(var(--border));
        }

        .services-grid {
            display: grid;
            gap: 32px;
        }

        .service {
            display: grid;
            grid-template-columns: 1fr 1fr; /* Ustawienie 50/50 dla większego wykresu */
            gap: 40px;
            padding: 32px;
            border: 1px solid rgb(var(--border));
            border-radius: var(--radius); /* Large Rounding applied */
            background-color: rgb(var(--card));
            transition: box-shadow 0.2s ease, border-color 0.2s ease;
        }

        /* POPRAWKA: Niebieskie podświetlenie po najechaniu (hover) */
        .service:hover {
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            border-color: rgb(var(--primary)); /* Ustawia obramowanie na główny niebieski */
        }

        .service-info h3 {
            font-size: 20px;
            font-weight: 700;
            color: rgb(var(--foreground));
            margin-bottom: 24px;
        }

        .service-stats {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .stat-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 12px;
            border-bottom: 1px solid rgb(var(--border));
        }

        .stat-label {
            font-size: 14px;
            color: #666;
        }

        .stat-value {
            font-size: 15px;
            font-weight: 700;
            color: rgb(var(--foreground));
        }

        /* --- Status Badges --- */
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 9999px;
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .badge-operational {
            background: rgba(16, 185, 129, 0.1);
            color: #059669;
        }

        .badge-degraded {
            background: rgba(245, 158, 11, 0.1);
            color: #d97706;
        }

        .badge-outage {
            background: rgba(239, 68, 68, 0.1);
            color: #dc2626;
        }

        /* --- Uptime Display --- */
        .uptime-display {
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .uptime-percentage {
            font-size: 60px;
            font-weight: 800;
            color: rgb(var(--primary));
            line-height: 1;
            margin-bottom: 12px;
        }

        .uptime-label {
            font-size: 13px;
            color: #999;
            margin-top: 8px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            font-weight: 600;
        }

        .chart-container {
            position: relative;
            height: 250px; /* Increased height */
            margin-top: 20px;
        }

        .status-dot {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            margin-right: 8px;
        }

        .dot-up { background: #10b981; }
        .dot-degraded { background: #f59e0b; }
        .dot-down { background: #ef4444; }

        /* --- Footer --- */
        footer {
            max-width: 1200px;
            margin: 0 auto;
            padding: 30px 40px;
            border-top: 1px solid rgb(var(--border));
            font-size: 13px;
            color: #999;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .footer-left {
            display: flex;
            gap: 20px;
        }

        /* --- Chart.js overrides in style --- */
        .chart-container canvas {
            max-width: 100%;
            max-height: 100%;
        }

        /* --- Mobile responsive --- */
        @media (max-width: 768px) {
            .header-content { padding: 12px 24px; }
            .header-right { display: none; }
            main { padding: 30px 24px; }
            .hero h1 { font-size: 40px; }
            .hero p { font-size: 16px; }
            .hero-meta { flex-direction: column; gap: 16px; padding: 16px 0; }
            .meta-item { flex-direction: row; justify-content: space-between; width: 100%; }
            .section-title { font-size: 20px; }
            .service { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
            .uptime-percentage { font-size: 48px; }
            .uptime-display { 
                flex-direction: row; 
                justify-content: space-around; 
                align-items: center; 
                border-top: 1px solid rgb(var(--border)); 
                padding-top: 24px; 
                margin-top: 24px;
            }
            .uptime-display > div { flex-shrink: 0; }
            .chart-container { order: -1; height: 150px; width: 100%; margin: 0; } 
            footer { flex-direction: column; text-align: center; gap: 12px; padding: 20px 24px; }
            .footer-left { flex-direction: column; gap: 8px; }
        }

        @media (max-width: 480px) {
            .logo { width: 28px; height: 28px; font-size: 14px; }
            .company-name { font-size: 16px; }
            .status-type { font-size: 11px; }
            main { padding: 20px 16px; }
            .hero h1 { font-size: 32px; }
            .hero p { font-size: 14px; }
            .section-title { font-size: 18px; }
            .service { padding: 16px; }
            .uptime-percentage { font-size: 36px; }
            .uptime-display { flex-direction: column; align-items: center; gap: 12px; padding-top: 16px; margin-top: 16px; }
            .uptime-display > div { margin-top: 0; }
            .chart-container { height: 120px; } 
            .stat-value { font-size: 14px; }
            .status-badge { font-size: 12px; padding: 6px 12px; }
            footer { font-size: 12px; }
        }