:root {
    --bg: #0F172A;
    --card: #151B30CC;
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --accent: #0ABAB5;
    --ok: #3fb950;
    --fail: #FF5C5C;
    --blur: 10px;
}

@font-face {
    font-family: 'Patefon';
    src: url('/static/fonts/Patefon-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Patefon';
    src: url('/static/fonts/Patefon-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Patefon';
    src: url('/static/fonts/Patefon-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Patefon';
    src: url('/static/fonts/Patefon-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Patefon';
    src: url('/static/fonts/Patefon-Bold Italic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

body {
    font-family: 'Patefon', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.main-header {
    padding: 20px 40px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 40px 20px;
}

/* Карточка сервиса */
.card {
    width: auto; 
    min-width: 0;
    background: var(--card);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-name {
    font-weight: 600;
    color: var(--accent);
    font-size: 1rem;
}

.service-url {
    font-size: 0.75rem;
    color: #8b949e;
    margin-bottom: 15px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.uptime-display {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.label {
    font-size: 0.75rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.status-ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status-fail { background: var(--fail); box-shadow: 0 0 8px var(--fail); }
.text-ok { color: var(--ok); }
.text-fail { color: var(--fail); }

.main-footer {
    margin-top: auto;
    padding: 20px 0;
    font-size: 0.8rem;
    opacity: 0.5;
    text-align: center;
}
