
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --background: #f5f7fb;
    --sidebar: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e8edf5;
    --success: #16a34a;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background: var(--background);
    color: var(--text);
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: 255px;
    min-width: 255px;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    margin-bottom: 45px;
}

.brand-icon {
    width: 43px;
    height: 43px;
    background: #eaf1ff;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.brand h5 {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
}

.brand small {
    color: var(--muted);
    font-size: 10px;
}

.menu-title {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 0 12px;
    margin-bottom: 15px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.2s;
}

.menu-item i {
    font-size: 17px;
}

.menu-item:hover,
.menu-item.active {
    background: #edf3ff;
    color: var(--primary);
}

.sidebar-footer {
    margin-top: auto;
    padding: 15px 10px;
    border-top: 1px solid var(--border);
    font-size: 10px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 9px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px #dcfce7;
}

/* MAIN CONTENT */

.main-content {
    margin-left: 255px;
    width: calc(100% - 255px);
    min-width: 0;
}

.topbar {
    background: white;
    min-height: 85px;
    padding: 17px 35px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.topbar p {
    font-size: 11px;
    color: var(--muted);
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.system-status {
    font-size: 10px;
    color: var(--success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
}

.user-avatar {
    width: 37px;
    height: 37px;
    background: #eaf1ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.content-section {
    padding: 30px 35px;
    max-width: 1600px;
    margin: auto;
}

/* WELCOME */

.welcome-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.welcome-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 7px;
}

.welcome-section p {
    color: var(--muted);
    font-size: 11px;
    margin: 0;
}

.date-label {
    font-size: 11px;
    color: #475569;
    background: white;
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
}

/* STAT CARDS */

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 19px;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    transition: 0.2s;
}

.stat-card:hover,
.station-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex-shrink: 0;
}

.stat-icon.blue {
    color: #2563eb;
    background: #eff6ff;
}

.stat-icon.green {
    color: #16a34a;
    background: #f0fdf4;
}

.stat-icon.orange {
    color: #ea580c;
    background: #fff7ed;
}

.stat-icon.purple {
    color: #9333ea;
    background: #faf5ff;
}

.stat-card p {
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 5px;
}

.stat-card h3 {
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 3px;
}

.stat-card small {
    font-size: 9px;
    color: #94a3b8;
}

/* SECTION HEADINGS */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 16px;
}

.section-heading h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.section-heading p {
    font-size: 10px;
    color: var(--muted);
    margin: 0;
}

/* STATIONS */

.station-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 20px;
    height: 100%;
    transition: 0.2s;
}

.station-icon {
    width: 39px;
    height: 39px;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.station-card h6 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 7px;
}

.station-card p {
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 12px;
}

.station-status {
    background: #f0fdf4;
    color: #15803d;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 9px;
    font-weight: 600;
}

/* CHART */

.chart-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 22px;
}

.chart-header h6 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
}

.chart-header small {
    color: var(--muted);
    font-size: 10px;
}

.chart-container {
    height: 300px;
    margin-top: 20px;
    position: relative;
}

/* PREDICTION */

.prediction-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 25px;
}

.prediction-card label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 9px;
}

.prediction-card .form-select,
.prediction-card .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 11px;
    padding: 11px;
}

.prediction-card .form-control:focus,
.prediction-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #dbeafe;
}

.prediction-card textarea {
    resize: vertical;
}

.prediction-card .btn-primary {
    background: var(--primary);
    border: none;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.prediction-card .btn-primary:hover {
    background: var(--primary-dark);
}

.prediction-result {
    margin-top: 25px;
    padding: 25px;
    text-align: center;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
}

.prediction-result p {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 10px;
}

.prediction-result h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0;
}

.prediction-result > span {
    font-size: 11px;
    color: var(--muted);
}

#predictionInfo {
    font-size: 10px;
    color: #475569;
    margin-top: 15px;
}

/* MODEL TABLE */

.model-table {
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 10px 20px;
}

.model-table table {
    margin: 0;
}

.model-table thead th {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    background: #f8fafc;
    padding: 14px;
}

.model-table tbody td {
    font-size: 11px;
    padding: 15px 14px;
}

.best-model {
    background: #eff6ff;
    font-weight: 700;
}

.best-label {
    font-size: 8px;
    color: #15803d;
    background: #dcfce7;
    padding: 4px 7px;
    border-radius: 5px;
    margin-left: 5px;
}

/* FOOTER */

.footer {
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding: 22px 0;
    text-align: center;
}

.footer p {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 5px;
}

.footer small {
    font-size: 9px;
    color: var(--muted);
}

/* RESPONSIVE */

@media (max-width: 992px) {
    .sidebar {
        width: 210px;
        min-width: 210px;
    }

    .main-content {
        margin-left: 210px;
        width: calc(100% - 210px);
    }

    .content-section {
        padding: 25px 20px;
    }

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

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        min-width: 0;
        height: auto;
        padding: 15px;
    }

    .app-container {
        display: block;
    }

    .brand {
        margin-bottom: 20px;
    }

    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .menu-item {
        padding: 10px;
        font-size: 10px;
    }

    .menu-title,
    .sidebar-footer {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .topbar {
        align-items: flex-start;
    }

    .topbar h4 {
        font-size: 13px;
    }

    .system-status {
        display: none;
    }

    .content-section {
        padding: 20px 15px;
    }

    .welcome-section {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .welcome-section h3 {
        font-size: 17px;
    }

    .chart-container {
        height: 250px;
    }
}
