/* SARAJEVO TAXI - VOZAČ STILOVI */

:root {
    --bg-primary: #0B0F19;      /* Duboka svemirska crna */
    --bg-secondary: #131A2B;    /* Obsidian plava/tamno siva */
    --bg-card: rgba(19, 26, 43, 0.75);
    --primary: #FFC800;         /* Cyber Yellow */
    --primary-hover: #E6B400;
    --primary-glow: rgba(255, 200, 0, 0.25);
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    
    --red: #EF4444;
    --red-hover: #DC2626;
    --green: #10B981;
    --blue: #3B82F6;
    
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Osnovni Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #030712;
    color: var(--text-main);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    overscroll-behavior: contain; /* Sprječava pull-to-refresh i bounce efekte na mobilnim WebView-ima */
}

/* Kontejner aplikacije */
#app-container {
    width: 100%;
    height: 100%;
    max-width: 480px;
    max-height: 960px;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
    overscroll-behavior: contain; /* Sprječava chaining na viewport */
}

@media (min-width: 481px) {
    #app-container {
        border-radius: 32px;
        border: 8px solid #1E293B;
        height: 85vh;
    }
}

/* Ekran (Screen) Menadžer */
.screen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    flex-direction: column;
    z-index: 10;
    overscroll-behavior: contain; /* Sprječava skrolovanje van ovog ekrana */
}

.screen.active {
    display: flex;
    animation: fadeIn var(--transition);
}

.scrollable-screen.active {
    display: block !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}

/* Glassmorphism kartica */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: var(--card-shadow);
}

/* 1. AUTENTIFIKACIJA & ONBOARDING */
#auth-screen {
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: radial-gradient(circle at top, var(--bg-secondary) 0%, var(--bg-primary) 70%);
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    text-align: center;
}

.brand-logo {
    margin-bottom: 24px;
}

.brand-logo svg {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
    margin-bottom: 8px;
}

.yellow-glow {
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    from { filter: drop-shadow(0 0 2px rgba(255, 200, 0, 0.4)); }
    to { filter: drop-shadow(0 0 12px rgba(255, 200, 0, 0.8)); }
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 1px;
    color: var(--text-main);
}

h1 span {
    color: var(--primary);
}

.brand-logo p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-danger {
    background-color: var(--red);
    color: #fff;
}

.btn-danger:hover {
    background-color: var(--red-hover);
}

.btn-block {
    width: 100%;
}

.flex-btn {
    flex: 1;
}

/* Formular */
.auth-form {
    text-align: left;
    margin-top: 10px;
}

.auth-form h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    margin-bottom: 16px;
}

.input-group {
    margin-bottom: 12px;
}

.input-group-row {
    display: flex;
    gap: 10px;
}

.input-group-row .input-group {
    flex: 1;
}

.input-group label, .file-upload label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 10px 14px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 13px;
    transition: var(--transition);
}

.input-group select option {
    background-color: var(--bg-secondary);
    color: var(--text-main);
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.hidden {
    display: none !important;
}

.auth-toggle {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 14px;
}

.auth-toggle a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Upload sekcija */
.upload-section {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 14px;
    margin: 16px 0;
}

.upload-section h3 {
    font-size: 12px;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

.file-upload {
    margin-bottom: 8px;
}

.file-upload input[type="file"] {
    display: block;
    width: 100%;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 2. EKRANI ČEKANJA (PENDING/REJECTED) */
#pending-screen, #rejected-screen {
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: radial-gradient(circle, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.status-waiting-card {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-waiting-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 8px;
}

.status-waiting-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.waiting-icon svg {
    color: var(--primary);
}

.orange-glow { filter: drop-shadow(0 0 10px rgba(255,200,0,0.4)); }
.red-glow { filter: drop-shadow(0 0 10px rgba(239,68,68,0.4)); }

.waiting-details {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
}

.warning-badge { background-color: var(--primary); color: #000; }
.success-badge { background-color: var(--green); color: #fff; }
.danger-badge { background-color: var(--red); color: #fff; }

.rejection-reason-box {
    width: 100%;
    background-color: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 12px;
    text-align: left;
    margin-bottom: 24px;
    font-size: 13px;
}

.rejection-reason-box strong {
    color: var(--red);
    display: block;
    margin-bottom: 4px;
}

/* 3. KONTROLNA TABLA (DASHBOARD) */
#dashboard-screen {
    position: relative;
}

#driver-map-wrap {
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
}

#driver-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-style-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(11, 15, 25, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
}

.map-style-toggle:active {
    transform: scale(0.88);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}


#driver-header {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.driver-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

#driver-display-name {
    font-weight: 600;
    font-size: 14px;
}

/* Prekidač (Switch) dugme */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid var(--border-color);
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--green);
    border-color: rgba(16, 185, 129, 0.3);
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: white;
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.logout-floating-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 500;
    transition: var(--transition);
}

.logout-floating-btn:hover {
    color: var(--red);
}

/* 4. MODAL DIJALOG PONUDE VOŽNJE */
#offer-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.hidden-modal {
    display: none !important;
}

