:root {
    --primary-bg: #141414;
    --secondary-bg: #1e1e1e;
    --accent-yellow: #ffcc00;
    --text-light: #f5f5f5;
    --text-muted: #aaa;
    --border-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --gradient-overlay: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(30, 30, 30, 0.8));
}

html {
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #141414, 0 0 0 0.25rem #d4af35;
    border-color: #d4af35;
}

html {
    position: relative;
    min-height: 100%;
}




/* Gold hover effect on dropdown */
.nav-item.dropdown:hover .nav-link,
.nav-item.dropdown .nav-link:hover,
.dropdown-menu .dropdown-item:hover {
    color: #d4af37 !important;
    /* Gold color */
    background-color: transparent;
    /* Keep background dark */
}

.nav-item.dropdown:hover .fa-user-circle {
    color: #d4af37 !important;
}

.form-select {
    background-color: #2b2b2b;
    color: var(--accent-yellow, #d4af37);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select:focus {
    background-color: #323232;
    color: var(--accent-yellow, #f8dc75);
    border-color: var(--accent-yellow, #d4af37);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.15);
}

.form-select option {
    background-color: #2b2b2b;
    color: var(--accent-yellow, #d4af37);
}

.dropdown-menu {
    background-color: #2b2b2b;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.dropdown-menu .dropdown-item {
    color: var(--accent-yellow, #d4af37);
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #3a3a3a;
    color: var(--accent-yellow, #f8dc75);
}

/* Navigation Styles */
.navbar {
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    /* position: absolute; */
    z-index: 1050;
    /* Higher than most Bootstrap elements */
}

.navbar.scrolled {
    background: rgba(20, 20, 20, 0.98) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-yellow) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-yellow);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Notification toasts */
.notification-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 2050;
    pointer-events: none;
}

.notification-toast {
    min-width: 280px;
    max-width: 360px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    padding: 0.9rem 1rem 0.9rem 1.1rem;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.notification-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-toast.hiding {
    opacity: 0;
    transform: translateY(-10px);
}

.notification-toast::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 0;
}

.notification-toast .notification-icon {
    font-size: 1.5rem;
    margin-top: 0.1rem;
    position: relative;
    z-index: 1;
}

.notification-toast .notification-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.notification-toast .notification-title {
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.15rem;
}

.notification-toast .notification-message {
    font-size: 0.95rem;
    color: rgba(245, 245, 245, 0.85);
}

.notification-toast .notification-close {
    border: none;
    background: transparent;
    color: rgba(245, 245, 245, 0.6);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.1rem;
    margin-left: 0.25rem;
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.notification-toast .notification-close:hover {
    color: rgba(245, 245, 245, 0.95);
    transform: scale(1.05);
}

.notification-toast.notification-success {
    border-left: 4px solid #4ade80;
}

.notification-toast.notification-error {
    border-left: 4px solid #f87171;
}

.notification-toast.notification-warning {
    border-left: 4px solid #facc15;
}

.notification-toast.notification-info {
    border-left: 4px solid #60a5fa;
}

.notification-toast.notification-success .notification-icon {
    color: #4ade80;
}

.notification-toast.notification-error .notification-icon {
    color: #f87171;
}

.notification-toast.notification-warning .notification-icon {
    color: #facc15;
}

.notification-toast.notification-info .notification-icon {
    color: #60a5fa;
}

@media (max-width: 575.98px) {
    .notification-container {
        left: 0.75rem;
        right: 0.75rem;
    }

    .notification-toast {
        width: 100%;
        max-width: none;
    }
}

.global-popup-modal .modal-content {
    background: #161819;
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.global-popup-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    gap: 0.5rem;
}

.global-popup-modal .modal-body {
    color: rgba(245, 245, 245, 0.9);
    font-size: 1rem;
}

.global-popup-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.global-popup-modal .btn-close {
    filter: invert(1) grayscale(100%);
}

.global-popup-modal .modal-header.confirm-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.05));
}
/* Driver Dashboard & Tracking Styles */
:root {
    --gold-primary: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --surface-deep: #0f172a;
}

/* Glowing Blue Dot Styles */
.glowing-dot-container {
    position: relative;
    width: 32px;
    height: 32px;
}

.glowing-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #4285F4;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.glowing-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: rgba(66, 133, 244, 0.4);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}
.global-popup-modal .modal-header.confirm-error {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.25), rgba(127, 29, 29, 0.05));
}

.global-popup-modal .modal-header.confirm-warning {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.25), rgba(161, 98, 7, 0.05));
}

.global-popup-modal .modal-header.confirm-info {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(30, 64, 175, 0.05));
}

.btn-popup-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: #0d1a10;
}

.btn-popup-error {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border: none;
    color: #fff5f5;
}

.btn-popup-warning {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    border: none;
    color: #1f1500;
}

.btn-popup-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #f8fbff;
}

.btn-popup-success:hover,
.btn-popup-error:hover,
.btn-popup-warning:hover,
.btn-popup-info:hover {
    opacity: 0.92;
    color: inherit;
}

.global-popup-modal .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(245, 245, 245, 0.8);
}

.global-popup-modal .btn-outline-light:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}