* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: #1f2937;
    background: #f3f4f6;
}

body {
    margin: 0;
    min-height: 100vh;
}

.topbar {
    min-height: 68px;
    background: #111827;
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 50px;
}

.brand {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-description {
    color: #9ca3af;
    font-size: 13px;
}

.navigation {
    display: flex;
    gap: 6px;
}

.navigation a {
    color: #d1d5db;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.navigation a:hover {
    color: white;
    background: #1f2937;
}

.page-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 60px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-heading h1 {
    margin: 0;
    font-size: 30px;
}

.page-heading p {
    margin: 7px 0 0;
    color: #6b7280;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.dashboard-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

a.dashboard-card:hover {
    border-color: #9ca3af;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.card-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

.card-value {
    font-size: 34px;
    font-weight: 700;
    margin: 14px 0;
}

.card-description {
    color: #6b7280;
    font-size: 13px;
    margin-top: auto;
}

.panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
}

.panel h2 {
    margin-top: 0;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #4b5563;
    font-size: 14px;
}

.status-indicator {
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
}

.footer {
    text-align: center;
    color: #9ca3af;
    padding: 20px;
    font-size: 12px;
}


/* Mobile */

@media (max-width: 800px) {

    .topbar {
        padding: 15px 20px;
        display: block;
    }

    .brand-description {
        display: none;
    }

    .navigation {
        margin-top: 12px;
        overflow-x: auto;
    }

    .navigation a {
        white-space: nowrap;
    }

    .page-container {
        width: min(100% - 28px, 1200px);
        padding-top: 25px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 500px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .page-heading h1 {
        font-size: 26px;
    }
}
