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

:root {
    color-scheme: dark;
    --background: #111827;
    --surface: #1f2937;
    --surface-hover: #273449;
    --border: #374151;
    --text: #f9fafb;
    --muted: #9ca3af;
    --accent: #60a5fa;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    width: min(1100px, calc(100% - 40px));
    margin: auto;
}

/* Header */

.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 25px;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

nav a:hover,
nav a.active {
    color: white;
}

.status {
    font-size: 13px;
    color: var(--muted);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 5px;
}

/* Welcome */

.welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 50px 0 35px;
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

h1 {
    font-size: clamp(30px, 5vw, 42px);
    letter-spacing: -1px;
}

.subtitle {
    color: var(--muted);
    margin-top: 8px;
}

.date-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 15px 22px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.date-card span {
    color: var(--muted);
    font-size: 12px;
}

.date-card strong {
    font-size: 17px;
}

/* Statistics */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--muted);
    font-size: 13px;
}

.stat-card strong {
    font-size: 30px;
    margin: 10px 0 3px;
}

.stat-description {
    font-size: 12px;
    color: var(--muted);
}

/* Main panel */

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 25px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.panel-header h2 {
    font-size: 20px;
}

.panel-header p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.button {
    background: var(--accent);
    border: none;
    color: #111827;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

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

/* Empty timetable */

.empty-state {
    text-align: center;
    padding: 65px 20px;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--muted);
    font-size: 13px;
    max-width: 380px;
    margin: auto;
}

/* Footer */

footer {
    padding: 30px 0;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

/* Mobile */

@media (max-width: 650px) {

    .container {
        width: calc(100% - 28px);
    }

    .header-content {
        height: auto;
        min-height: 65px;
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid var(--border);
        padding-top: 12px;
        gap: 10px;
    }

    nav a {
        font-size: 13px;
    }

    .welcome {
        margin: 30px 0 25px;
        align-items: flex-start;
    }

    .date-card {
        padding: 10px;
        min-width: 105px;
    }

    .date-card strong {
        font-size: 14px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card strong {
        font-size: 25px;
    }

    .panel {
        padding: 18px;
    }

    .panel-header {
        align-items: flex-start;
    }

    .panel-header h2 {
        font-size: 18px;
    }

    .button {
        padding: 9px 11px;
        font-size: 12px;
    }

    .empty-state {
        padding: 45px 10px;
    }
}

/* Small phones */

@media (max-width: 380px) {
    .status {
        display: none;
    }

    .welcome {
        flex-direction: column;
    }

    .date-card {
        width: 100%;
    }
}
