* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #0056b3, #00a0e9);
    color: white;
    border-radius: 0 0 10px 10px;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Map Controls */
.map-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.control-group {
    display: flex;
    gap: 15px;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle input {
    margin-right: 5px;
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Map Section Styles */
.map-section {
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.map-section h2 {
    color: #0056b3;
    margin-bottom: 20px;
}

/* Full-screen map */
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* Loading Indicator */
.loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0056b3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    font-size: 1.2rem;
    color: #0056b3;
    font-weight: 500;
}

/* Flight Info Container */
.flight-info-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 90%;
    max-width: 400px;
    z-index: 10;
}

/* Flight Info Panel */
.flight-info-panel {
    position: relative;
    width: 100%;
    background: rgba(30, 30, 30, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
    transform-origin: bottom center;
    display: none;
}

.flight-info-panel.active {
    display: block;
    transform: translateY(0);
}

.flight-info-panel.collapsed {
    transform: translateY(100%);
}

.chevron-handle {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: rgba(30, 30, 30, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 12;
    transition: transform 0.3s ease-in-out;
}

.flight-info-panel.collapsed + .chevron-handle {
    transform: translateX(-50%) translateY(calc(100% - 8px));
}

.chevron-icon {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.flight-info-panel.collapsed .chevron-icon {
    transform: rotate(180deg);
}

.flight-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.flight-info-header h3 {
    font-size: 1rem;
    margin: 0;
}

.flight-info-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.flight-info-content {
    padding: 0;
}

/* Modern Flight Info Styling */
.flight-info-modern {
    padding: 16px;
    color: white;
}

.flight-info-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pilot-info {
    display: flex;
    align-items: center;
}

.profile-image-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 12px;
    background-color: #333;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pilot-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.flight-status {
    font-size: 12px;
    margin-top: 2px;
}

.flight-status.in-flight {
    color: #32CD32;
}

.flight-status.landed {
    color: #808080;
}

.flight-info-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.flight-stats-row {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin-top: 8px;
}

.stat-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
}

/* Aircraft Markers */
.aircraft-marker {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.in-flight {
    background-image: url('https://raw.githubusercontent.com/mapbox/mapbox-gl-js/main/docs/pages/assets/custom_marker.png');
}

.on-ground {
    background-image: url('https://raw.githubusercontent.com/mapbox/mapbox-gl-js/main/docs/pages/assets/custom_marker.png');
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-card h2 {
    color: #0056b3;
    margin-bottom: 15px;
}

.cta {
    text-align: center;
    background: #f0f7ff;
    padding: 60px 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0056b3;
}

#signup-btn {
    background: #0056b3;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#signup-btn:hover {
    background: #003d82;
}

footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 0.9rem;
}

/* Expired Link Message */
.expired-link-message,
.error-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: auto;
}

.message-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.message-content h2 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.message-content p {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5;
}

.error-message .message-content h2 {
    color: #d9534f;
}

@media (max-width: 768px) {
    header {
        padding: 40px 0;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .flight-info-container {
        width: calc(100% - 40px);
        max-width: 100%;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .flight-info-panel {
        border-radius: 16px;
    }
    
    .flight-info-panel.active {
        transform: translateY(0);
    }
    
    .flight-info-panel.collapsed {
        transform: translateY(100%);
    }
    
    .chevron-handle {
        bottom: calc(100% + 8px);
        width: 60px;
        height: 28px;
    }
    
    .flight-info-panel.collapsed + .chevron-handle {
        transform: translateX(-50%) translateY(calc(100% - 8px));
    }
    
    .chevron-icon {
        transform: rotate(0deg);
    }
    
    .flight-info-panel.collapsed .chevron-icon {
        transform: rotate(180deg);
    }
    
    .control-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .message-content {
        max-width: 90%;
        padding: 20px;
    }
} 