/* 
 * EV Smart Charging & Routing System Styles 
 * Premium automotive theme with glassmorphism
 */

:root {
    --ev-bg: rgba(255, 255, 255, 0.98);
    --ev-accent: #00d4d8; /* Electric Cyan */
    --ev-accent-rgb: 0, 212, 216;
    --ev-text: #333333;
    --ev-text-muted: #666666;
    --ev-border: rgba(0, 0, 0, 0.1);
    --ev-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --ev-surface: #ffffff;
}

/* Sticky Bar - Normal State (In Flow) */
.ev-sticky-bar {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    z-index: 10000;
    background: var(--ev-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ev-border);
    border-radius: 16px;
    padding: 15px 25px;
    box-shadow: var(--ev-shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
}

/* Sticky Class (When scrolling) */
.ev-sticky-bar.is-sticky {
    position: fixed;
    top: 80px; /* Below header */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
}

/* Collapsed State (Mobile & Scroll) */
.ev-sticky-bar.collapsed {
    position: fixed;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    top: 30px; /* Small icon position */
    left: calc(100% - 45px);
    transform: translateX(-100%);
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
}

.ev-sticky-bar.collapsed:hover {
    box-shadow: 0 0 20px rgba(var(--ev-accent-rgb), 0.4);
    transform: translateX(-100%) scale(1.05);
}

/* Content visibility during collapse */
.ev-bar-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    transition: opacity 0.3s;
}

.ev-sticky-bar.collapsed .ev-bar-content {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

/* Collapsed Icon */
.ev-collapsed-icon {
    display: none;
    font-size: 24px;
    color: var(--ev-accent);
    text-shadow: 0 0 10px rgba(var(--ev-accent-rgb), 0.5);
    animation: ev-pulse 2s infinite;
}

.ev-sticky-bar.collapsed .ev-collapsed-icon {
    display: block;
}

@keyframes ev-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Elements */
.ev-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ev-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.ev-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.ev-select, .ev-input {
    background: #f0f2f5;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: #333;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.ev-select:focus, .ev-input:focus {
    border-color: var(--ev-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--ev-accent-rgb), 0.15);
}

.ev-select option {
    background: #fff;
    color: #333;
}

.ev-input {
    width: 160px;
}

.ev-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ev-input-wrapper .ev-input {
    padding-right: 90px;
}

.ev-input-wrapper .ev-percent-sign {
    position: absolute;
    right: 10px;
    color: #666;
    font-size: 13px;
    pointer-events: none;
    font-weight: 600;
    display: flex;
    gap: 4px;
}

.kalan-sarj-text {
    display: inline;
}

.ev-btn {
    background: var(--ev-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.ev-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--ev-accent-rgb), 0.4);
}

/* Modern Switch / Toggle */
.ev-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.ev-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.ev-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

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

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

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ev-sticky-bar {
        padding: 10px 12px;
        top: 10px;
        border-radius: 12px;
        gap: 8px;
    }
    
    .ev-bar-content {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ev-title {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 13px;
        order: -1;
        margin-bottom: -2px;
    }
    
    .ev-inputs {
        gap: 6px;
        flex: 1;
        min-width: 0;
    }
    
    .ev-select {
        flex: 2;
        font-size: 11px;
        padding: 8px 6px;
        max-width: none;
        min-width: 0;
    }
    
    .ev-input {
        flex: 1;
        width: 50px;
        font-size: 11px;
        padding: 8px 4px;
        min-width: 0;
    }

    .ev-input-wrapper .ev-input {
        padding-right: 16px;
    }

    .ev-input-wrapper .ev-percent-sign {
        right: 4px;
        font-size: 11px;
    }

    .kalan-sarj-text {
        display: none;
    }
    
    .ev-btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    .btn-glass {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Map Page Specifics */
#ev-map-container {
    width: 100%;
    height: 100vh;
    background: #f8f9fa;
}

.filter-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    width: 100%;
    scrollbar-width: none; /* Hide scrollbar for cleaner look */
    pointer-events: auto;
    justify-content: center;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.filter-chip:hover {
    background: #ffffff;
    border-color: var(--ev-accent);
    transform: translateY(-2px);
    transition: all 0.2s;
}

.filter-chip.active {
    background: var(--ev-accent) !important;
    color: #000 !important;
    border-color: #00b8bb !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 15px rgba(0, 212, 216, 0.4) !important;
    transform: scale(1.05) !important;
    z-index: 2;
}

/* Bottom Sheet */
/* Bottom Sheet - Compact Floating Card */
.ev-bottom-sheet {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 120%); /* Gizli konum: aşağıda */
    width: 92%;
    max-width: 500px;
    max-height: 65vh; 
    min-height: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 24px;
    z-index: 200000;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    color: #333;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.3);
}

