/* ========================================================================= */
/* --- 1. GLOBAL STYLES --- */
/* ========================================================================= */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Inria Sans', sans-serif;
    --text-light: #ffffff;
    --text-accent: #879FFF;
    --bg-dark: #000618;
    --bg-card: rgba(0, 50, 200, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    color: var(--text-light);
    background-color: var(--bg-dark);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.dashboard-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px 30px;
}

/* ========================================================================= */
/* --- HEADER & FOOTER --- */
/* ========================================================================= */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #011248 0%, #072793 100%);
    padding: 10px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}
.top-bar-section {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 16px;
    font-weight: 700;
}
.top-bar-section img { height: 20px; }
.price-display {
    border: 1px solid #7897FD;
    padding: 2px 8px;
    font-family: var(--font-secondary);
}

.bottom-bar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
}
.nav-icons {
    background: var(--text-light);
    width: 100%;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.nav-icons a img { height: 28px; }
.nav-icons a.active {
    background-color: rgba(0, 92, 255, 0.2);
    border-radius: 8px;
    padding: 5px;
}
.gps-button {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}
.gps-button img { height: 60px; }


/* ========================================================================= */
/* --- 2. MAIN DASHBOARD STYLES (INDEX.PHP) --- */
/* ========================================================================= */
.main-content {
    display: flex;
    flex-grow: 1;
    gap: 25px;
    padding: 15px 0;
    min-height: 0;
}

.left-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-basis: 25%;
}
.speedometer-area {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.hazard-light { height: 26px; }
.turn-indicators {
    display: flex;
    justify-content: space-between;
    width: 80%;
    position: absolute;
    top: 35px;
}
.indicator {
    width: 24px;
    height: 24px;
    border: 1px solid var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.speedometer-cluster {
    position: relative;
    width: 80%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
}
.speedo-bg, .speedo-gauge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.speed-readout {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.speed-value {
    font-size: 48px;
    font-weight: 700;
}
.speed-unit {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-accent);
}
.odometer {
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
}
#speedo-needle {
    transform-origin: center;
    transition: transform 0.5s ease;
}

/* --- CORRECTED GAUGE STYLES --- */
.bottom-gauges {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
}
.bottom-gauges .gauge {
    width: 40px;
    height: 60px;
    border-radius: 6px;
    background: rgba(0, 60, 255, 0.36);
    position: relative;
    overflow: hidden;
}
.bottom-gauges .gauge-fill-red, 
.bottom-gauges .gauge-fill-yellow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transition: height 0.5s ease-out;
}
.bottom-gauges .gauge-fill-red {
    background-color: #ff2929;
}
.bottom-gauges .gauge-fill-yellow {
    background-color: #ffd428;
}
.rpm-gauge { text-align: center; }
.rpm-gauge .rpm-value { font-size: 18px; }
.rpm-gauge .rpm-label { font-size: 14px; color: var(--text-accent); }


.right-panel {
    flex-basis: 75%;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    grid-template-rows: auto auto 1fr;
    gap: 15px;
}
.info-card {
    border-radius: 12px;
    padding: 30px 15px;
    font-size: 14px;
    background: var(--bg-card);
}
#card-temp, #card-oil, #card-gps, #card-load {
    display: flex;
    align-items: center;
    gap: 10px;
}
#card-temp img, #card-oil img, #card-gps img, #card-load img { height: 24px; }
#card-brake {
    grid-area: 1 / 3 / 3 / 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
#card-brake img { height: 32px; }
#card-psi { grid-area: 3 / 1 / 4 / 3; }
#card-safety { grid-area: 3 / 3 / 4 / 4; }

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.card-title img { height: 24px; }

.psi-grid, .safety-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: calc(100% - 34px);
}
.psi-grid span, .safety-grid span {
    background: var(--bg-card);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
}
.locked-status { gap: 5px; }
.locked-status img { height: 16px; }

/* BOTTOM BAR */
.bottom-bar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding-top: 10px;
}
.nav-icons {
    background: var(--text-light);
    width: 100%;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.nav-icons a img { height: 28px; }
.gps-button {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}
.gps-button img { height: 60px; }
#speedo-needle {
    transform-origin: center;
    transition: transform 0.5s ease;
}

