/* ========================================
   BUS PILOT - CLEAN UI STYLES
   UI Pulita e Professionale
   VERGEN ICT TECHNOLOGY
   ======================================== */

/* ========================================
   HIDE ROUTE SELECTOR ON MAP PAGE
   La lista percorsi è nella pagina Percorsi
   ======================================== */
.control-panel .select-container {
    display: none !important;
}

/* ========================================
   COMPACT STATUS BAR
   ======================================== */
.control-panel {
    padding: 0.75rem 1rem !important;
    background: var(--glass-bg) !important;
    border-radius: 16px !important;
    margin-bottom: 1rem !important;
}

/* Status Row - Compact inline layout */
.control-panel .status-container {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    margin-bottom: 0;
}

.control-panel .status-container .status-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.control-panel .status-badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* Hide buttons on map page - they're replaced by FAB */
.control-panel #start-tracking,
.control-panel #stop-tracking,
.control-panel #toggle-follow,
.control-panel #test-audio,
.control-panel #view-documents {
    display: none !important;
}

/* Distance info compact */
.control-panel .distance-info {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 200, 83, 0.1);
    border-radius: 50px;
    margin-top: 0.75rem;
}

.control-panel .distance-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.control-panel .distance-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-green);
}

/* ========================================
   CURRENT ROUTE DISPLAY
   ======================================== */
.current-route-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.15) 0%, rgba(0, 150, 36, 0.15) 100%);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.current-route-bar .route-icon {
    font-size: 1.5rem;
}

.current-route-bar .route-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.current-route-bar .route-change-btn {
    padding: 0.4rem 0.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.current-route-bar .route-change-btn:hover {
    background: var(--bg-tertiary);
    color: var(--accent-green);
}

/* Hide when no route selected */
.current-route-bar.hidden {
    display: none;
}

/* ========================================
   NAVIGATION PANEL COMPACT
   ======================================== */
.navigation-panel {
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.navigation-header {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.navigation-instruction {
    padding: 0.5rem !important;
}

/* ========================================
   BUS STOPS PANEL COMPACT
   ======================================== */
.bus-stops-panel {
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

/* ========================================
   MAP FULLSCREEN FEEL
   ======================================== */
.map-container {
    border-radius: 0 !important;
    margin: -1rem !important;
    width: calc(100% + 2rem) !important;
    height: 55vh !important;
    min-height: 350px;
}

/* ========================================
   QUICK ACTIONS BAR
   ======================================== */
.quick-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    white-space: nowrap;
}

.quick-action-btn:hover,
.quick-action-btn.active {
    background: var(--bg-tertiary);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.quick-action-btn .action-icon {
    font-size: 1.25rem;
}

/* ========================================
   LIVE STATS STRIP
   ======================================== */
.live-stats-strip {
    display: flex;
    justify-content: space-around;
    padding: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.live-stat {
    text-align: center;
}

.live-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.live-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   EMPTY STATE FOR ROUTES PAGE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.empty-hint {
    font-size: 0.8rem !important;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 380px) {
    .control-panel {
        padding: 0.5rem 0.75rem !important;
    }

    .control-panel .status-container {
        display: flex !important;
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .map-container {
        height: 45vh !important;
        min-height: 280px;
    }
}

/* ========================================
   TRACKING MODE STYLES
   ======================================== */
.tracking-active .control-panel {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1) 0%, rgba(0, 150, 36, 0.1) 100%) !important;
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.tracking-active .fab {
    animation: fabPulse 2s ease-in-out infinite;
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(0, 200, 83, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(0, 200, 83, 0.7);
    }
}

/* ========================================
   HEADER IMPROVEMENTS
   ======================================== */
.header {
    padding: 0.75rem 0 !important;
    margin-bottom: 0.75rem !important;
}

.header h1 {
    font-size: 1.5rem !important;
}

/* ========================================
   FOOTER HIDE ON MOBILE WITH NAV
   ======================================== */
.footer {
    display: none !important;
}