/* =====================================================
   GENERAL
===================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}


/* =====================================================
   HEADER
===================================================== */

.ssc-header {

    height: 125px;

    background: linear-gradient(
        135deg,
        #0057a8,
        #006bb6
    );

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    box-shadow:
        0 4px 15px rgba(0,0,0,0.15);

}


/* MENU BUTTON */

.menu-button {

    position: absolute;

    left: 22px;

    top: 50%;

    transform: translateY(-50%);

    width: 48px;

    height: 48px;

    border: none;

    border-radius: 10px;

    background: rgba(255,255,255,0.15);

    color: white;

    font-size: 25px;

    cursor: pointer;

    transition: 0.2s;

}

.menu-button:hover {

    background: rgba(255,255,255,0.28);

}


/* TITLE */

.header-title {

    text-align: center;

}

.header-title h1 {

    margin: 0;

    font-size: 30px;

    font-weight: 700;

    letter-spacing: 1px;

}

.header-title p {

    margin: 7px 0 0;

    font-size: 15px;

    opacity: 0.92;

}


/* LOGO */

.header-logo {

    position: absolute;

    right: 25px;

    top: 50%;

    transform: translateY(-50%);

}

.header-logo img {

    width: 75px;

    height: 75px;

    object-fit: contain;

}


/* =====================================================
   SIDEBAR
===================================================== */

.side-menu {

    position: fixed;

    top: 0;

    left: -310px;

    width: 290px;

    height: 100vh;

    background: white;

    z-index: 1000;

    box-shadow:
        4px 0 20px rgba(0,0,0,0.18);

    transition: left 0.3s ease;

}

.side-menu.open {

    left: 0;

}


/* MENU HEADER */

.side-menu-header {

    height: 100px;

    padding: 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: #0057a8;

    color: white;

}

.side-menu-header h4 {

    margin: 0;

    font-weight: 600;

}

.close-button {

    border: none;

    background: transparent;

    color: white;

    font-size: 20px;

    cursor: pointer;

}


/* MENU LIST */

.menu-list {

    padding: 20px 12px;

}

.menu-item {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px 18px;

    margin-bottom: 6px;

    border-radius: 10px;

    text-decoration: none;

    color: #374151;

    font-size: 16px;

    transition: 0.2s;

}

.menu-item i {

    width: 25px;

    text-align: center;

    font-size: 19px;

}

.menu-item:hover {

    background: #e9f3fc;

    color: #0057a8;

}

.menu-item.active {

    background: #e1effb;

    color: #0057a8;

    font-weight: 600;

}


/* OVERLAY */

.menu-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.4);

    z-index: 999;

    display: none;

}

.menu-overlay.show {

    display: block;

}


/* =====================================================
   DASHBOARD
===================================================== */

.dashboard-container {

    max-width: 1500px;

    margin: auto;

    padding: 35px 35px 20px;

}


/* SECTION */

.dashboard-section {

    margin-bottom: 40px;

}

.section-title {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 22px;

}

.section-title h2 {

    margin: 0;

    font-size: 24px;

    font-weight: 650;

}

.section-title h2 i {

    color: #0057a8;

    margin-right: 8px;

}

.section-title p {

    margin: 6px 0 0;

    color: #6b7280;

    font-size: 14px;

}


/* =====================================================
   AIR QUALITY CARD
===================================================== */

.data-card {

    min-height: 150px;

    background: white;

    border-radius: 14px;

    padding: 25px;

    display: flex;

    align-items: center;

    gap: 20px;

    box-shadow:
        0 3px 15px rgba(0,0,0,0.06);

    border: 1px solid #edf0f4;

    transition: 0.2s;

}

.data-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 7px 20px rgba(0,0,0,0.1);

}

.data-icon {

    width: 55px;

    height: 55px;

    border-radius: 12px;

    background: #e9f3fc;

    color: #0057a8;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;

}

.data-content {

    display: flex;

    flex-direction: column;

}

.data-content span {

    color: #6b7280;

    font-size: 14px;

}

.data-content strong {

    font-size: 30px;

    line-height: 1.2;

    margin-top: 5px;

    color: #111827;

}

.data-content small {

    color: #9ca3af;

    font-size: 12px;

}


/* =====================================================
   LAST UPDATE
===================================================== */

.last-update {

    margin-top: 15px;

    text-align: right;

    color: #6b7280;

    font-size: 13px;

}


/* =====================================================
   VEHICLE CARD
===================================================== */

.vehicle-card {

    background: white;

    border-radius: 14px;

    padding: 25px;

    border: 1px solid #edf0f4;

    box-shadow:
        0 3px 15px rgba(0,0,0,0.06);

    transition: 0.2s;

}

.vehicle-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 7px 20px rgba(0,0,0,0.1);

}

.vehicle-header {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 17px;

    font-weight: 600;

}

.vehicle-header i {

    font-size: 23px;

    color: #0057a8;

}

.vehicle-number {

    font-size: 38px;

    font-weight: 700;

    margin-top: 15px;

    color: #111827;

}

.vehicle-label {

    color: #6b7280;

    font-size: 13px;

}


/* EMISSION */

.emission-value {

    margin-top: 20px;

    padding-top: 15px;

    border-top: 1px solid #edf0f4;

    display: flex;

    align-items: baseline;

    gap: 6px;

}

.emission-value span {

    color: #6b7280;

    font-size: 13px;

}

.emission-value strong {

    font-size: 21px;

    color: #198754;

}

.emission-value small {

    color: #6b7280;

}


/* =====================================================
   TOTAL EMISSION
===================================================== */

.total-emission-card {

    background: linear-gradient(
        135deg,
        #0057a8,
        #0077c8
    );

    color: white;

    border-radius: 16px;

    padding: 28px 35px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    box-shadow:
        0 5px 20px rgba(0,87,168,0.25);

}

.total-emission-card span {

    font-weight: 600;

    font-size: 15px;

}

.total-emission-card p {

    margin: 5px 0 0;

    opacity: 0.85;

    font-size: 13px;

}

.total-emission-value {

    text-align: right;

}

.total-emission-value strong {

    display: block;

    font-size: 38px;

    line-height: 1;

}

.total-emission-value span {

    font-size: 13px;

    opacity: 0.9;

}


/* =====================================================
   FOOTER
===================================================== */

.dashboard-footer {

    margin-top: 20px;

    padding: 25px 0;

    border-top: 1px solid #e5e7eb;

    text-align: center;

    color: #6b7280;

    font-size: 13px;

}

.dashboard-footer p {

    margin: 0 0 5px;

}

.dashboard-footer span {

    color: #9ca3af;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    .ssc-header {

        height: 110px;

    }

    .header-title h1 {

        font-size: 20px;

    }

    .header-title p {

        font-size: 11px;

    }

    .header-logo img {

        width: 52px;

        height: 52px;

    }

    .header-logo {

        right: 12px;

    }

    .menu-button {

        left: 12px;

        width: 42px;

        height: 42px;

    }

    .dashboard-container {

        padding: 25px 15px;

    }

    .section-title h2 {

        font-size: 20px;

    }

    .total-emission-card {

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

    }

    .total-emission-value {

        text-align: left;

    }

}