/* SARAJEVO TAXI - PUTNIK 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);
}

/* GLOBALNA SVJETLA TEMA (LIGHT MODE) */
body.light-theme {
    --bg-primary: #F3F4F6;      /* Svijetlo siva */
    --bg-secondary: #FFFFFF;    /* Čisto bijela */
    --bg-card: rgba(255, 255, 255, 0.85);
    --text-main: #1F2937;       /* Tamno siva za tekst */
    --text-muted: #6B7280;      /* Muted siva za tekst */
    --border-color: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

body.light-theme, body.light-theme html {
    background-color: #E5E7EB;
}

body.light-theme #app-container {
    background-color: var(--bg-primary);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme #home-dashboard-screen {
    background-color: var(--bg-primary);
}

body.light-theme .input-group input, 
body.light-theme .input-group textarea {
    background-color: rgba(0, 0, 0, 0.03);
}

body.light-theme .input-group input:focus, 
body.light-theme .input-group textarea:focus {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 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 koji simulira mobilni uređaj na desktopu */
#app-container {
    width: 100%;
    height: 100%;
    max-width: 480px; /* Maksimalna širina za mobilni prikaz */
    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 */
}

/* Responsive za desktop monitore - simulacija telefona */
@media (min-width: 481px) {
    #app-container {
        border-radius: 32px;
        border: 8px solid #1E293B; /* Debeli okvir za simulaciju telefona */
        height: 85vh;
    }
}

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

.screen.active {
    display: flex; /* Samo aktivni ekran se prikazuje */
    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); }
}

/* ZAJEDNIČKI DIZAJN KARTICA (Glassmorphism) */
.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: 32px 24px;
    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%);
}

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

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

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

.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: 28px;
    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;
}

/* Dugmad i forme */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    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);
    transform: translateY(-1px);
}

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

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

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

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

.btn-block {
    width: 100%;
}

.flex-btn {
    flex: 1;
}

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

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

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

.input-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

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

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 8px var(--primary-glow);
}

.hidden {
    display: none !important;
}

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

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

/* 2. GLAVNI EKRAN (MAPA & SHEET) */
#map-screen {
    position: relative;
}

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

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

/* Toggle dugme za dark/light stil mapa */
.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);
}


/* Korisnički header na mapi */
#user-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; /* Iznad Leaflet mapa */
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

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

.badge {
    background-color: var(--primary);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

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

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

/* 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;
}

/* Panel za pješačku zonu */
.pedestrian-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #FBBF24;
    font-weight: 500;
}
.pedestrian-warning.hidden {
    display: none !important;
}

/* Pretraga lokacija */
.search-section {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.search-inputs {
    display: flex;
    flex-direction: column;
    position: relative;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.green-dot { background-color: var(--green); box-shadow: 0 0 8px var(--green); }
.red-dot { background-color: var(--red); box-shadow: 0 0 8px var(--red); }

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

.search-inputs input {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 14px;
    width: 100%;
    padding: 6px 0;
}

.search-inputs input:focus {
    outline: none;
}

/* Autocomplete lista */
.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    margin-top: 4px;
}

.search-autocomplete li {
    padding: 12px 16px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-autocomplete li:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

/* Detalji rute */
.detail-cards {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-cards .card {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-cards .card .label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.detail-cards .card .val {
    font-size: 14px;
    font-weight: 700;
}

.detail-cards .highlight-card {
    border-color: rgba(255, 200, 0, 0.2);
    background-color: rgba(255, 200, 0, 0.03);
}

.detail-cards .highlight-card .val {
    color: var(--primary);
}

.price-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
}

/* 3. EKRAN ZA SPAJANJE (RADAR) */
#searching-screen {
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: radial-gradient(circle, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

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

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

.searching-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.searching-status-box {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 13px;
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--primary);
}

/* Radar Pulsiranje */
.radar-container {
    width: 140px;
    height: 140px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
}

.pulse-1 { animation: pulseRadar 3s linear infinite; }
.pulse-2 { animation: pulseRadar 3s linear infinite 1s; }
.pulse-3 { animation: pulseRadar 3s linear infinite 2s; }

@keyframes pulseRadar {
    0% { transform: scale(0.3); opacity: 0.8; }
    50% { opacity: 0.4; }
    100% { transform: scale(1.2); opacity: 0; }
}

.car-icon-center {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--primary-glow);
    z-index: 5;
}

.vibrate {
    animation: vibrateAnim 0.3s infinite alternate;
}

@keyframes vibrateAnim {
    from { transform: rotate(-2deg); }
    to { transform: rotate(2deg); }
}

/* 4. EKRAN AKTIVNE VOŽNJE */
#active-ride-screen {
    position: relative;
}

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

.ride-status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
}

