/* Dashboard Styles */

.dashboard-wrapper {
    padding: 0;
}

/* KPI Cards */
.kpi-cards-row {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
}

.kpi-card {
    background: #fff;
    border: 1px solid #D10000;
    border-radius: 20px;
    padding: 20px 30px;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 480px;
    /* Constrain width to match Figma proportion */
}

.kpi-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kpi-card-title {
    font-size: 16px;
    font-weight: 400;
    color: #111;
    margin-bottom: 12px;
}

.kpi-card-value {
    font-size: 36px;
    font-weight: 700;
    color: #111;
    line-height: 1;
    margin: 0;
}

/* Simulated Bar Charts */
.kpi-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 48px;
    margin-bottom: 4px;
}

.chart-bar {
    width: 7px;
    border-radius: 999px;
    background-color: #10B981;
}

.chart-bar.yellow {
    background-color: #FBBF24;
}

/* Map Section */
.dashboard-map-container {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    height: 550px;
    border: 1px solid #E5E7EB;
}

.dashboard-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    /* Optional filter to make map look slightly muted/cleaner */
    filter: contrast(1.1) saturate(1.2);
}

/* Abstract Custom Map Pins overlay */
.map-marker {
    position: absolute;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border-radius: 50%;
}

.map-marker::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.map-marker-inner {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-marker-inner i {
    font-size: 10px;
}

.marker-green {
    background: #10B981;
}

.marker-green::after {
    border-top: 8px solid #10B981;
}

.marker-green .map-marker-inner i {
    color: #10B981;
}

.marker-yellow {
    background: #FBBF24;
}

.marker-yellow::after {
    border-top: 8px solid #FBBF24;
}

.marker-yellow .map-marker-inner i {
    color: #FBBF24;
}

/* Ongoing Ride Overlay Card */
.ongoing-ride-card {
    position: absolute;
    bottom: 30px;
    right: 50px;
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    width: 330px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    /* Softer, wider shadow */
    z-index: 10;
}

.ongoing-ride-header {
    font-size: 13px;
    font-weight: 700;
    color: #D10000;
    margin-bottom: 18px;
    text-transform: capitalize;
}

.ongoing-driver-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ongoing-driver-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ongoing-driver-avatar {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
}

.ongoing-driver-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin: 0 0 2px 0;
}

.ongoing-driver-stats {
    font-size: 11px;
    color: #6B7280;
    margin: 0;
}

.btn-call {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #D10000;
    background: #fff;
    color: #D10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-call i {
    font-size: 14px;
}

.btn-call:hover {
    background: #D10000;
    color: #fff;
}


/* Ride Timeline */
.ride-timeline {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}

.ride-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background-image: linear-gradient(to bottom, #9CA3AF 50%, rgba(255, 255, 255, 0) 0%);
    background-position: right;
    background-size: 2px 8px;
    background-repeat: repeat-y;
}

.timeline-point {
    position: relative;
    margin-bottom: 16px;
}

.timeline-point:last-child {
    margin-bottom: 0;
}

.timeline-icon-start {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: #111;
    border-radius: 50%;
}

.timeline-icon-end {
    position: absolute;
    left: -24px;
    top: 3px;
    color: #D10000;
    font-size: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin: 0 0 2px 0;
}

.timeline-address {
    font-size: 11px;
    color: #6B7280;
    margin: 0;
}

/* Ride Metrics Grid */
.ride-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid #F3F4F6;
    border-bottom: 1px solid #F3F4F6;
    margin-bottom: 16px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 10px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
}

.metric-value {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

/* Vehicle Subcard */
.ongoing-vehicle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vehicle-thumb {
    width: 40px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
}

.vehicle-desc {
    font-size: 12px;
    font-weight: 600;
    color: #111;
}