/* Add logo styles at the beginning of the file */
.logo-container {
    position: fixed;
    top: 15px;  /* Increased from 10px to 15px */
    right: 22px; /* Increased from 16px to 22px */
    z-index: 1000;
    pointer-events: none; /* Prevents logo from interfering with map interactions */
}

.enhanced-radar-logo {
    height: 12px; /* Increased from 10px to 12px (20% larger) */
    width: auto;
    opacity: 0.9;
}

body, .container-fluid {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Timeline Panel Styles */
.timeline-panel {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 360px;
    height: calc(100vh - 200px - 32px);
    background: rgba(33, 37, 41, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Panel header styles */
.panel-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--bs-light);
}

.panel-subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--bs-secondary);
}

/* Timeline content wrapper */
.timeline-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* Timeline cards container */
.timeline-cards-container {
    position: relative;
}

.timeline-cards-container::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 3px;
    width: 1px;
    background: var(--bs-primary);
}

/* Card wrapper styles */
.timeline-card-wrapper {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 15px;
    margin-bottom: 12px;
}

.timeline-dot {
    position: absolute;
    left: -1px;
    top: 12px;
    width: 8px;
    height: 8px;
    background: var(--bs-primary);
    border-radius: 50%;
}

/* Timeline card styles */
.timeline-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 10px;
    cursor: pointer; /* Added cursor style */
}
.timeline-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.card-time {
    color: var(--bs-primary);
    font-size: 0.8em;
    margin-bottom: 4px;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 8px;
}

.audio-icon {
    color: var(--bs-light);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.audio-icon:hover {
    opacity: 1;
}

.card-content h5 {
    margin: 0 0 6px 0;
    color: var(--bs-light);
    font-size: 0.95em;
}

.card-content p {
    margin: 0;
    color: var(--bs-secondary);
    font-size: 0.8em;
    line-height: 1.3;
}

.audio-player {
    display: none;
}

.transcript {
    font-size: 0.75em;
    line-height: 1.3;
    color: var(--bs-light);
    margin-top: 4px;
}

/* Map styles */
#map {
    width: 100vw;
    height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
}

#deck-canvas {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
}

/* Controls container styles */
.controls-container {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(33, 37, 41, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.altitude-chart-container {
    height: 120px;
    width: 100%;
    position: relative;
    margin-bottom: 15px;
    padding: 0 24px;  /* Added horizontal padding */
}

#altitudeChart {
    width: 100% !important;
    height: 100% !important;
}

.playback-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.altitude-info,
.time-info {
    color: var(--bs-light);
    font-size: 14px;
}

.form-select {
    width: auto;
}

/* Mapbox custom popup styling */
.mapboxgl-popup {
    max-width: 200px;
}

.mapboxgl-popup-content {
    background: var(--bs-dark);
    color: var(--bs-light);
    padding: 10px;
    border-radius: 4px;
}

/* Mobile overlay styles */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    padding-bottom: 40%; /* Add more padding at the bottom to shift content up */
}

.mobile-overlay .enhanced-radar-logo {
    height: 24px;
    margin-bottom: 16px; /* Reduced from 20px */
    opacity: 1;
}

.mobile-overlay-message {
    color: var(--bs-light);
    font-size: 1em; /* Reduced from 1.2em */
    line-height: 1.4;
    max-width: 280px;
    margin: 0 auto;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .mobile-overlay {
        display: flex;
    }
}