/* ==================== 
   GLASSMORPHISM DESIGN 
   ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY & BACKGROUND */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    background: radial-gradient(circle at top, #1a1a1a, #000);
    color: #fff;
    padding: 20px;
}

/* CONTAINER */
.app-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* TRACKING PAGE LAYOUT */
.app-container.tracking-page {
    max-width: 100%;
    justify-content: flex-start;
    padding-top: 10px;
}

/* HEADER */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.header p {
    font-size: 14px;
    opacity: 0.7;
}

/* GLASS CARD */
.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: slideUp 0.6s ease;
}

.card h3 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 18px;
}

/* FORM ELEMENTS */
input, select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 14px;
    transition: 0.3s;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus, select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

/* BUTTONS */
button {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

button:active {
    transform: translateY(0);
}

/* ROLE SELECTOR */
.role-selector {
    display: flex;
    gap: 16px;
}

.role-btn {
    flex: 1;
    padding: 24px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    text-align: center;
    color: #fff;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.role-btn span {
    font-size: 40px;
}

.role-btn p {
    font-size: 16px;
    font-weight: 600;
}

.role-btn small {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 4px;
}

.role-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-4px);
}

/* LINKS */
.back-link {
    display: inline-block;
    margin-top: 16px;
    color: rgba(255, 215, 0, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.back-link:hover {
    color: #FFD700;
}

/* MINIMAL INDEX FOOTER */
.mini-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: clamp(10px, 2.5vw, 12px);
    font-weight: 500;
    letter-spacing: 0.2px;
    z-index: 1000;
}

/* UTILITIES */
.hidden {
    display: none !important;
}

/* STATUS & INFO */
.status-info, .driver-controls, .dashboard-info {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-align: center;
}

.status-info p, .dashboard-info {
    font-size: 14px;
}

#statusBadge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    font-weight: 600;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.label {
    opacity: 0.7;
    font-size: 13px;
}

.value {
    font-weight: 600;
    color: #FFD700;
}

/* DRIVER CONTROLS */
.control-btn {
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
    color: #fff;
    margin-bottom: 12px;
}

.control-btn:hover {
    opacity: 0.9;
}

.control-btn.active {
    background: linear-gradient(135deg, #2ED573, #26DE81);
}

#gpsStatus {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
}
.hidden {
  display: none;
}


/* ===========================
   DASHBOARD (ZOMATO-INSPIRED)
   =========================== */

.map-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.leaflet-map {
    height: 350px;
    border-radius: 16px;
}

.tracking-card {
    margin-bottom: 40px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-header h3 {
    text-align: left;
    margin: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 59, 48, 0.15);
    color: #FF3B30;
}

.status-badge.active {
    background: rgba(52, 211, 153, 0.15);
    color: #34D399;
}

.status-badge.inactive {
    background: rgba(255, 59, 48, 0.15);
    color: #FF3B30;
}

.tracking-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    opacity: 0.7;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #FFD700;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
}

/* ANIMATIONS */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .card {
        padding: 20px;
    }

    .header h1 {
        font-size: 20px;
    }

    .role-btn span {
        font-size: 32px;
    }
}
