/* Flight Progress Panel - Compact Centered Design */

/* Center the callsign and aircraft type header using flexbox */
#selected_infoblock .highlightedTitle.infoBlockSection {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}

/* Center the div containing callsign */
#selected_infoblock .highlightedTitle > div {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Center the callsign span */
#selected_callsign {
    text-align: center !important;
}

/* Center the icao/aircraft type div */
#selected_icao {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
}

#selected_icao * {
    text-align: center !important;
}

/* Flight progress panel styling */
#flight_progress_panel {
    display: block !important;
    width: 260px !important;
    margin: 8px auto !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    border-radius: 10px !important;
    padding: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
}

/* Header with IATA number and status - centered */
#flight_progress_panel .flight-header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
    text-align: center !important;
}

#flight_progress_panel .flight-iata {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #00d4ff !important;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4) !important;
    letter-spacing: 1px !important;
}

#flight_progress_panel .flight-status {
    font-size: 9px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Status colors */
#flight_progress_panel .flight-status.cruising { background: #2ecc71 !important; color: #fff !important; }
#flight_progress_panel .flight-status.climbing { background: #3498db !important; color: #fff !important; }
#flight_progress_panel .flight-status.descending { background: #e67e22 !important; color: #fff !important; }
#flight_progress_panel .flight-status.departing { background: #9b59b6 !important; color: #fff !important; }
#flight_progress_panel .flight-status.arriving { background: #f39c12 !important; color: #fff !important; }
#flight_progress_panel .flight-status.takeoff { background: #8e44ad !important; color: #fff !important; }
#flight_progress_panel .flight-status.landing { background: #d35400 !important; color: #fff !important; }
#flight_progress_panel .flight-status.taxiing { background: #16a085 !important; color: #fff !important; }
#flight_progress_panel .flight-status.holding { background: #e74c3c !important; color: #fff !important; }
#flight_progress_panel .flight-status.on_ground_origin { background: #7f8c8d !important; color: #fff !important; }
#flight_progress_panel .flight-status.on_ground_dest { background: #27ae60 !important; color: #fff !important; }
#flight_progress_panel .flight-status.on_ground { background: #95a5a6 !important; color: #fff !important; }
#flight_progress_panel .flight-status.en_route { background: #3498db !important; color: #fff !important; }
#flight_progress_panel .flight-status.low_altitude { background: #e74c3c !important; color: #fff !important; }
#flight_progress_panel .flight-status.unknown { background: #34495e !important; color: #fff !important; }
#flight_progress_panel .flight-status.ground_vehicle { background: #f1c40f !important; color: #000 !important; }

/* Route display - compact centered */
#flight_progress_panel .flight-route {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    font-size: 14px !important;
}

#flight_progress_panel .route-origin,
#flight_progress_panel .route-dest {
    font-weight: 600 !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
}

#flight_progress_panel .route-arrow {
    color: #00d4ff !important;
    font-size: 16px !important;
}

/* Progress bar - thinner */
#flight_progress_panel .flight-progress-bar-container {
    position: relative !important;
    height: 6px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 3px !important;
    margin-bottom: 10px !important;
    overflow: visible !important;
}

#flight_progress_panel .flight-progress-bar {
    height: 100% !important;
    background: linear-gradient(90deg, #00d4ff, #0099ff) !important;
    border-radius: 3px !important;
    transition: width 0.5s ease-out !important;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4) !important;
}

#flight_progress_panel .flight-progress-plane {
    position: absolute !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 14px !important;
    filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.8)) !important;
    transition: left 0.5s ease-out !important;
}

/* Stats row - compact */
#flight_progress_panel .flight-stats {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
}

#flight_progress_panel .stat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 6px 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 6px !important;
    min-width: 55px !important;
}

#flight_progress_panel .stat-icon {
    font-size: 12px !important;
    margin-bottom: 2px !important;
}

#flight_progress_panel .stat-value {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #fff !important;
}

#flight_progress_panel .stat-label {
    font-size: 8px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

/* Loading state */
#flight_progress_panel.loading {
    opacity: 0.6 !important;
}

/* No data state */
#flight_progress_panel.no-data .flight-header,
#flight_progress_panel.no-data .flight-route,
#flight_progress_panel.no-data .flight-progress-bar-container,
#flight_progress_panel.no-data .flight-stats {
    display: none !important;
}

#flight_progress_panel.no-data::after {
    content: 'Flight info not available';
    display: block !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-style: italic !important;
    font-size: 11px !important;
    padding: 8px !important;
}