/* Landscape Tablet View */
@media (min-width: 1200px) and (max-width: 1370px) and (min-height: 700px) and (max-height: 850px) {
    .dashboard-container {
        padding: 20px 40px;
    }

    .top-bar-section {
        font-size: 18px;
        gap: 25px;
    }

    .main-content {
        gap: 30px;
    }

    .left-panel {
        flex-basis: 30%;
    }

    .right-panel {
        flex-basis: 70%;
        gap: 20px;
    }

    .speed-value {
        font-size: 52px;
    }

    .info-card {
        padding: 15px 20px;
        font-size: 16px;
    }
}

.nav-icons a.active {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
/* */

/* ========================================================================= */
/* --- 2. ENGINE MONITOR STYLES (From engine_monitor.css) --- */
/* ========================================================================= */
.engine-monitor-main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.engine-monitor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    width: 95%;
    height: 100%;
    background-color: rgba(0, 60, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
}

.engine-temp-card, .engine-rpm-card, .engine-oil-card, .engine-radiator-card {
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.34) 0%, rgba(0, 36, 153, 0.34) 100%);
    border-radius: 9px;
    padding: 15px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.engine-temp-card {
    grid-row: 1 / 3;
    gap: 20px;
}

.engine-temp-card img {
    width: 20%;
}

.engine-rpm-card {
    grid-row: 1 / 3;
    gap: 20px;
}

.rpm-dial {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, #002394 0%, #000000 100%);
    border: 3px solid #053efa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.engine-monitor-main .rpm-value { font-size: 24px; font-weight: bold; }
.engine-monitor-main .rpm-label { font-size: 14px; color: #698cff; }


.engine-oil-card, .engine-radiator-card {
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.09) 0%, rgba(0, 36, 153, 0.09) 100%);
}

.engine-oil-card h4, .engine-radiator-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.data-circles {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.27) 0%, rgba(0, 36, 153, 0.27) 100%);
    font-size: 12px;
}
/* */

/* ========================================================================= */
/* --- 3. JOB LIST STYLES (From job_list.css) --- */
/* ========================================================================= */
.job-list-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.content-wrapper {
    width: 98%;
    height: 100%;
    background: rgba(0, 60, 255, 0.16);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 20px;
}

.job-details-panel {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
}

.job-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
}

.job-list-icon {
    height: 20px;
}

.job-details-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.2) 0%, rgba(0, 36, 153, 0.2) 100%);
    border-radius: 8px;
    padding: 8px 12px;
}

.label {
    color: #fff;
    font-size: 14px;
}

.value-box {
    font-size: 14px;
    font-weight: bold;
}