.offer-card {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-color: rgba(255, 200, 0, 0.15);
    background: rgba(19, 26, 43, 0.95);
    animation: slideUpModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpModal {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.offer-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    margin-top: 16px;
    margin-bottom: 20px;
}

/* Kružni tajmer */
.pulse-timer-container {
    position: relative;
    width: 80px;
    height: 80px;
}

.timer-svg {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(255,255,255,0.05);
    stroke-width: 2.8;
}

.circle-timer {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* Lokacije na ponudi */
.offer-locations-box {
    width: 100%;
    background-color: rgba(255,255,255,0.01);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.loc-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.loc-text {
    display: flex;
    flex-direction: column;
}

.loc-text .lbl {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.loc-text .adr {
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px;
}

.loc-connector {
    width: 2px;
    height: 16px;
    background-color: var(--border-color);
    margin-left: 4px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.offer-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* 5. AKTIVNA VOŽNJA ZA VOZAČA */
#active-ride-screen {
    position: relative;
}

#active-driver-map {
    flex: 1;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Prikaz putnika */
.passenger-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.call-action-btn {
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--green);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.call-action-btn:hover {
    background-color: var(--green);
    color: #fff;
}

.navigation-addresses {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.navigation-addresses p {
    margin-bottom: 6px;
}

.ride-flow-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Donji panel (Bottom Sheet) */
.bottom-sheet {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    padding: 8px 20px 24px 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
    z-index: 500;
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70%;
    transition: var(--transition);
}

.drag-handle {
    width: 40px;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    margin: 4px auto 16px auto;
}

/* 6. PANEL ZA SIMULACIJU LOKACIJE */
#simulation-panel {
    position: absolute;
    bottom: 80px;
    left: 16px;
    right: 16px;
    background: rgba(19, 26, 43, 0.9);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 200, 0, 0.2);
    border-radius: 16px;
    padding: 12px;
    z-index: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.sim-header {
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-align: center;
}

.sim-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sim-btn {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 11px;
    padding: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.sim-btn:hover {
    background-color: rgba(255, 200, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.sim-coord-info {
    font-size: 9px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* Custom Tamna Karta */
.leaflet-container, .gm-style {
    background: #0B0F19 !important;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 64px;
    background: rgba(19, 26, 43, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav.hidden-nav {
    transform: translate(-50%, 100%);
}

.bottom-nav .nav-item {
    background: none;
    border: none;
    outline: none;
    color: #9CA3AF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    flex: 1;
    height: 100%;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.bottom-nav .nav-item svg {
    transition: transform 0.2s ease;
}

.bottom-nav .nav-item:hover {
    color: #FFF;
}

.bottom-nav .nav-item.active {
    color: var(--primary);
    font-weight: 600;
}

.bottom-nav .nav-item.active svg {
    transform: scale(1.1);
}

/* Prilagođavanje ekrana */
#dashboard-screen {
    padding-bottom: 64px;
}
#stats-screen {
    padding-bottom: 80px;
    overflow-y: auto;
    height: 100%;
}
#settings-screen {
    padding-bottom: 80px;
    overflow-y: auto;
    height: 100%;
}

/* Komentari korisnika u statistici */
.comment-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    text-align: left;
    margin-bottom: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.comment-stars {
    color: var(--primary);
    font-size: 12px;
}

.comment-date {
    font-size: 10px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.4;
    font-style: italic;
}

/* Stilovi za bedževe dostignuća */
.badge-bronze {
    background: rgba(205, 127, 50, 0.1) !important;
    color: #CD7F32 !important;
    border: 1px solid rgba(205, 127, 50, 0.2) !important;
}
.badge-silver {
    background: rgba(192, 192, 192, 0.1) !important;
    color: #E5E7EB !important;
    border: 1px solid rgba(192, 192, 192, 0.2) !important;
}
.badge-gold {
    background: rgba(255, 200, 0, 0.1) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(255, 200, 0, 0.2) !important;
    box-shadow: 0 0 8px rgba(255, 200, 0, 0.1);
}
.badge-super {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #60A5FA !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}
.badge-legend {
    background: rgba(167, 139, 250, 0.1) !important;
    color: #C084FC !important;
    border: 1px solid rgba(167, 139, 250, 0.2) !important;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.2);
}

/* Kompliment čipovi */
.compliment-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9CA3AF;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.compliment-chip.active {
    background: rgba(255, 200, 0, 0.12);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 200, 0, 0.15);
}

/* ============================================================
   3D NAVIGACIJSKI BANER (turn-by-turn upute)
   ============================================================ */

.nav-instruction-banner {
    position: absolute;
    top: 16px;
    left: 12px;
    right: 12px;
    z-index: 600;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 200, 0, 0.25);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,200,0,0.05);
    transition: all 0.3s ease;
}

.nav-arrow-icon {
    font-size: 32px;
    line-height: 1;
    min-width: 40px;
    text-align: center;
    filter: drop-shadow(0 0 6px rgba(255, 200, 0, 0.4));
}

.nav-instruction-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-instruction-text span:first-child {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-instruction-text span:last-child {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

/* Mapbox GL mapa mora biti full screen unutar svog div-a */
#active-driver-map .mapboxgl-canvas {
    outline: none;
}

/* Toggle dugme za dark/light stil mape */
.nav-map-style-toggle {
    position: absolute;
    top: 90px;       /* ispod instruction banera */
    right: 14px;
    z-index: 700;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(11, 15, 25, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
}

.nav-map-style-toggle:active {
    transform: scale(0.88);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Navigacijska strelica na DASHBOARD mapi vozača */
.dash-arrow-wrapper {
    position: relative;
    width: 50px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-arrow-pulse {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 200, 0, 0.18);
    border: 1.5px solid rgba(255, 200, 0, 0.45);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: arrowPulse 2s ease-out infinite;
}

/* Navigacijska strelica na NAVIGACIJSKOJ mapi (Mapbox) */

.nav-arrow-wrapper {
    position: relative;
    width: 50px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow-pulse {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 200, 0, 0.2);
    border: 1.5px solid rgba(255, 200, 0, 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: arrowPulse 2s ease-out infinite;
}

@keyframes arrowPulse {
    0%   { transform: translate(-50%, -50%) scale(0.7); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
}

.nav-arrow-svg {
    position: relative;
    z-index: 2;
    transition: transform 0.35s ease;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 10px rgba(255, 200, 0, 0.3));
}

/* STILOVI ZA IN-APP CHAT (VOZAČ) */
.chat-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.2);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
    font-size: 20px;
}

.chat-action-btn:hover {
    background-color: var(--primary);
    color: #000;
}

.chat-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #EF4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #131A2B;
}

.chat-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.chat-card-container {
    width: 100%;
    max-width: 440px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: rgba(19, 26, 43, 0.95);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.chat-back-btn {
    background: none;
    border: none;
    color: #FFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    margin-right: 12px;
    transition: background 0.2s ease;
}

.chat-back-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.chat-driver-info {
    display: flex;
    flex-direction: column;
}

.chat-driver-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #FFF;
}

.chat-driver-status {
    font-size: 11px;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-driver-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
}

.chat-message-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.4;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    animation: bubbleAppear 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes bubbleAppear {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-message-bubble.sender-me {
    align-self: flex-end;
    background: var(--primary);
    color: #0B0F19;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-message-bubble.sender-other {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: #FFF;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.chat-message-time {
    font-size: 9px;
    margin-top: 4px;
    align-self: flex-end;
    opacity: 0.6;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
    align-items: center;
}

#chat-message-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    color: #FFF;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s ease;
}

#chat-message-input:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    background: var(--primary);
    border: none;
    color: #0B0F19;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.chat-send-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

/* STILOVI ZA JAVNU STATISTIKU */
.auth-stats-card {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.auth-stat-icon {
    font-size: 16px;
    margin-bottom: 4px;
}

.auth-stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
}

.auth-stat-label {
    font-size: 10px;
    color: #9CA3AF;
}

/* Recenter Button */
.nav-recenter-btn {
    position: absolute;
    top: 142px;       /* ispod style toggla */
    right: 14px;
    z-index: 700;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: var(--accent-color);
    color: var(--bg-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.nav-recenter-btn:active {
    transform: scale(0.95);
}

/* Accordion Settings Sections */
.accordion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: left;
    overflow: hidden;
    transition: all 0.25s ease;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    user-select: none;
    background: transparent;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-title {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accordion-arrow {
    font-size: 11px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    display: inline-block;
}

.accordion-content {
    padding: 0 16px 16px 16px;
    display: block;
}

/* Collapsed state */
.accordion-item.collapsed .accordion-content {
    display: none;
}

.accordion-item.collapsed .accordion-arrow {
    transform: rotate(0deg);
}

.accordion-item.collapsed .accordion-arrow {
    transform: rotate(-90deg);
}

/* =============================================================================
   IN-APP TOAST PUSH NOTIFICATIONS
   ============================================================================= */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.toast-notification {
    background: rgba(19, 26, 43, 0.9);
    border: 1px solid rgba(255, 200, 0, 0.25); /* Yellow/Orange accent for drivers */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: toastSlideDown 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-notification.hide {
    animation: toastSlideUp 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

.toast-notification:hover {
    transform: scale(1.02);
    border-color: rgba(255, 200, 0, 0.5);
    box-shadow: 0 12px 35px rgba(255, 200, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.toast-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 200, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    color: #FFF;
    margin: 0;
}

.toast-desc {
    font-size: 11.5px;
    color: #9CA3AF;
    margin: 0;
    line-height: 1.3;
}

.toast-close-btn {
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    outline: none;
}

.toast-close-btn:hover {
    color: var(--red);
}

@keyframes toastSlideDown {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
}