.ev-bottom-sheet.active {
    transform: translate(-50%, 0); /* Görünür konum */
}

#sheet-content {
    overflow-y: auto;
    flex: 1;
    padding-right: 5px; /* space for scroll-bar if needed */
}

/* Custom scrollbar for sheet content */
#sheet-content::-webkit-scrollbar {
    width: 4px;
}
#sheet-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
}

.ev-handle {
    width: 40px;
    height: 4px;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    margin: -10px auto 20px;
}

.sheet-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 100;
}

.sheet-close-btn:hover {
    background: rgba(0,0,0,0.1);
    transform: rotate(90deg);
}

/* Stack buttons on small screens */
@media (max-width: 400px) {
    .ev-bottom-sheet .ev-btn-container {
        grid-template-columns: 1fr !important;
    }
}

/* Route Panel (Legacy) */
.route-panel {
    position: absolute;
    top: 80px;
    right: 20px;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    padding: 20px;
    z-index: 2000;
    color: #333;
    display: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.route-panel.active { display: block; animation: slideInRight 0.3s ease; }

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.route-input-group {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.route-input-group input {
    background: transparent;
    border: none;
    color: #333;
    font-size: 13px;
    width: 100%;
    outline: none;
}

/* ============================================================
   ROUTE PLANNER PANEL (Slide-in Sidebar)
   ============================================================ */
.route-planner-panel {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid rgba(0,0,0,0.1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 200000;
    transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #333;
}

.route-planner-panel.active {
    right: 0;
}

/* Panel Header */
.rp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    flex-shrink: 0;
}

.rp-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rp-title i {
    font-size: 14px;
    opacity: 0.9;
}

.rp-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s;
}

.rp-close-btn:hover {
    background: rgba(255,255,255,0.35);
}

/* Panel Body */
.rp-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.rp-body::-webkit-scrollbar { width: 4px; }
.rp-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }

/* Input Groups */
.rp-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f2f5;
    border: 1.5px solid #eee;
    border-radius: 12px;
    padding: 12px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rp-input-group:focus-within {
    border-color: var(--ev-accent);
    box-shadow: 0 0 0 3px rgba(0,212,216,0.15);
    background: #fff;
}

.rp-input-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.rp-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.rp-input::placeholder {
    color: #adb5bd;
    font-size: 13px;
}

.rp-input[readonly] {
    color: #6c757d;
    cursor: default;
}

/* Connector between inputs */
.rp-connector {
    text-align: center;
    padding: 4px 0;
    color: #ced4da;
    font-size: 14px;
    margin: 4px 0;
    margin-left: 14px;
}

/* ---- Route Summary Card ---- */
.route-summary-header {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.route-summary-stat {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.route-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--ev-accent);
    line-height: 1.1;
}

.route-stat-label {
    font-size: 10px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 600;
}

/* Badge */
.route-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.route-badge-ok {
    background: rgba(40,167,69,0.1);
    color: #1a7a34;
    border: 1px solid rgba(40,167,69,0.25);
}

.route-badge-warn {
    background: rgba(255,193,7,0.12);
    color: #856404;
    border: 1px solid rgba(255,193,7,0.3);
}

/* Stops List */
.route-stops-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.route-stop-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: #333;
}

.route-stop-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff9500;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.charge-recommendation {
    background: rgba(0, 212, 216, 0.08);
    border: 1px dashed rgba(0, 212, 216, 0.3);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    color: #008183;
    width: 100%;
    box-sizing: border-box;
}

.charge-recommendation b {
    color: #00d4d8;
    font-size: 13px;
}

/* Error State */
.route-error {
    background: rgba(220,53,69,0.08);
    border: 1px solid rgba(220,53,69,0.2);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: #842029;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile — Bottom Sheet Davranışı */
@media (max-width: 480px) {
    .route-planner-panel {
        width: 100%;
        right: 0;              /* Yatay pozisyon sabit */
        top: auto;
        bottom: 0;
        height: 85vh;
        border-left: none;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        transform: translateY(100%);   /* Gizli: aşağıda */
        transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    }

    .route-planner-panel.active {
        transform: translateY(0);      /* Görünür: yukarı kayar */
    }

    .route-btn-text {
        display: none;
    }
}

/* Tooltip */
.leaflet-tooltip-pane .tr-tooltip {
    background: #ffffff !important;
    border: 1px solid var(--ev-accent) !important;
    color: #333 !important;
    border-radius: 8px !important;
    padding: 8px !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5) !important;
    opacity: 1 !important;
}

/* Routing Machine Hide Default */
.leaflet-routing-container { display: none !important; }

