/* Bus Tracking module — Driver Dashboard, Admin Live Tracking, My Bus */

.dd-root {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dd-status-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dd-status-active {
    background: #eefdf3;
    border-color: #b7f0c8;
}

.dd-pulse-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.6);
    animation: dd-pulse 1.6s infinite;
}

@keyframes dd-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.dd-status-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}

.dd-status-sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.dd-select {
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    font-size: 15px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.dd-big-btn {
    width: 100%;
    padding: 18px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

.dd-map {
    width: 100%;
    height: 260px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    overflow: hidden;
}

.dd-last-point {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.dd-queue-note {
    font-size: 12.5px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
}

/* Leaflet marker (bus emoji pin) */
.vs-bus-marker-inner {
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    background: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary);
}

/* Status badges (bus status / trip status / live-tracking status) */
.bt-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
}

.bt-status-active,
.bt-status-completed {
    background: #eefdf3;
    color: #15803d;
}

.bt-status-inactive,
.bt-status-cancelled {
    background: #f3f4f6;
    color: #6b7280;
}

.bt-status-maintenance {
    background: #fff7ed;
    color: #c2410c;
}

.bt-live-live {
    background: #eefdf3;
    color: #15803d;
}

.bt-live-stale {
    background: #fefce8;
    color: #a16207;
}

.bt-live-offline {
    background: #f3f4f6;
    color: #6b7280;
}