.pulsating {
    animation: pulsateDot 1.5s infinite alternate;
}

@keyframes pulsateDot {
    from { box-shadow: 0 0 2px var(--primary); transform: scale(0.9); }
    to { box-shadow: 0 0 8px var(--primary); transform: scale(1.1); }
}

.ride-status-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

/* Profil vozača */
.driver-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: 16px;
    margin-bottom: 20px;
}

.driver-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
}

.driver-meta h3 {
    font-size: 15px;
    font-weight: 600;
}

.driver-meta p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.active-ride-actions {
    display: flex;
    gap: 12px;
}

/* 5. OCJENJIVANJE & RECENZIJA */
#review-screen {
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: radial-gradient(circle, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

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

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

.review-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Zvijezde */
.stars-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.star {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.star.selected {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.star:hover {
    transform: scale(1.15);
}

/* Kvačica Animacija */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--green);
}

.success-checkmark .check-icon::after, 
.success-checkmark .check-icon::before {
    content: '';
    position: absolute;
    background: transparent;
}

.success-checkmark .check-icon .icon-line {
    height: 5px;
    background-color: var(--green);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
    top: 46px;
    left: 19px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.success-checkmark .check-icon .icon-line.line-long {
    top: 38px;
    right: 14px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.success-checkmark .check-icon .icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(16, 185, 129, 0.2);
    box-sizing: content-box;
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: 19px; top: 46px; }
    84% { width: 17px; left: 21px; top: 46px; }
    100% { width: 25px; left: 19px; top: 46px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 14px; top: 38px; }
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 64px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom);
    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: var(--text-muted);
    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);
}

/* Switch & Slider */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    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: #374151;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Prilagođavanje glavnih ekrana da ne upadaju iza navigacije */
#map-screen {
    padding-bottom: 64px;
}
#stats-screen {
    padding-bottom: 80px;
    overflow-y: auto;
    height: 100%;
}
#settings-screen {
    padding-bottom: 80px;
    overflow-y: auto;
    height: 100%;
}

/* JAVNE I REAL-TIME STATISTIKE (PUTNIK) */
.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: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.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: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 2px;
}

/* Lebdeći bedž na mapi */
.map-stats-pill {
    position: absolute;
    top: 72px; /* ispod user-headera */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(19, 26, 43, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none; /* da ne smeta klikanju po mapi ispod */
    font-size: 12px;
    color: #FFF;
    font-weight: 600;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: statsPulse 2s infinite;
    display: inline-block;
}

@keyframes statsPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* 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;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    outline: none;
}

.compliment-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFF;
}

.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);
}

/* 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);
}

/* Prilagođene iglice i pulsirajući efekti na mapi */
.custom-pin {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50%;
    background: rgba(11, 15, 25, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.pin-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid #fff;
}
.green-pin .pin-dot {
    background-color: var(--green);
    box-shadow: 0 0 8px var(--green);
}
.red-pin .pin-dot {
    background-color: var(--red);
    box-shadow: 0 0 8px var(--red);
}

/* Pulsirajući plavi krug za fizicku live lokaciju klijenta */
.pulse-blue-pin {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px !important;
    height: 20px !important;
}
.pulse-blue-dot {
    width: 12px;
    height: 12px;
    background-color: var(--blue);
    border: 2px solid #FFF;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}
.pulse-blue-dot::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    position: absolute;
    top: -12px;
    left: -12px;
    animation: pinPulse 1.8s infinite ease-out;
    opacity: 0;
}

/* Pulsirajući zeleni krug za snapped pickup lokaciju */
.pulse-green-pin {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px !important;
    height: 24px !important;
}
.pulse-green-dot {
    width: 14px;
    height: 14px;
    background-color: var(--green);
    border: 2px solid #FFF;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
}
.pulse-green-dot::after {
    content: '';
    width: 38px;
    height: 38px;
    border: 2px solid var(--green);
    border-radius: 50%;
    position: absolute;
    top: -14px;
    left: -14px;
    animation: pinPulse 1.8s infinite ease-out;
    opacity: 0;
}

@keyframes pinPulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Dugme za zatvaranje recenzije (X) */
.close-review-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: var(--transition);
    outline: none;
}
.close-review-btn:hover {
    color: var(--red);
    transform: scale(1.1);
}


