/* =========================================================
   AIR QUALITY MONITORING
   SMART SUSTAINABILITY CAMPUS
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

body {
    background: #f4f7fb;
    color: #263238;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    margin: 0;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.campus-navbar {
    background: linear-gradient(
        135deg,
        #0d6efd,
        #084298
    );

    min-height: 64px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.12);
}


.campus-navbar .navbar-brand {
    font-size: 1.15rem;
    font-weight: 700;

    display: flex;
    align-items: center;

    gap: 10px;
}


.campus-navbar .navbar-brand i {
    font-size: 1.4rem;
}


.campus-navbar .btn {
    font-weight: 600;

    border-radius: 8px;

    padding-left: 16px;
    padding-right: 16px;
}


.campus-navbar .btn:hover {
    transform: translateY(-1px);

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   PAGE TITLE
   ========================================================= */

.page-title {
    margin-top: 5px;
}


.page-title h2 {
    font-weight: 700;

    color: #1f2937;

    margin-bottom: 6px;
}


.page-title h2 i {
    color: #0d6efd;

    margin-right: 8px;
}


.page-title p {
    color: #6c757d;

    margin-bottom: 0;

    font-size: 0.95rem;
}


/* =========================================================
   CARD GENERAL
   ========================================================= */

.card {
    border: none;

    border-radius: 12px;

    overflow: hidden;
}


.shadow-sm {
    box-shadow:
        0 3px 14px rgba(0, 0, 0, 0.07) !important;
}


/* =========================================================
   FILTER CARD
   ========================================================= */

.filter-card {
    background: #ffffff;
}


.filter-card .card-body {
    padding: 22px;
}


.form-label {
    color: #374151;

    margin-bottom: 7px;
}


.form-label i {
    color: #0d6efd;

    margin-right: 4px;
}


.form-control,
.form-select {
    min-height: 42px;

    border: 1px solid #d9e0e7;

    border-radius: 8px;

    font-size: 0.94rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;

    box-shadow:
        0 0 0 0.2rem rgba(
            13,
            110,
            253,
            0.12
        );
}


#filterButton {
    min-height: 42px;

    border-radius: 8px;

    font-weight: 600;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


#filterButton:hover:not(:disabled) {
    transform: translateY(-1px);

    box-shadow:
        0 5px 12px rgba(
            13,
            110,
            253,
            0.25
        );
}


/* =========================================================
   INFO CARD
   ========================================================= */

.info-card {
    background: #ffffff;
}


.info-card .card-body {
    padding: 20px 24px;
}


.info-card small {
    display: block;

    margin-bottom: 5px;

    font-size: 0.82rem;
}


.info-card .fw-bold {
    color: #1f2937;

    font-size: 1rem;
}





/* =========================================================
   DIFFERENT SENSOR ACCENTS
   ========================================================= */

.data-card:nth-child(1) {
    border-top: 4px solid #6c757d;
}


.data-card:nth-child(2) {
    border-top: 4px solid #0d6efd;
}


.data-card:nth-child(3) {
    border-top: 4px solid #dc3545;
}


.data-card:nth-child(4) {
    border-top: 4px solid #fd7e14;
}


.data-card:nth-child(5) {
    border-top: 4px solid #20c997;
}


.data-card:nth-child(6) {
    border-top: 4px solid #6f42c1;
}


.data-card:nth-child(7) {
    border-top: 4px solid #198754;
}


/* =========================================================
   CHART CARD
   ========================================================= */

.chart-card {
    background: #ffffff;
}


.chart-card .card-header {
    background: #ffffff;

    border-bottom: 1px solid #edf0f3;

    padding: 16px 20px;

    font-weight: 700;

    color: #263238;
}


.chart-card .card-header i {
    color: #0d6efd;

    margin-right: 8px;
}


.chart-card .card-body {
    padding: 20px;
}


.chart-container {
    position: relative;

    width: 100%;

    height: 350px;
}


.chart-container canvas {
    width: 100% !important;

    height: 100% !important;
}


/* =========================================================
   TABLE CARD
   ========================================================= */

.table-card {
    background: #ffffff;
}


.table-card .card-header {
    background: #ffffff;

    border-bottom: 1px solid #edf0f3;

    padding: 16px 20px;

    color: #263238;

    font-weight: 700;
}


.table-card .card-header i {
    color: #0d6efd;

    margin-right: 8px;
}


.table-card .card-body {
    padding: 20px;
}


/* =========================================================
   TABLE
   ========================================================= */

.table {
    margin-bottom: 0;

    white-space: nowrap;
}


.table thead th {
    background: #f7f9fc;

    color: #4b5563;

    font-size: 0.82rem;

    font-weight: 700;

    border-bottom: 2px solid #e5e7eb;

    padding: 12px 14px;

    vertical-align: middle;
}