/* Marker Glow */
.marker-glow { animation: markerPulse 2s infinite; }
@keyframes markerPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 216, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 212, 216, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 216, 0); }
}
/* Station Markers */
.custom-div-icon {
    background: transparent;
    border: none;
}

.tr-station-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.tr-station-marker:hover {
    transform: scale(1.3) rotate(15deg);
    z-index: 1000 !important;
}

/* ============================================================
   AI ASSISTANT PANEL (Premium Glassmorphism)
   ============================================================ */
.ai-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    height: 500px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 200000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-panel.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.ai-header {
    background: linear-gradient(135deg, rgba(0, 212, 216, 0.9) 0%, rgba(0, 123, 255, 0.9) 100%);
    padding: 16px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ai-title {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.ai-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
    overflow: hidden;
}

.ai-chat-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 5px;
}

.ai-chat-container::-webkit-scrollbar { width: 4px; }
.ai-chat-container::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }

.ai-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.5;
    position: relative;
    animation: ai-msg-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ai-msg-pop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ai-message.bot {
    align-self: flex-start;
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.ai-message.user {
    align-self: flex-end;
    background: var(--ev-accent);
    color: #000;
    font-weight: 600;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 212, 216, 0.2);
}

.ai-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.ai-quick-actions button {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #333;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-quick-actions button:hover {
    background: #fff;
    border-color: var(--ev-accent);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ai-input-area {
    display: flex;
    gap: 10px;
    padding-top: 5px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.ai-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.ai-input-area input:focus {
    background: #fff;
    border-color: var(--ev-accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 216, 0.15);
}

.ai-input-area button {
    width: 44px;
    height: 44px;
    background: var(--ev-accent);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-input-area button:hover {
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 5px 15px rgba(0, 212, 216, 0.4);
}

.ai-input-area button:active {
    transform: scale(0.95);
}

/* Mic Button Styling */
.ai-mic-btn {
    background: #ff2d55 !important;
    color: #fff !important;
}

.ai-mic-btn.listening {
    animation: mic-pulse 1.5s infinite;
    background: #ff3b30 !important;
}

@keyframes mic-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(255, 45, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .ai-panel {
        width: calc(100% - 30px);
        height: 60vh;
        bottom: 15px;
        right: 15px;
        left: 15px;
    }
}

/* Friend Marker Animation */
.friend-marker div {
    animation: friendPulse 1.5s infinite;
}

@keyframes friendPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 15px rgba(255, 45, 85, 0); transform: scale(1.1); }
    100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); transform: scale(1); }
}

/* Status History List */
#status-updates-list div {
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #ddd;
    margin-bottom: 5px;
}

/* Favorite Highlight */
.tr-station-marker.is-fav {
    border: 2px solid #ff2d55 !important;
    box-shadow: 0 0 15px rgba(255, 45, 85, 0.4) !important;
}

/* Live Share Button Active State */
#live-share-btn.sharing {
    background: rgba(255, 45, 85, 0.1) !important;
    border-color: rgba(255, 45, 85, 0.3) !important;
    color: #ff2d55 !important;
}

.tr-station-marker i {
    font-size: 10px;
}

/* Install Help Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.install-help-content {
    background: #1a202c;
    border: 1px solid var(--ev-accent);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.modal-overlay.active .install-help-content {
    transform: translateY(0);
}

.install-steps {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step:last-child {
    margin-bottom: 0;
}

.step-num {
    background: var(--ev-accent);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.step p {
    margin: 0 !important;
    font-size: 0.95rem;
    color: white !important;
    line-height: 1.4;
}

/* En Yakın İstasyonlar Kutucukları */
.nearest-scroller-container {
    position: fixed;
    bottom: 25px;
    left: 0;
    width: 100%;
    z-index: 100000;
    display: none;
    padding: 0 15px;
    box-sizing: border-box;
}

.nearest-scroller {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 5px;
    scrollbar-width: none; /* Firefox */
}

.nearest-scroller::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.nearest-card {
    min-width: 160px;
    background: #fdfaf0;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid rgba(0, 212, 216, 0.3);
    cursor: pointer;
    flex-shrink: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s;
}

.nearest-card:hover {
    transform: translateY(-5px);
}

.nc-brand { font-weight: 800; font-size: 15px; color: #00d4d8; }
.nc-dist { font-size: 11px; font-weight: 700; color: #555; background: rgba(0,0,0,0.06); padding: 3px 8px; border-radius: 8px; align-self: flex-start; }
.nc-power { font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; margin-top: 4px; }
.nc-close {
    position: absolute;
    top: -40px;
    right: 20px;
    background: #fff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: #333;
    font-size: 16px;
    border: none;
    cursor: pointer;
    z-index: 100001;
}