/* ----------------------------------------------------
   SVE ZA WELCOME HOME DASHBOARD (UBER STIL)
---------------------------------------------------- */
#home-dashboard-screen {
    background-color: var(--bg-app);
    overflow-y: auto;
    padding: 0 16px 85px 16px; /* Spacing za donji meni */
    box-sizing: border-box;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.dashboard-scroll-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Banner */
.welcome-banner h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px 0;
}

.welcome-banner p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Search trigger card (Uber style "Where to?") */
.search-trigger-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 18px 24px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-trigger-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 36px rgba(255, 200, 0, 0.12), 0 2px 5px rgba(0, 0, 0, 0.02);
    transform: translateY(-2px);
}

.search-trigger-card:active {
    transform: scale(0.98) translateY(0);
}

.search-trigger-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-icon {
    font-size: 20px;
}

.search-placeholder {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.search-trigger-arrow {
    font-size: 16px;
    color: var(--primary);
}

/* Shortcuts grid */
.shortcuts-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 600;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.shortcut-item:active {
    transform: scale(0.92);
}

.shortcut-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.shortcut-item:hover .shortcut-icon-wrapper {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(255, 200, 0, 0.15);
}

.shortcut-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Nearby drivers status */
.nearby-drivers-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.nearby-drivers-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.nearby-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.nearby-drivers-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Promo Card */
.promo-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 200, 0, 0.1) 0%, var(--bg-secondary) 100%);
    border: 1px solid rgba(255, 199, 0, 0.2);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.02);
    margin-bottom: 12px;
    transition: all 0.25s ease;
}

.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.promo-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px 0;
}

.promo-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    max-width: 80%;
}

.promo-image {
    font-size: 42px;
    line-height: 1;
}

/* Back button u user-header */
.back-dashboard-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin-right: 4px;
    transition: transform 0.2s ease;
}

.back-dashboard-btn:active {
    transform: scale(0.85);
}

/* Preset emoji tipke u modalnom prozoru prečica */
.emoji-preset-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.emoji-preset-btn:hover, .emoji-preset-btn.selected {
    border-color: var(--primary);
    background: rgba(255, 200, 0, 0.1);
    transform: scale(1.1);
}

/* STILOVI ZA IN-APP CHAT (PUTNIK) */
.chat-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--red);
    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 var(--bg-secondary);
}

.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: var(--bg-card);
    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: var(--text-main);
    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: var(--text-main);
}

.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.1);
}

.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(--blue);
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
}

body.light-theme .chat-message-bubble.sender-me {
    background: #2563EB;
}

.chat-message-bubble.sender-other {
    align-self: flex-start;
    background: var(--bg-secondary);
    color: var(--text-main);
    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.15);
    align-items: center;
}

#chat-message-input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text-main);
    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);
}

/* Payment Selector */
.payment-selector-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 12px;
}

.payment-selector-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-options {
    display: flex;
    gap: 12px;
}

.payment-opt-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.payment-opt-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.payment-opt-btn.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

/* Payment Info Box (Uber-style alert) */
.payment-info-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-top: 5px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: rgba(245, 158, 11, 0.05); /* warm gold tint */
    border: 1px dashed rgba(245, 158, 11, 0.25);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.payment-info-box:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.45);
}

.payment-info-box:active {
    transform: scale(0.97);
}

.payment-info-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

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

.payment-info-content h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    transition: color 0.2s ease;
}

.payment-info-content p {
    margin: 0;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.3;
}

.payment-info-arrow {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    transition: transform 0.2s ease;
}

.payment-info-box:hover .payment-info-arrow {
    transform: translateX(3px);
}

/* Modifikatori boja za aktivna stanja kartice */
.payment-info-box.card-active {
    background: rgba(59, 130, 246, 0.05); /* plavi ton za kartice */
    border: 1px dashed rgba(59, 130, 246, 0.25);
}

.payment-info-box.card-active:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.45);
}

.payment-info-box.card-active h4 {
    color: #3B82F6;
}

/* Accordion Settings Sections */
.accordion-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    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); /* default state pointing down or we can make ▼ rotate */
}

/* Toggle rotation if we want or just keep the indicator simple */
.accordion-item.collapsed .accordion-arrow {
    transform: rotate(-90deg);
}

/* Settings Grid Layout */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.settings-grid-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 90px;
    box-sizing: border-box;
    user-select: none;
}

.settings-grid-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.15);
}

.settings-grid-btn:active {
    transform: scale(0.96);
}

/* =============================================================================
   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(0, 132, 255, 0.25);
    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(0, 132, 255, 0.5);
    box-shadow: 0 12px 35px rgba(0, 132, 255, 0.15), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.toast-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 132, 255, 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);
    }
}