.table tbody td {
    color: #4b5563;

    font-size: 0.85rem;

    padding: 12px 14px;

    border-bottom: 1px solid #edf0f3;

    vertical-align: middle;
}


.table tbody tr {
    transition:
        background-color 0.15s ease;
}


.table tbody tr:hover {
    background-color: #f8fbff;
}


.table tbody td:first-child {
    font-weight: 600;

    color: #6c757d;
}


/* =========================================================
   WIFI
   ========================================================= */

.table tbody td:last-child {
    font-weight: 600;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagination-container {
    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    margin-top: 22px;

    gap: 3px;
}


.pagination-container button {
    min-width: 36px;

    height: 36px;

    border-radius: 7px !important;

    font-weight: 600;
}


.pagination-container button.active {
    background-color: #0d6efd;

    border-color: #0d6efd;

    color: #ffffff;
}


.pagination-container button:disabled {
    opacity: 0.45;

    cursor: not-allowed;
}


.pagination-ellipsis {
    padding: 0 6px;

    color: #6c757d;

    line-height: 36px;
}


/* =========================================================
   LOADING
   ========================================================= */

.spinner-border {
    vertical-align: middle;
}


/* =========================================================
   RESPONSIVE TABLE
   ========================================================= */

.table-responsive {
    border-radius: 8px;
}


/* =========================================================
   SCROLLBAR TABLE
   ========================================================= */

.table-responsive::-webkit-scrollbar {
    height: 8px;
}


.table-responsive::-webkit-scrollbar-track {
    background: #f1f3f5;

    border-radius: 10px;
}


.table-responsive::-webkit-scrollbar-thumb {
    background: #c8d0d9;

    border-radius: 10px;
}


.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #9da8b3;
}


/* =========================================================
   EMPTY / ERROR STATE
   ========================================================= */

.table tbody td.text-center {
    padding-top: 30px;

    padding-bottom: 30px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .campus-navbar {
        min-height: 58px;
    }


    .campus-navbar .navbar-brand {
        font-size: 0.98rem;
    }


    .page-title h2 {
        font-size: 1.45rem;
    }


    .page-title p {
        font-size: 0.88rem;
    }


    .filter-card .card-body {
        padding: 16px;
    }


    .info-card .card-body {
        padding: 16px;
    }


    .info-card .row > div {
        margin-bottom: 15px;
    }


    .info-card .row > div:last-child {
        margin-bottom: 0;
    }


    .data-card .card-body {
        min-height: 110px;

        padding: 17px;
    }


    .data-card h2 {
        font-size: 1.7rem;
    }


    .chart-container {
        height: 280px;
    }


    .chart-card .card-body {
        padding: 12px;
    }


    .table-card .card-body {
        padding: 12px;
    }


    .pagination-container {
        margin-top: 16px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .container-fluid {
        padding-left: 12px;

        padding-right: 12px;
    }


    .campus-navbar .navbar-brand {
        font-size: 0.9rem;
    }


    .campus-navbar .navbar-brand i {
        font-size: 1.1rem;
    }


    .campus-navbar .btn {
        padding-left: 10px;

        padding-right: 10px;
    }


    .page-title h2 {
        font-size: 1.3rem;
    }


    .data-card h2 {
        font-size: 1.55rem;
    }


    .chart-container {
        height: 240px;
    }


    .table thead th,
    .table tbody td {
        font-size: 0.78rem;

        padding: 9px 10px;
    }

}


/* =========================================================
   SMOOTH ANIMATION
   ========================================================= */

.card,
.btn,
.form-control,
.form-select {
    transition:
        all 0.2s ease;
}

/* =========================================================
   ALIGNMENT SENSOR CARDS
   ========================================================= */

.data-card {
    height: 100%;
}

.data-card .card-body {
    padding: 20px;
    min-height: 165px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.data-card h6 {
    width: 100%;
    height: 22px;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;

    color: #6c757d;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.data-card h2 {
    width: 100%;
    height: 38px;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #0d6efd;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.data-card span {
    width: 100%;
    height: 20px;
    margin-top: 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8a94a6;
    font-size: 0.8rem;
}

/* =========================================================
   SENSOR DATA CARDS
   ========================================================= */

/* .data-card {
    background: #ffffff;

    height: 100%;

    position: relative;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.data-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(
            0,
            0,
            0,
            0.10
        ) !important;
}


.data-card .card-body {
    padding: 20px;

    min-height: 125px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.data-card h6 {
    color: #6c757d;

    font-size: 0.88rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.3px;

    margin-bottom: 8px;
}


.data-card h2 {
    color: #0d6efd;

    font-size: 2rem;

    font-weight: 700;

    line-height: 1;

    margin: 0;
}


.data-card span {
    color: #8a94a6;

    font-size: 0.8rem;

    margin-top: 7px;
} */