.value-box.state { color: #00ff09; }
.value-box.street { color: #ff0000; }
.value-box.time-alert { color: #ff0000; }
.value-box.weight { color: #fff200; }
.value-box.type-solid { color: #00ff3c; }

.job-list-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.accept-btn {
    background: linear-gradient(180deg, rgba(43, 255, 0, 0.42) 0%, rgba(0, 111, 24, 0.42) 100%);
}

.cancel-btn {
    background: linear-gradient(180deg, rgba(255, 0, 0, 0.6) 0%, rgba(118, 8, 0, 0.6) 100%);
}

.map-panel {
    flex: 1;
    border-radius: 6px;
    overflow: hidden;
}

.map-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* */

/* ========================================================================= */
/* --- 4. TIRE MONITOR STYLES (From tire-monitor.css) --- */
/* ========================================================================= */
.tire-monitor-main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tire-monitor {
    background: rgba(0, 60, 255, 0.16);
    border-radius: 16px;
    width: 95%;
    height: 100%;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.car-tire-image {
    max-width: 200%;
    max-height: 200px;
    object-fit: contain;
    margin-left: -20px;
    margin-right: 50px;
    opacity: 0.6; /* You can adjust this value from 0.0 to 1.0 */
}

.tire-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    justify-content: center;
}

.tire-alignment-card {
    background: linear-gradient(90deg, rgba(0, 60, 255, 0.2) 0%, rgba(0, 36, 153, 0.2) 100%);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alignment-diagram {
    position: relative;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alignment-diagram h3 {
    color: #fff;
    font-size: 14px;
    position: absolute;
}

.wheel-icon {
    position: absolute;
    width: 18px;
    height: 18px;
}
.wheel-icon.tl { top: 0; left: 15%; }
.wheel-icon.tr { top: 0; right: 15%; }
.wheel-icon.bl { bottom: 0; left: 15%; }
.wheel-icon.br { bottom: 0; right: 15%; }

.tire-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-box {
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.2) 0%, rgba(0, 36, 153, 0.2) 100%);
    border-radius: 8px;
    padding: 8px;
    color: #fff;
    font-size: 13px;
    text-align: center;
}
.stat-box .good { color: #1fb700; }
.stat-box .value { color: #1fb700; }

.psi-readouts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    justify-items: center;
}

.psi-display {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.psi-display.alert {
    background: linear-gradient(149.58deg,rgba(0, 60, 255, 0.19) 0%, rgba(0, 36, 153, 0.19) 100%);
    /* Note: In the original, .psi-display.alert had a specific gradient but no color change to indicate alert. */
}

.psi-display:not(.alert) {
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.19) 0%, rgba(0, 36, 153, 0.19) 100%);
}

.psi-label {
    font-size: 14px;
}
.psi-value {
    font-size: 14px;
}
/* */


/* ========================================================================= */
/* --- 5. MAP NAVIGATION STYLES (From map_navigation.css) --- */
/* ========================================================================= */
.map-main {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #1a2c5a; /* A dark blue placeholder color */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}
/* */

/* --- 6. NOTIFICATION PAGE STYLES --- */
/* ========================================================================= */
.notification-main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-panel {
    width: 95%;
    height: 100%;
    background: rgba(0, 60, 255, 0.16);
    border-radius: 16px;
    padding: 25px;
}

.notification-title {
    color: #fff;
    font-size: 22px;
    margin-bottom: 20px;
}

.notification-list {
    list-style: none;
}

.notification-item {
    background: linear-gradient(90deg, rgba(0, 60, 255, 0.2) 0%, rgba(0, 36, 153, 0.2) 100%);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 16px;
}

.notification-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Color coding for dots */
.notification-item .dot.alert { background-color: #ff4d4d; }
.notification-item .dot.warning { background-color: #ffc107; }
.notification-item .dot.info { background-color: #17a2b8; }


.notification-item.read {
    opacity: 0.6;
}

.notification-item.read .dot {
    background-color: #6c757d; /* Grey dot for read */
}

.notification-item p {
    flex-grow: 1;
}

.notification-item .time {
    color: var(--text-accent);
    font-size: 14px;
    flex-shrink: 0;
}

/* ========================================================================= */
/* --- 7. FUEL MONITOR PAGE STYLES --- */
/* ========================================================================= */
.fuel-monitor-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fuel-monitor-wrapper {
    width: 95%;
    height: 100%;
    background: #03184A;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 30px;
}

.fuel-dial {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fuel-gauge {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(closest-side, #002394 0%, #000000 100%);
    border: 3px solid #053efa;
}

#fuel-needle {
    transform-origin: center;
    transition: transform 1s ease-in-out;
}

.fuel-dial .dial-content {
    text-align: center;
    z-index: 2;
}
.fuel-dial .fuel-percentage {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
}
.fuel-dial .fuel-liters {
    font-size: 20px;
    color: #698cff;
}
.fuel-dial .fuel-range {
    font-size: 14px;
    color: #fff;
    margin-top: 5px;
}
.fuel-dial .fuel-label {
    position: absolute;
    bottom: -30px;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fuel-dial .fuel-label img {
    height: 20px;
    /* The filter was removed from here */
}

.fuel-details {
    display: flex;
    gap: 20px;
}

.fuel-monitor-main .detail-card {
    background: rgba(0, 60, 255, 0.25);
    border-radius: 16px;
    width: 300px;
    padding: 20px;
}

.fuel-monitor-main .detail-card .card-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.fuel-monitor-main .card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fuel-monitor-main .detail-row {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(0,60,255,0.08) 0%, rgba(0,36,153,0.08) 100%);
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.fuel-monitor-main .detail-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    /* The incorrect 'filter: invert(1);' has been removed from here. */
}

.fuel-monitor-main .detail-label {
    flex-grow: 1;
    color: #fff;
}

.fuel-monitor-main .detail-value {
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    background-color: rgba(0, 60, 255, 0.2);
    padding: 4px 8px;
    border-radius: 5px;
}

.fuel-monitor-main .detail-row .alert {
    color: #ff4d4d;
}

/* ========================================================================= */
/* --- 8. OTHER OPTIONS PAGE STYLES --- */
/* ========================================================================= */
.others-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.options-wrapper {
    width: 95%;
    height: 100%;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.options-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: radial-gradient(closest-side, #002499 0%, #000F3D 100%);
    border-radius: 16px;
    padding: 25px;
}

.option-card {
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.2) 0%, rgba(0, 36, 153, 0.2) 100%);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.option-card:hover {
    background: linear-gradient(180deg, rgba(0, 80, 255, 0.3) 0%, rgba(0, 46, 183, 0.3) 100%);
}

.option-card img {
    height: 24px;
    width: 24px; /* This line was added to fix the sizing issue */
    margin-right: 15px;
}

/* ========================================================================= */
/* --- 9. AC MONITOR PAGE STYLES (CORRECTED) --- */
/* ========================================================================= */
.ac-monitor-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ac-monitor-wrapper {
    width: 95%;
    height: 100%;
    background: rgba(0, 60, 255, 0.16);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ac-panel {
    background: radial-gradient(closest-side, #002499 0%, #000F3D 75%);
    border-radius: 16px;
    width: 219px;
    height: 240px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dial {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #053efa;
    background: radial-gradient(closest-side, #002394 0%, #000000 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly; /* <--- FIX: Distributes space */
    align-items: center;
    padding-top: 10px; /* <--- FIX: Pushes icon from the top */
}

.dial .dial-icon {
    height: 32px;
    width: 32px;
    margin-top: -100px;
}

.dial .value {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    line-height: 1; 
}

.ac-center-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    color: #fff;
}

.ac-status-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    background-color: #03184A;
    padding: 15px 30px;
    border-radius: 12px;
}

.ac-status-row .ac-title {
    font-size: 24px;
    font-weight: bold;
}

.ac-status-display {
    background: linear-gradient(180deg, #0022FF 0%, #010442 100%);
    border-radius: 8px;
    padding: 10px 25px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 34, 255, 0.5);
}

.ac-mode-icons {
    display: flex;
    gap: 20px;
}
.ac-mode-icons img {
    height: 28px;
}
/* ========================================================================= */
/* --- 10. CUSTOMER CARE PAGE STYLES --- */
/* ========================================================================= */
.customer-care-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.care-wrapper {
    width: 100%; /* Changed to 100% as requested */
    height: 95%;
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.25) 0%, rgba(0, 35, 149, 0.25) 100%);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.care-content {
    width: 60%; /* Inner container to manage content width */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.care-left-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px; /* Increased gap */
}

.care-title {
    color: #fff;
    font-size: 18px;
    margin-left: 10px; /* Align with options */
}

.care-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.care-row {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.care-row img {
    height: 28px;
    width: 28px;
}

.care-label {
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.2) 0%, rgba(0, 36, 153, 0.2) 100%);
    border-radius: 8px;
    padding: 10px 15px;
    width: 150px; /* Fixed width for alignment */
    text-align: center;
    color: #fff;
    font-size: 14px;
}

.care-right-panel {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sos-button {
    width: 110px;
    height: 110px;
    background: linear-gradient(149.58deg, rgba(255, 0, 4, 0.62) 0%, rgba(9, 3, 54, 0.62) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 3px solid #FF0D0D;
}

.sos-button img {
    height: 65px;
    width: 65px;
}

/* ========================================================================= */
/* --- 11. REST MONITOR PAGE STYLES --- */
/* ========================================================================= */
.rest-monitor-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rest-monitor-wrapper {
    width: 100%;
    height: 95%;
    background: radial-gradient(closest-side, #002499 0%, #000F3D 100%);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.rest-monitor-title {
    color: #fff;
    font-size: 16px;
    font-weight: normal;
}

.rest-dial {
    position: relative;
    width: 120px;
    height: 120px;
}

.dial-svg {
    transform: rotate(-90deg);
}

.dial-bg, .dial-progress {
    fill: none;
    stroke-width: 6;
}

.dial-bg {
    stroke: rgba(0, 60, 255, 0.3);
}

.dial-progress {
    stroke: #00A9FF;
    stroke-dasharray: 283; /* 2 * PI * 45 */
    stroke-dashoffset: var(--dash-offset, 283);
    transition: stroke-dashoffset 1s ease-out;
}

.dial-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}
.dial-value {
    font-size: 24px;
    font-weight: bold;
}
.dial-label {
    font-size: 14px;
    color: #698cff;
}

.rest-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rest-details .detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
}

.rest-details img {
    height: 20px;
    width: 20px;
}

.rest-details .detail-label {
    color: #fff;
    font-size: 14px;
    flex-grow: 1;
}

.rest-details .detail-value {
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.2) 0%, rgba(0, 36, 153, 0.2) 100%);
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
}

/* ========================================================================= */
/* --- 12. SETTINGS PAGE STYLES --- */
/* ========================================================================= */
.settings-main {
    position: relative; /* Required for absolute positioning of the slider */
    padding: 0;
    overflow-y: auto;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 1fr;
    gap: 20px;
    height: 100%;
    width: 100%;
}

.settings-card {
    background: rgba(0, 60, 255, 0.25);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.settings-card .card-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
}

.settings-card .card-body {
    background: linear-gradient(180deg, rgba(0,60,255,0.04) 0%, rgba(0,36,153,0.04) 100%);
    border-radius: 9px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 14px;
}
.setting-row span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.setting-row img {
    height: 18px;
    width: 18px;
}

.value-box, #brightness-mode {
    background: linear-gradient(180deg, #0022ff70 0%, #010442 100%);
    border-radius: 10px;
    padding: 8px 15px;
    min-width: 110px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 34, 255, 0.4);
    cursor: pointer;
    border: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

#brightness-mode option {
    background-color: #010442;
    color: #fff;
}

.value-text {
    font-size: 14px;
    font-weight: bold;
    color: #c0c8ff;
    text-align: right;
}

/* --- NEW VERTICAL BRIGHTNESS SLIDER STYLES --- */
#brightness-slider-container {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: #03184A;
    padding: 20px 15px;
    border-radius: 16px;
    z-index: 10;
}
#brightness-slider-container.show {
    display: flex;
}
#brightness-slider {
    -webkit-appearance: slider-vertical; /* Vertical orientation for webkit browsers */
    writing-mode: bt-lr; /* Vertical orientation for other browsers */
    width: 8px;
    height: 150px;
    background: #010442;
    border-radius: 5px;
    outline: none;
}
#brightness-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}
#brightness-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}
#brightness-value {
    font-size: 14px;
    font-weight: bold;
}


/* Specific card layouts */
.vehicle-card {
    grid-column: 1 / -1;
    width: 100%;
}
.vehicle-card .card-body {
    flex-direction: row;
    gap: 30px;
}
.vehicle-info-grid {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.vehicle-specs {
    flex-basis: 50%;
    font-size: 13px;
    line-height: 1.7;
    color: #c0c8ff;
}

/* ========================================================================= */
/* --- 13. SENSOR LIST PAGE STYLES --- */
/* ========================================================================= */
.sensor-list-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sensor-list-wrapper {
    width: 50%;
    height: 95%;
    background: radial-gradient(closest-side, #002499 0%, #000F3D 100%);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.sensor-list-title {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.sensor-items {
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sensor-card {
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.2) 0%, rgba(0, 36, 153, 0.2) 100%);
    border-radius: 8px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sensor-card:hover {
    background: linear-gradient(180deg, rgba(0, 80, 255, 0.3) 0%, rgba(0, 46, 183, 0.3) 100%);
}

.sensor-card img {
    height: 24px;
    width: 24px;
    margin-right: 20px;
    /* --- FIX STARTS HERE --- */
    filter: brightness(0) invert(1); /* This makes black icons white */
    /* --- FIX ENDS HERE --- */
}

/* ========================================================================= */
/* --- 14. TEMPERATURE SENSOR PAGE STYLES (CORRECTED) --- */
/* ========================================================================= */
.temp-sensor-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.temp-sensor-wrapper {
    width: 40%;
    height: auto; /* <--- FIX: Changed from 95% to auto */
    max-height: 95%; /* <--- FIX: Added max-height to prevent overflow */
    background: radial-gradient(closest-side, #002499 0%, #000F3D 100%);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.temp-sensor-title {
    color: #fff;
    font-size: 16px;
    font-weight: normal;
}

.temp-dial {
    position: relative;
    width: 120px;
    height: 120px;
}

.dial-svg {
    transform: rotate(-90deg);
}

.dial-bg, .dial-progress {
    fill: none;
    stroke-width: 6;
}

.dial-bg {
    stroke: rgba(0, 60, 255, 0.3);
}

.dial-progress {
    stroke: #FF5733; /* Orange/Red for temperature */
    stroke-dasharray: 283; /* 2 * PI * 45 */
    stroke-dashoffset: 283; /* Start empty */
    transition: stroke-dashoffset 1s ease-out;
}

.dial-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}
.dial-value {
    font-size: 28px;
    font-weight: bold;
}
.dial-label {
    font-size: 16px;
    color: #FF5733;
}

.temp-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
}

.temp-details .detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.2) 0%, rgba(0, 36, 153, 0.2) 100%); /* Add background */
    border-radius: 8px; /* Add border-radius */
}

.temp-details img {
    height: 20px;
    width: 20px;
    filter: brightness(0) invert(1); 
}

.temp-details .detail-label {
    color: #fff;
    font-size: 14px;
    flex-grow: 1;
}

.temp-details .detail-value {
    background: linear-gradient(180deg, rgba(0, 22, 255, 0.2) 0%, rgba(1, 4, 66, 0.2) 100%); 
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
}

/* ========================================================================= */
/* --- 15. CAMERA PAGE STYLES --- */
/* ========================================================================= */
.camera-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.camera-wrapper {
    width: 95%;
    height: 100%;
    background: rgba(0, 60, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.camera-title {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.camera-feeds {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    height: 100%;
}

.camera-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feed-placeholder {
    width: 100%;
    height: 85%;
    background-color: #000;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #072793;
}

/* This is where your live stream image would go */
.feed-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.connecting-text {
    color: #879FFF;
    font-size: 16px;
}

.camera-label {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

/* ========================================================================= */
/* --- 16. TRUCK DETAILS PAGE STYLES (CORRECTED) --- */
/* ========================================================================= */
.Truck-details-main {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align content to the top */
    overflow-y: auto;      /* Enable vertical scrolling for content */
    padding: 20px 0;       /* Add vertical padding to prevent overlap with header/footer */
    flex-grow: 1;          /* Ensure this section fills available vertical space */
    min-height: 0;         /* A flexbox fix to prevent overflow issues */
}

.details-wrapper {
    width: 90%;
    max-width: 1200px; /* Good practice for very large screens */
    height: auto;
    background: rgba(0, 60, 255, 0.25);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.details-title {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    align-self: flex-start;
}

.details-body {
    display: flex;
    gap: 25px;
    width: 100%;
}

.details-left, .details-right {
    background: rgba(10, 34, 92, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-basis: 50%; /* Each panel will take up half the width on desktop */
}

.details-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    gap: 15px; 
}

.detail-row span:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap; /* Prevents the label text from wrapping */
}

.detail-row img {
    height: 20px;
    width: 20px;
    flex-shrink: 0;
}

.detail-value {
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.2) 0%, rgba(0, 36, 153, 0.2) 100%);
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: bold;
    text-align: right;
}

.details-right {
    font-size: 13px;
    line-height: 1.8;
    color: #c0c8ff;
}

/* --- FIX FOR TABLET VIEW --- */
@media (max-width: 992px) {
    .details-body {
        flex-direction: column; /* Stack panels vertically on smaller screens */
    }

    .details-left, .details-right {
        flex-basis: 100%; /* Each panel takes full width */
    }
}
/* ========================================================================= */
/* --- 17. DRIVER DETAILS PAGE STYLES --- */
/* ========================================================================= */
.driver-details-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.driver-details-wrapper {
    width: 95%;
    height: 95%;
    background: rgba(0, 60, 255, 0.16);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    gap: 25px;
}

.driver-info-panel, .document-panel {
    background: #03184A;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.driver-info-panel {
    flex-basis: 50%;
}

.document-panel {
    flex-basis: 50%;
}

.panel-title {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.info-label {
    color: #c0c8ff;
    flex-basis: 40%;
}

.info-value {
    color: #fff;
    font-weight: bold;
    flex-basis: 60%;
    text-align: right;
}

.document-viewer {
    flex-grow: 1;
    background-color: rgba(0,0,0,0.2);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #879FFF;
    font-style: italic;
}

/* ========================================================================= */
/* --- 18. TRAILER & LOAD PAGE STYLES --- */
/* ========================================================================= */
.trailer-load-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trailer-wrapper {
    width: 95%;
    height: 95%;
    background: rgba(0, 60, 255, 0.16);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-title {
    color: #fff;
    font-size: 16px;
    font-weight: normal;
    margin-left: 10px;
}

.trailer-content {
    display: flex;
    gap: 25px;
    flex-grow: 1;
}

.load-camera-panel {
    flex-basis: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feed-placeholder {
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #072793;
}

.connecting-text {
    color: #879FFF;
    font-size: 14px;
}

.camera-label {
    color: #fff;
    font-size: 15px;
}

.trailer-details-panel {
    flex-basis: 55%;
    background: rgba(0, 60, 255, 0.25);
    border-radius: 16px;
    padding: 15px;
}

.panel-title {
    font-size: 14px;
    color: #fff;
    font-weight: normal;
    margin-bottom: 15px;
}

.details-body {
    background: linear-gradient(180deg, rgba(0,60,255,0.04) 0%, rgba(0,36,153,0.04) 100%);
    border-radius: 9px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #fff;
}
.detail-row img {
    height: 18px;
    width: 18px;
    margin-right: 10px;
    /* --- FIX STARTS HERE --- */
    filter: brightness(0) invert(1); /* This makes the icons white */
    /* --- FIX ENDS HERE --- */
}
.detail-row span:first-of-type {
    flex-grow: 1;
}

.detail-value {
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.2) 0%, rgba(0, 36, 153, 0.2) 100%);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

/* ========================================================================= */
/* --- 19. ALCOHOL SENSOR PAGE STYLES --- */
/* ========================================================================= */
.alcohol-sensor-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sensor-wrapper {
    width: 45%;
    height: 95%;
    background: radial-gradient(closest-side, #002499 0%, #000F3D 100%);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.sensor-title {
    color: #fff;
    font-size: 18px;
    font-weight: normal;
}

.dial-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style for "No Alcohol Detected" */
.dial-container:not(.detected) {
    background: linear-gradient(149.58deg, rgba(0, 60, 255, 0.62) 0%, rgba(9, 3, 54, 0.62) 100%);
    border: 3px solid #0055FF;
}

/* Style for "Alcohol Detected" */
.dial-container.detected {
    background: linear-gradient(149.58deg, rgba(255, 0, 4, 0.62) 0%, rgba(54, 3, 9, 0.62) 100%);
    border: 3px solid #FF0D0D;
}

.dial {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dial img {
    height: 80px;
    width: 80px;
    position: absolute;
}

.dial-value {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    z-index: 2;
}

.status-box {
    border-radius: 8px;
    padding: 10px 30px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

/* Style for "No Alcohol Detected" */
.status-box:not(.detected) {
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.42) 0%, rgba(0, 12, 3, 0.42) 100%);
}

/* Style for "Alcohol Detected" */
.status-box.detected {
    background: linear-gradient(180deg, rgba(255, 0, 0, 0.71) 0%, rgba(87, 3, 35, 0.71) 100%);
}