body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6; /* Light background for the whole page */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.dashboard-container {
    width: 100%;
    max-width: 450px; /* Typical phone width for mobile-first design */
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 0 15px 70px 15px; /* Padding for the bottom nav */
    box-sizing: border-box;
}

.header {
    text-align: center;
    padding: 15px 0;
}

.header h1 {
    font-size: 1.5em;
    color: #333;
    margin: 0;
}

/* --- Card Styling --- */
.card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee; /* Subtle border like the image */
}

.card-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

/* --- Vehicle Status Section --- */
.status-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/* Mock Donut Chart (Complex CSS is needed for a real donut, this is a simple mock) */
.donut-chart-mock {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    /* Mocking the blue and green segments using background/gradient */
    background: conic-gradient(
        #2a80c9 0%, /* Blue */
        #2a80c9 60%, 
        #4CAF50 60%, /* Green */
        #4CAF50 85%,
        #ffffff 85% /* White space to create a gap */
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-center {
    width: 70px;
    height: 70px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    color: #333;
    z-index: 2;
}

.segment-label {
    position: absolute;
    font-size: 0.9em;
    font-weight: bold;
    color: #fff;
    padding: 2px 5px;
    border-radius: 5px;
    z-index: 3;
}

.label-1 { /* For Green Segment */
    background-color: #4CAF50;
    top: 15px;
    right: 35px;
}

.label-2 { /* For Blue Segment */
    background-color: #2a80c9;
    bottom: 35px;
    left: 10px;
}


.status-list {
    font-size: 0.9em;
}

.status-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    color: #555;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid #ccc; /* Border around the dot */
}

/* Status Dot Colors (Matching the image) */
.running { border-color: #4CAF50; background-color: #4CAF50; }
.stopped { border-color: #f44336; background-color: #f44336; }
.idle { border-color: #ffc107; background-color: #ffc107; }
.offline { border-color: #2196f3; background-color: #2196f3; }
.no-data { border-color: #795548; background-color: #795548; } /* Mock color */
.expired { border-color: #e91e63; background-color: #e91e63; } /* Mock color */


/* --- Alerts Section --- */
.alert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.alert-box {
    color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.alert-icon {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.alert-text {
    font-size: 0.9em;
    font-weight: 500;
}

.alert-count {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 1.8em;
    font-weight: bold;
    opacity: 0.8;
}

/* Alert Box Colors (Matching the image) */
.total-alerts { background: linear-gradient(135deg, #ff8c00, #ffb347); } /* Orange/Yellow */
.geofence { background: linear-gradient(135deg, #9c27b0, #c464d6); } /* Purple */
.overspeed { background: linear-gradient(135deg, #e91e63, #f06292); } /* Pink/Red */
.excess-idle { background: linear-gradient(135deg, #607d8b, #90a4ae); } /* Grey/Blue */
.parked { background: linear-gradient(135deg, #3f51b5, #7986cb); } /* Indigo/Blue */
.ignition-on { background: linear-gradient(135deg, #8bc34a, #cddc39); } /* Light Green/Lime */
.ignition-off { background: linear-gradient(135deg, #ff5722, #ff8a65); } /* Deep Orange/Red */


/* --- Bottom Navigation Bar --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    height: 60px;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border: 1px solid #eee;
    z-index: 1000;
}

.nav-item {
    color: #aaa;
    font-size: 1.2em;
    text-decoration: none;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.nav-item.active {
    color: #2a80c9; /* Active icon color (Blue from the chart) */
}

/* For the circular background effect on the active icon */
.nav-item.active i {
    background-color: #2a80c9;
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
}

