* {
    box-sizing: border-box;
}

body {

    margin: 0;

    font-family:
        Arial,
        sans-serif;

    background: #f3f4f6;

    color: #111827;
}


.container {

    max-width: 1200px;

    margin: auto;

    padding: 25px;
}


header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 30px;
}


h1 {

    margin: 0;

    font-size: 32px;
}


header p {

    color: #6b7280;
}


.login-button {

    padding: 11px 18px;

    border-radius: 8px;

    background: #2563eb;

    color: white;

    text-decoration: none;

    font-weight: bold;
}


.status-panel {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 30px;
}


.status-card {

    background: white;

    padding: 20px;

    border-radius: 12px;

    box-shadow:
        0 3px 10px
        rgba(0,0,0,.06);
}


.status-card span {

    display: block;

    color: #6b7280;

    margin-bottom: 8px;
}


.cards {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 30px;
}


.card {

    background: white;

    border-radius: 15px;

    padding: 25px;

    text-align: center;

    box-shadow:
        0 3px 10px
        rgba(0,0,0,.06);
}


.card span {

    color: #6b7280;
}


.card strong {

    display: block;

    font-size: 42px;

    margin: 10px 0;
}


.card small {

    color: #6b7280;
}


.chart-container {

    background: white;

    padding: 25px;

    border-radius: 15px;
}


@media(max-width:700px) {

    header {

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }


    .status-panel {

        grid-template-columns:
            repeat(2,1fr);
    }


    .cards {

        grid-template-columns: 1fr;
    }

}
.auth-container {

    width: min(
        420px,
        calc(100% - 30px)
    );

    margin: 70px auto;

    background: white;

    padding: 30px;

    border-radius: 15px;

    box-shadow:
        0 4px 20px
        rgba(0,0,0,.08);
}


.auth-container input {

    width: 100%;

    padding: 13px;

    margin: 8px 0;

    border: 1px solid #d1d5db;

    border-radius: 8px;
}


.auth-container button {

    width: 100%;

    padding: 13px;

    margin-top: 10px;

    background: #2563eb;

    color: white;

    border: 0;

    border-radius: 8px;

    font-weight: bold;

    cursor: pointer;
}

/* ================================
   NAVIGATION
================================ */

.nav-buttons {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}


.nav-button {

    padding: 11px 18px;

    border-radius: 8px;

    background: white;

    color: #111827;

    text-decoration: none;

    font-weight: bold;

    border: 1px solid #d1d5db;
}


.nav-button:hover {

    background: #f3f4f6;
}


/* ================================
   GRAPH PAGE
================================ */

.graph-controls {

    display: flex;

    gap: 10px;

    margin-bottom: 25px;

    flex-wrap: wrap;
}


.graph-controls button {

    padding: 11px 20px;

    border: 1px solid #d1d5db;

    background: white;

    border-radius: 8px;

    cursor: pointer;

    font-weight: bold;
}


.graph-controls button.active-tab {

    background: #2563eb;

    color: white;

    border-color: #2563eb;
}


.graph-controls select {

    padding: 10px;

    border-radius: 8px;

    border: 1px solid #d1d5db;

    background: white;
}


.graph-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}


.graph-card {

    background: white;

    border-radius: 15px;

    padding: 20px;

    box-shadow:
        0 3px 10px
        rgba(0,0,0,.06);

    min-height: 380px;
}


.graph-card h2 {

    margin-top: 0;
}


.graph-card canvas {

    width: 100% !important;

    height: 300px !important;
}


/* ================================
   MESSAGES
================================ */

.message-box {

    background: white;

    padding: 20px;

    border-radius: 12px;

    margin-bottom: 20px;

    border: 1px solid #e5e7eb;
}


/* ================================
   DOWNLOAD
================================ */

.download-card {

    background: white;

    padding: 25px;

    border-radius: 15px;

    box-shadow:
        0 3px 10px
        rgba(0,0,0,.06);

    margin-bottom: 25px;
}


.date-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;

    margin-top: 20px;
}


.date-grid label {

    display: block;

    font-weight: bold;

    margin-bottom: 7px;
}


.date-grid input {

    width: 100%;

    padding: 12px;

    border: 1px solid #d1d5db;

    border-radius: 8px;
}


.available-info {

    margin-top: 20px;

    padding: 12px;

    background: #f3f4f6;

    border-radius: 8px;
}


.download-buttons {

    display: flex;

    gap: 12px;

    margin-top: 25px;

    flex-wrap: wrap;
}


.download-button {

    padding: 13px 22px;

    border: 0;

    border-radius: 8px;

    background: #2563eb;

    color: white;

    font-weight: bold;

    cursor: pointer;
}


.download-button:hover {

    background: #1d4ed8;
}


.download-button:disabled {

    opacity: .5;

    cursor: not-allowed;
}


.available-dates {

    background: white;

    padding: 25px;

    border-radius: 15px;

    box-shadow:
        0 3px 10px
        rgba(0,0,0,.06);
}


.date-list {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    max-height: 350px;

    overflow-y: auto;
}


.available-date {

    display: flex;

    flex-direction: column;

    gap: 3px;

    padding: 10px 13px;

    border-radius: 8px;

    border: 1px solid #d1d5db;

    background: white;

    cursor: pointer;
}


.available-date:hover {

    background: #f3f4f6;

    border-color: #2563eb;
}


.available-date small {

    color: #6b7280;
}


/* ================================
   MOBILE
================================ */

@media(max-width:700px) {

    .nav-buttons {

        width: 100%;
    }


    .nav-button,
    .login-button {

        text-align: center;

        flex: 1;
    }


    .graph-grid {

        grid-template-columns: 1fr;
    }


    .date-grid {

        grid-template-columns: 1fr;
    }


    .graph-card {

        min-height: 350px;
    }

}