/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

#app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Controls Panel */
.controls-panel {
    background: #2d2d2d;
    padding: 8px 15px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #444;
    z-index: 999;
    flex-wrap: wrap;
}

.controls-panel .right-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap; /* keep items on one line */
    flex-wrap: nowrap;
}

.controls-panel .right-actions .dropdown {
    display: inline-flex;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.control-group label {
    font-weight: 500;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Compact buttons in control panel */
.controls-panel .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
    min-width: auto;
}

.controls-panel select {
    font-size: 0.8rem;
    padding: 2px 6px;
}

/* Financial displays in header */
.cash-amount {
    color: #4CAF50;
    font-weight: bold;
}

.profit-amount {
    font-weight: bold;
}

.profit-amount.positive {
    color: #4CAF50;
}

.profit-amount.negative {
    color: #f44336;
}

/* New combined financial displays */
.net-worth-amount {
    font-weight: bold;
}

.net-worth-amount.positive {
    color: #4CAF50; /* Green for high net worth (>= $250M) */
}

.net-worth-amount.neutral {
    color: #FF9800; /* Orange for moderate net worth ($100-250M) */
}

.net-worth-amount.negative {
    color: #f44336; /* Red for low net worth (< $100M) */
}

.cash-flow-amount {
    font-weight: bold;
}

.cash-flow-amount.positive {
    color: #4CAF50; /* Green for positive cash flow */
}

.cash-flow-amount.negative {
    color: #f44336; /* Red for negative cash flow */
}

select, input {
    background: #444;
    color: white;
    border: 1px solid #666;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

select:focus, input:focus {
    outline: none;
    border-color: #4CAF50;
}

.status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status.connected {
    background: #4CAF50;
    color: white;
}

.status.disconnected {
    background: #f44336;
    color: white;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #2196F3;
    color: white;
}

.btn-primary:hover {
    background: #1976D2;
}

.btn-secondary {
    background: #666;
    color: white;
}

.btn-secondary:hover {
    background: #555;
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: #FF9800;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle:hover {
    background: #F57C00;
}

.dropdown-toggle::after {
    content: " ▼";
    font-size: 0.7rem;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    z-index: 1000;
    display: none;
    padding: 5px 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 15px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #3d3d3d;
    color: #FF9800;
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    min-height: 400px; /* Ensure minimum height for Mac */
}

#map {
    width: 100%;
    height: 100%;
    min-height: 400px; /* Ensure minimum height for Mac */
    -webkit-transform: translateZ(0); /* Force hardware acceleration on Mac */
    transform: translateZ(0);
}

/* Mandatory Base Airport Selection */
.mandatory-selection {
    border: 2px solid #4CAF50 !important;
    animation: glow 2s ease-in-out infinite alternate;
}

.mandatory-selection:hover {
    border-color: #45a049 !important;
    transform: scale(1.05);
}

@keyframes glow {
    from { box-shadow: 0 0 5px #4CAF50; }
    to { box-shadow: 0 0 20px #4CAF50; }
}

/* Sidebar */
.sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 450px;
    height: 100%;
    background: rgba(45, 45, 45, 0.9);
    -webkit-backdrop-filter: blur(10px); /* Safari/Mac support */
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(68, 68, 68, 0.8);
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar.collapsed {
    transform: translateX(100%);
}

.sidebar-content {
    padding: 20px;
}

/* Statistics Panel */
.stats-panel {
    margin-bottom: 20px;
}

.stats-panel h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    background: #3d3d3d;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #555;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #ccc;
}

/* Tabs */
.tabs-container {
    background: #3d3d3d;
    border-radius: 8px;
    overflow: hidden;
}

.tabs {
    display: flex;
    background: #444;
}

.tab-button {
    flex: 1;
    padding: 12px 8px;
    background: transparent;
    color: #ccc;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: #4CAF50;
    color: white;
}

.tab-button:hover:not(.active) {
    background: #555;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #ccc;
}

.form-group input,
.form-group select {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Economics Tab */
.financial-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.metric-item {
    background: #444;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.metric-label {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.metric-value.positive {
    color: #4CAF50;
}

.metric-value.negative {
    color: #f44336;
}

/* Cost Breakdown */
.cost-breakdown {
    margin-bottom: 20px;
}

.cost-breakdown h5 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.cost-chart {
    background: #444;
    padding: 15px;
    border-radius: 6px;
}

.cost-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.cost-label {
    width: 70px;
    font-size: 0.8rem;
    color: #ccc;
}

.cost-bar {
    flex: 1;
    height: 8px;
    background: #555;
    border-radius: 4px;
    position: relative;
}

.cost-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.fuel-bar::after {
    background: #FF9800;
    width: var(--fuel-width, 0%);
}

.crew-bar::after {
    background: #2196F3;
    width: var(--crew-width, 0%);
}

.maintenance-bar::after {
    background: #9C27B0;
    width: var(--maintenance-width, 0%);
}

.fees-bar::after {
    background: #607D8B;
    width: var(--fees-width, 0%);
}

.cost-value {
    width: 60px;
    text-align: right;
    font-size: 0.8rem;
    color: #4CAF50;
}

/* Route Analysis */
.route-analysis {
    background: #444;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.route-analysis h5 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.analysis-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.analysis-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.analysis-label {
    color: #ccc;
}

.analysis-value {
    font-weight: bold;
    color: #4CAF50;
}

.profitability-indicator {
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.profitability-indicator.profitable {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.profitability-indicator.unprofitable {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

.profitability-indicator.marginal {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
    border: 1px solid #FF9800;
}

/* Route Performance */
.route-performance-list {
    max-height: 200px;
    overflow-y: auto;
}

/* Sync Section */
.sync-section {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.sync-info {
    margin: 10px 0 0 0;
    font-size: 0.9rem;
    color: #ccc;
}

/* Existing Assignments */
.existing-assignments {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.existing-assignments h5 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.assignments-list {
    max-height: 300px;
    overflow-y: auto;
}

.assignment-item {
    background: #444;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #555;
    transition: all 0.3s ease;
}

.assignment-item:hover {
    background: #4a4a4a;
    border-color: #666;
    transform: translateY(-1px);
}

.assignment-item.selected {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3b6f 100%);
    border: 2px solid #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 15px rgba(76, 175, 80, 0.3); }
    50% { box-shadow: 0 0 25px rgba(76, 175, 80, 0.6); }
    100% { box-shadow: 0 0 15px rgba(76, 175, 80, 0.3); }
}

.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.assignment-title {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1rem;
}

.camera-indicator {
    background: #4CAF50;
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.camera-control-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid #3498db;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
}

.camera-control-info p {
    margin: 0;
    color: #87ceeb;
    font-size: 0.9rem;
}

.camera-control-info i {
    color: #3498db;
}

.assignment-actions {
    display: flex;
    gap: 5px;
}

.assignment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.85rem;
    color: #ccc;
}

.assignment-details p {
    margin: 0;
    padding: 2px 0;
}

.assignment-details strong {
    color: #fff;
}


/* Flight item styles for clickable list */
.flight-item {
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.flight-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.flight-item.selected {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3b6f 100%) !important;
    border: 2px solid #4CAF50 !important;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3) !important;
    animation: pulse-border 2s infinite !important;
    transform: scale(1.02) !important;
}

.flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.flight-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flight-status {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.flight-status.departing {
    background: #4CAF50;
    color: white;
}

.flight-status.en_route {
    background: #f44336;
    color: white;
}

.flight-status.arriving {
    background: #FF9800;
    color: white;
}

.flight-status.parked {
    background: #FFC107;
    color: black;
}

.flight-details {
    font-size: 0.8rem;
    color: #ccc;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

/* Button active states */
.btn.active {
    background: #4CAF50 !important;
    border-color: #4CAF50 !important;
}

/* MapTiler container styles */
.maplibregl-map {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Map Mode Controls */
.map-mode-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.map-mode-controls .btn {
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* Hide maplibre controls that conflict with our UI */
.maplibregl-ctrl-top-right {
    top: 70px;
}

.maplibregl-ctrl-bottom-left {
    bottom: 20px;
}

/* Fleet Management Styles */
.fleet-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #4CAF50;
}

.fleet-item h5 {
    color: #4CAF50;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.aircraft-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    font-size: 0.9rem;
}

.aircraft-details p {
    margin: 0;
    padding: 2px 0;
}

.aircraft-details strong {
    color: #ccc;
}

/* Aircraft marker styles for 2D map */
.aircraft-marker {
    background: transparent !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aircraft-marker i {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
}

.resting-aircraft i {
    animation: restingPulse 2s infinite;
}

@keyframes restingPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.route-performance-item {
    background: #555;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-info {
    flex: 1;
}

.route-name {
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 2px;
}

.route-stats {
    font-size: 0.8rem;
    color: #ccc;
}

.route-profit {
    text-align: right;
    font-weight: bold;
}

.route-profit.positive {
    color: #4CAF50;
}

.route-profit.negative {
    color: #f44336;
}

/* Lists */
.flights-list,
.marketplace-list,
.fleet-list {
    max-height: 300px;
    overflow-y: auto;
}

.flight-item,
.aircraft-item,
.fleet-item {
    background: #444;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #555;
}

.flight-item h5,
.aircraft-item h5,
.fleet-item h5 {
    color: #4CAF50;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.flight-item p,
.aircraft-item p,
.fleet-item p {
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: #ccc;
}

.flight-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.flight-status.departing {
    background: #4CAF50;
    color: white;
}

.flight-status.en_route {
    background: #f44336;
    color: white;
}

.flight-status.arriving {
    background: #FF9800;
    color: white;
}

.flight-status.parked {
    background: #FFC107;
    color: black;
}

.aircraft-item .price {
    color: #4CAF50;
    font-weight: bold;
}

.aircraft-item .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
    margin-right: 5px;
    margin-top: 5px;
}

/* Super Aircraft (A380) Styling */
.aircraft-item.super-aircraft {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 2px solid #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    animation: pulse-gold 2s ease-in-out infinite alternate;
}

.aircraft-item.super-aircraft h5 {
    color: #000;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.aircraft-item.super-aircraft p {
    color: #333;
    font-weight: 500;
}

.aircraft-item.super-aircraft .price {
    color: #8B0000;
    font-weight: bold;
    font-size: 1.1em;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    }
}

.no-data {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
}

/* Legend */
.legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(45, 45, 45, 0.95);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #555;
    z-index: 1000;
}

.legend h4 {
    color: #4CAF50;
    margin-bottom: 10px;
    font-size: 1rem;
}

.legend-section {
    margin-bottom: 15px;
}

.legend-section:last-child {
    margin-bottom: 0;
}

.legend-title {
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 8px;
    font-size: 0.9rem;
    border-bottom: 1px solid #555;
    padding-bottom: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}


/* Scrollbars */
.sidebar::-webkit-scrollbar,
.flights-list::-webkit-scrollbar,
.marketplace-list::-webkit-scrollbar,
.fleet-list::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.flights-list::-webkit-scrollbar-track,
.marketplace-list::-webkit-scrollbar-track,
.fleet-list::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.sidebar::-webkit-scrollbar-thumb,
.flights-list::-webkit-scrollbar-thumb,
.marketplace-list::-webkit-scrollbar-thumb,
.fleet-list::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.flights-list::-webkit-scrollbar-thumb:hover,
.marketplace-list::-webkit-scrollbar-thumb:hover,
.fleet-list::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* View Components */
.view-toggle {
    margin-bottom: 15px;
    display: flex;
    gap: 5px;
}

.view-toggle .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.view-toggle .btn.active {
    background: #4CAF50;
    color: white;
}




.flight-info-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(45, 45, 45, 0.95);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #666;
    min-width: 200px;
    z-index: 100;
}

.flight-info-overlay h5 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.flight-info-overlay p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ccc;
}

.flight-altitude-indicator {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(45, 45, 45, 0.9);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #666;
    z-index: 100;
}

.altitude-scale {
    width: 30px;
    height: 200px;
    background: linear-gradient(to top, #2196F3, #4CAF50, #FF9800, #f44336);
    border-radius: 4px;
    position: relative;
}

.altitude-marker {
    position: absolute;
    right: -40px;
    width: 8px;
    height: 2px;
    background: #fff;
    transition: top 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
    }
    
    .controls-panel {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    
    .view-toggle {
        flex-direction: column;
    }
}


/* Button state improvements */
.btn.active {
    background: #4CAF50 !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.updating {
    animation: pulse 1s infinite;
}

@keyframes flyIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}



/* Aircraft Actions */
.aircraft-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.aircraft-actions .btn {
    padding: 6px 12px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 60px;
}


/* Tutorial System Styles */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(1200px 800px at 50% 20%, rgba(0,0,0,0.6), rgba(0,0,0,0.92));
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease-out;
}

.tutorial-popup {
    background: rgba(24, 24, 27, 0.75);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-radius: 16px;
    width: 92%;
    max-width: 760px;
    max-height: 88vh;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.tutorial-header {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tutorial-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    max-width: 320px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 999px;
    transition: width 0.25s ease;
    width: 0; /* Set by JS */
}

.step-counter {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 64px;
    text-align: right;
}

.tutorial-skip {
    color: rgba(255,255,255,0.9) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.tutorial-skip:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}

.tutorial-content {
    flex: 1;
    overflow-y: auto;
    padding: 26px;
    position: relative;
}

.tutorial-step {
    display: none;
    animation: slideIn 0.4s ease-out;
}

.tutorial-step.active {
    display: block;
}

.tutorial-icon {
    text-align: center;
    margin-bottom: 20px;
}

.tutorial-icon i {
    font-size: 2.6rem;
    color: #22c55e;
    text-shadow: 0 0 14px rgba(34, 197, 94, 0.35);
}

.tutorial-step h2 {
    color: #e5e7eb;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.6rem;
    font-weight: 700;
}

.tutorial-step p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

/* Tutorial Features Grid */
.tutorial-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 14px 0 6px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(34, 197, 94, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.feature-item i {
    color: #22c55e;
    font-size: 1.2rem;
}

.feature-item span {
    color: white;
    font-weight: 500;
}

/* Map Legend Tutorial */
.map-legend-tutorial {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #555;
}

.legend-demo {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    color: #cccccc;
}

.legend-row i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Financing Options */
.financing-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.option-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #555;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.option-header i {
    color: #4CAF50;
    font-size: 1.5rem;
}

.option-header h4 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
}

.option-card p {
    color: #cccccc;
    margin-bottom: 15px;
    font-size: 1rem;
}

.option-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.option-card li {
    color: #aaaaaa;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.option-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* Economics Breakdown */
.economics-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
}

.metric-group {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #555;
}

.metric-group h4 {
    color: #4CAF50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.metric-group h4 i {
    font-size: 1.2rem;
}

.metric-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.metric-group li {
    color: #cccccc;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.metric-group li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-size: 1.2rem;
}


/* Controls Demo */
.controls-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid #555;
}

.control-item i {
    color: #4CAF50;
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.control-item div {
    flex: 1;
}

.control-item strong {
    color: white;
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.control-item p {
    color: #cccccc;
    margin: 0;
    font-size: 0.9rem;
}

/* Feature Showcase */
.feature-showcase {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid #555;
}

.showcase-item i {
    color: #4CAF50;
    font-size: 1.8rem;
    width: 40px;
    text-align: center;
}

.showcase-item div {
    flex: 1;
}

.showcase-item strong {
    color: white;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.showcase-item p {
    color: #cccccc;
    margin: 0;
    font-size: 0.95rem;
}

/* Success Roadmap */
.success-roadmap {
    margin: 25px 0;
}

.roadmap-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid #555;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: white;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.step-content p {
    color: #cccccc;
    margin: 0;
    font-size: 0.95rem;
}

/* Final Tips */
.final-tips {
    margin-top: 30px;
    padding: 20px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.final-tips h4 {
    color: #4CAF50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.final-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.final-tips li {
    color: #cccccc;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.final-tips li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-size: 1.1rem;
}

/* Tutorial Tips */
.tutorial-tip {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #fff3cd !important;
}

.tutorial-tip i {
    color: #ffc107;
    margin-right: 8px;
}

/* Tutorial Navigation */
.tutorial-navigation {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.tutorial-navigation .btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tutorial-navigation .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tutorial-navigation .btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: white;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.26);
}

.tutorial-navigation .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.35);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Tutorial */
@media (max-width: 768px) {
    .tutorial-popup {
        width: 95%;
        max-height: 95vh;
    }
    
    .tutorial-content {
        padding: 20px;
    }
    
    .tutorial-features,
    .financing-options,
    .economics-breakdown,
    .controls-demo {
        grid-template-columns: 1fr;
    }
    
    .feature-item,
    .control-item,
    .showcase-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .tutorial-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .tutorial-navigation .btn {
        width: 100%;
    }
    
    .step-counter {
        min-width: auto;
    }
    
    .tutorial-progress {
        flex-direction: column;
        gap: 10px;
    }
    
    .progress-bar {
        max-width: none;
    }
}

/* Globe Flight Mode Styles */
.globe-flight-viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: #000;
}

.globe-flight-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(to bottom, #0B0B0B 0%, #1a1a2e 50%, #16213e 100%);
}

.globe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    font-size: 1.2rem;
}

.globe-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    border: 2px solid #ff6b6b;
    max-width: 400px;
}

.globe-error i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.globe-error h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.globe-error p {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #cccccc;
}

.globe-exit {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

/* Globe map container specific styles */
#globe-map-container {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* Flight path animation styles for globe */
.globe-flight-path {
    stroke: #00ff88;
    stroke-width: 3;
    fill: none;
    filter: drop-shadow(0 0 6px #00ff88);
}

.globe-aircraft-marker {
    filter: drop-shadow(0 0 8px #ffffff);
}

/* CesiumJS Flight Tracker Styles */
.cesium-flight-viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: #000;
}

.cesium-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.cesium-airport-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(45, 45, 45, 0.95);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #666;
    min-width: 350px;
    backdrop-filter: blur(10px);
}

.cesium-airport-panel h3 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.2rem;
}

.airport-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.airport-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.airport-group label {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.airport-select {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    outline: none;
}

.airport-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.flight-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.flight-controls .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cesium-flight-info {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(45, 45, 45, 0.95);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #666;
    min-width: 250px;
    backdrop-filter: blur(10px);
}

.cesium-flight-info h4 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1rem;
}

.flight-details p {
    margin-bottom: 5px;
    color: #ccc;
    font-size: 0.85rem;
}

.flight-details span {
    color: #fff;
    font-weight: 500;
}

/* Override Cesium default styles */
.cesium-viewer-toolbar {
    display: none !important;
}

.cesium-viewer-geocoderContainer {
    display: none !important;
}

.cesium-viewer-homeButton {
    display: none !important;
}

.cesium-viewer-sceneModePicker {
    display: none !important;
}

.cesium-viewer-projectionPicker {
    display: none !important;
}

.cesium-viewer-navigationHelpButton {
    display: none !important;
}

.cesium-viewer-animationContainer {
    display: none !important;
}

.cesium-viewer-timelineContainer {
    display: none !important;
}

.cesium-viewer-fullscreenContainer {
    display: none !important;
}

.cesium-viewer-vrContainer {
    display: none !important;
}

.cesium-viewer-cesiumInspectorContainer {
    display: none !important;
}

.cesium-credit-lightbox-overlay {
    display: none !important;
}

.cesium-widget-credits {
    display: none !important;
}

/* Enhanced Flight Simulator Styles */
.flight-simulator-controls {
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    margin: 20px;
}

.flight-simulator-controls h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.simulator-info p {
    margin-bottom: 10px;
    color: #ccc;
}

.controls-legend {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.controls-legend h4 {
    color: #FFC107;
    margin-bottom: 10px;
    font-size: 1rem;
}

.control-mappings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.control-row .key {
    background: #333;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: monospace;
    font-weight: bold;
    color: #FFC107;
    min-width: 30px;
    text-align: center;
}

.control-row .action {
    color: #ccc;
    font-size: 0.9rem;
}

.simulator-controls {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.simulator-controls .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* HUD Enhancements */
.cesium-flight-info {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #444;
    border-radius: 8px;
}

.cesium-flight-info h4 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* HeadingPitchRoll Control Panel */
.flight-controls {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.flight-controls h4 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1rem;
}

.flight-controls .control-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.flight-controls .control-group label {
    min-width: 80px;
    color: #FFC107;
    font-weight: bold;
}

.control-slider {
    flex: 1;
    height: 6px;
    background: #333;
    outline: none;
    border-radius: 3px;
    -webkit-appearance: none;
}

.control-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
}

.control-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.control-select {
    flex: 1;
    padding: 5px;
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 3px;
}

.keyboard-controls {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.keyboard-controls h4 {
    color: #FFC107;
    margin-bottom: 10px;
    font-size: 1rem;
}

.controls-help {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

.controls-help p {
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}

/* Tutorial Flight Simulator Toolbar */
#toolbar {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(42, 42, 42, 0.9);
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

#toolbar .infoPanel {
    border-collapse: collapse;
    color: white;
}

#toolbar .infoPanel td {
    padding: 4px 8px;
    border: none;
    text-align: left;
    white-space: nowrap;
}

#toolbar input[type="checkbox"] {
    margin-left: 5px;
}

#toolbar .btn {
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 11px;
}

/* Flight Controls Panel */
.flight-controls-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(42, 42, 42, 0.95);
    padding: 15px;
    border-radius: 8px;
    z-index: 1000;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: white;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flight-controls-panel h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.controls-section {
    margin-bottom: 10px;
}

.flight-controls-panel .control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Leased badge */
.badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 4px;
    vertical-align: middle;
}

.badge-lease {
    background: #2196F3;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Feedback modal */
.feedback-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.feedback-content {
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 8px;
    width: min(600px, 92vw);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.feedback-content h4 {
    margin: 0 0 10px 0;
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-content textarea,
.feedback-content input {
    width: 100%;
    background: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 10px;
    margin-top: 8px;
}

.feedback-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}

.control-category {
    margin-bottom: 8px;
}

.control-category strong {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: #FFD700;
}

.control-category ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.control-category li {
    margin: 2px 0;
    font-size: 11px;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flight-controls-panel kbd {
    background: #333;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    border: 1px solid #555;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    min-width: 20px;
    text-align: center;
}

.speed-info {
    border-top: 1px solid #555;
    padding-top: 8px;
    margin-top: 8px;
}

.speed-info small {
    color: #aaa;
    font-size: 10px;
}

/* Cesium Flight Simulator Container */
.cesium-flight-simulator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000;
}

/* Crash Modal Styling */
.crash-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crash-modal-content {
    background: #1a1a1a;
    border: 3px solid #ff4444;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
}

.crash-icon {
    font-size: 4rem;
    color: #ff4444;
    margin-bottom: 20px;
}

.crash-modal h2 {
    color: #ff4444;
    font-size: 2rem;
    margin: 0 0 15px 0;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.crash-modal p {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.crash-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.crash-buttons .btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
}

.cesium-container {
    width: 100%;
    height: 100%;
}

.cesium-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    z-index: 1001;
}

.cesium-exit {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

/* AI Competition Styling */
.ai-competition {
    margin-top: 20px;
}

.competition-controls {
    margin-bottom: 15px;
}

.ai-competition-list {
    max-height: 400px;
    overflow-y: auto;
}

.ai-airline-item {
    background: #3a3a3a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid #4CAF50;
}

.airline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.airline-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.airline-name i {
    color: #4CAF50;
}

.airline-code {
    color: #bbb;
    font-size: 0.9em;
}

.airline-reputation {
    color: #FFD700;
    font-size: 1.1em;
}

.airline-details {
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.detail-row span:first-child {
    color: #bbb;
}

.strategy-budget {
    color: #FF5722;
}

.strategy-premium {
    color: #9C27B0;
}

.strategy-balanced {
    color: #2196F3;
}

.strategy-aggressive {
    color: #FF9800;
}

.market-share-bar {
    margin-top: 10px;
}

.market-share-label {
    font-size: 0.85em;
    color: #bbb;
    margin-bottom: 4px;
}

.market-share-background {
    height: 6px;
    background: #2a2a2a;
    border-radius: 3px;
    overflow: hidden;
}

.market-share-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s ease;
}

.competition-summary {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.summary-header h6 {
    margin: 0 0 10px 0;
    color: #4CAF50;
}

.summary-stats {
    display: flex;
    gap: 20px;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.8em;
    color: #bbb;
    margin-bottom: 4px;
}

.stat-value {
    font-weight: bold;
    color: #4CAF50;
}

/* Competition Impact Styles */
.competition-impact-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

.competition-impact-section h6 {
    margin: 0 0 15px 0;
    color: #FF9800;
    font-size: 14px;
}

.route-competition-item {
    background: #2d3748;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.route-name {
    font-weight: bold;
    color: #fff;
    font-size: 13px;
}

.competition-intensity {
    font-size: 12px;
    font-weight: bold;
}

.competition-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.competition-stat {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.competition-stat .stat-label {
    color: #ccc;
}

.competition-stat .stat-value {
    color: #fff;
    font-weight: bold;
}

.competitors-list {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #444;
}

.competitors-label {
    font-size: 11px;
    color: #ccc;
    margin-bottom: 5px;
}

.competitors {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.competitor-tag {
    background: #1a202c;
    color: #FF9800;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #FF9800;
}

.loading-indicator {
    text-align: center;
    padding: 15px;
    color: #ccc;
    font-size: 12px;
}

.error-message {
    color: #F44336;
    font-size: 12px;
    text-align: center;
    padding: 10px;
}

/* AI Route Popup Styles */
.ai-route-popup {
    max-width: 250px;
    font-size: 12px;
}

.ai-route-popup h4 {
    margin: 0 0 8px 0;
    color: #FF9800;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
}

.ai-route-popup div {
    margin: 4px 0;
    line-height: 1.3;
}

.ai-route-popup strong {
    color: #333;
    font-weight: 600;
}

/* Info Panel */
.info-panel {
    position: fixed;
    left: 20px;
    top: 20px;
    width: 350px;
    height: calc(100vh - 40px);
    background: rgba(45, 45, 45, 0.95);
    border-radius: 12px;
    border: 1px solid #555;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.info-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #555;
    background: rgba(60, 60, 60, 0.8);
    border-radius: 12px 12px 0 0;
}

.info-panel-header h3 {
    margin: 0;
    color: #4CAF50;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-panel-header .btn {
    padding: 5px 10px;
    font-size: 14px;
}

.info-panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.info-panel-image {
    position: relative;
    height: 200px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #555;
}

.info-panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.image-loading {
    color: #888;
    font-size: 14px;
}

.info-panel-details {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    color: #e0e0e0;
}

.info-panel-details h4 {
    color: #4CAF50;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #555;
    padding-bottom: 8px;
}

.info-detail-item {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-detail-label {
    font-weight: 500;
    color: #bbb;
    min-width: 120px;
}

.info-detail-value {
    color: #fff;
    text-align: right;
    font-weight: 600;
}

.info-detail-value.status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.info-detail-value.status.departing {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.info-detail-value.status.enroute {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.info-detail-value.status.arriving {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.info-detail-value.status.parked {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

/* ===================================================================
   ENHANCED AIRCRAFT MANAGEMENT STYLES
   =================================================================== */

/* Base Airport Section */
.base-airport-section {
    background: #2d2d2d;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50;
}

.base-airport-section h5 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.base-airport-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.base-airport-info span {
    font-weight: bold;
    color: #fff;
}

.base-airport-cost {
    font-size: 0.9rem;
    color: #FFD700;
}

/* Fleet Summary */
.fleet-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.summary-item {
    background: #3a3a3a;
    padding: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid #2196F3;
}

.summary-item i {
    color: #2196F3;
    font-size: 1.2rem;
}

.summary-item span {
    font-size: 0.9rem;
    color: #ddd;
}

/* Enhanced Fleet List */
.enhanced-fleet-list {
    max-height: 600px;
    overflow-y: auto;
}

.aircraft-card {
    background: #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.aircraft-card:hover {
    background: #3a3a3a;
    transform: translateY(-2px);
}

.aircraft-card.parked {
    border-left-color: #4CAF50;
}

.aircraft-card.flying {
    border-left-color: #FF9800;
}

.aircraft-card.maintenance {
    border-left-color: #F44336;
}

.aircraft-card.needs-maintenance {
    border-left-color: #F0AD4E;
    box-shadow: 0 0 12px rgba(240, 173, 78, 0.35);
}

.aircraft-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.aircraft-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
}

.aircraft-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
}

.aircraft-status.parked {
    background: #4CAF50;
    color: white;
}

.aircraft-status.flying {
    background: #FF9800;
    color: white;
}

.aircraft-status.maintenance {
    background: #F44336;
    color: white;
}

.aircraft-status.needs-maintenance {
    background: #F0AD4E;
    color: #1b1b1b;
}

.aircraft-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    background: #2a2a2a;
    padding: 8px 10px;
    border-radius: 4px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 2px;
}

.stat-value {
    display: block;
    font-weight: bold;
    color: #fff;
}

.fuel-bar, .condition-bar {
    width: 100%;
    height: 6px;
    background: #555;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.fuel-fill, .condition-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.fuel-fill {
    background: linear-gradient(to right, #F44336, #FF9800, #4CAF50);
}

.condition-fill {
    background: linear-gradient(to right, #F44336, #FF9800, #4CAF50);
}

.aircraft-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.aircraft-actions .btn {
    flex: 1;
    min-width: 100px;
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #2d2d2d;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #444;
    background: #333;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #555;
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ddd;
    font-weight: 500;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #3a3a3a;
    color: #fff;
    font-size: 1rem;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

/* Airport Grid */
.airport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.airport-option {
    background: #3a3a3a;
    border: 2px solid #555;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.airport-option:hover {
    border-color: #2196F3;
    background: #404040;
    transform: translateY(-2px);
}

.airport-option.selected {
    border-color: #4CAF50;
    background: #2d4a2d;
}

.airport-name {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.airport-location {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.airport-cost {
    color: #FFD700;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.button-group .btn {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aircraft-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .aircraft-actions {
        flex-direction: column;
    }
    
    .aircraft-actions .btn {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .airport-grid {
        grid-template-columns: 1fr;
    }
}

/* Manual Flight Control Styles */
.manual-flight-form {
    background: rgba(45, 45, 45, 0.8);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #ddd;
}

.form-group select,
.form-group input {
    padding: 8px 12px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #3a3a3a;
    color: #fff;
    font-size: 14px;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 20px;
}

/* Flight Analysis */
.flight-analysis {
    background: rgba(60, 60, 60, 0.8);
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #007bff;
}

.flight-analysis h6 {
    margin-bottom: 10px;
    color: #fff;
}

.analysis-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.analysis-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #555;
}

.analysis-label {
    color: #bbb;
    font-size: 13px;
}

.analysis-value {
    color: #fff;
    font-weight: 500;
    font-size: 13px;
}

.flight-feasibility {
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
}

/* Active Flights */
.flight-card {
    background: rgba(45, 45, 45, 0.9);
    border: 1px solid #555;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.flight-card.selected-flight {
    background: rgba(0, 123, 255, 0.2);
    border: 2px solid #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.flight-header h6 {
    margin: 0;
    color: #fff;
}

.flight-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-scheduled {
    background: #ffc107;
    color: #000;
}

.status-active {
    background: #28a745;
    color: #fff;
}

.status-cancelled {
    background: #dc3545;
    color: #fff;
}

.flight-route {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #ddd;
}

.flight-progress {
    margin-bottom: 10px;
}

.progress-bar {
    background: #333;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-fill {
    background: linear-gradient(90deg, #28a745, #20c997);
    height: 100%;
    transition: width 0.3s ease;
}

.flight-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Available Aircraft List */
.aircraft-summary {
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid #555;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aircraft-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.aircraft-reg {
    font-weight: bold;
    color: #fff;
}

.aircraft-model {
    color: #bbb;
    font-size: 13px;
}

.aircraft-location {
    color: #007bff;
    font-size: 13px;
}

.aircraft-status {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
}

.aircraft-state {
    color: #28a745;
}

.fuel-level {
    color: #ffc107;
}

.condition {
    color: #17a2b8;
}

/* Flight Note in Fleet Tab */
.flight-note {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

/* Responsive Design for Manual Flight Form */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .analysis-metrics {
        grid-template-columns: 1fr;
    }
    
    .aircraft-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .aircraft-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .aircraft-status {
        justify-content: space-between;
        width: 100%;
    }
}

/* Flight History P&L Styles */
.pnl-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(45, 55, 72, 0.6);
    border-radius: 8px;
    border: 1px solid #4a5568;
}

.pnl-metric {
    text-align: center;
}

.pnl-label {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 5px;
}

.pnl-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.pnl-value.positive {
    color: #48bb78;
}

.pnl-value.negative {
    color: #f56565;
}

.flight-history-table {
    background: rgba(45, 55, 72, 0.6);
    border-radius: 8px;
    border: 1px solid #4a5568;
    overflow: hidden;
}

.flight-header {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.2fr 1.2fr 1fr 1.2fr;
    gap: 10px;
    padding: 12px 15px;
    background: #2d3748;
    font-weight: bold;
    font-size: 0.9rem;
    color: #e2e8f0;
    border-bottom: 1px solid #4a5568;
}

.flight-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.2fr 1.2fr 1fr 1.2fr;
    gap: 10px;
    padding: 10px 15px;
    border-bottom: 1px solid #4a5568;
    font-size: 0.85rem;
    align-items: center;
}

.flight-row:hover {
    background: rgba(45, 55, 72, 0.8);
}

.flight-row:last-child {
    border-bottom: none;
}

.flight-number {
    font-family: 'Courier New', monospace;
    color: #81c784;
    font-weight: bold;
}

.flight-route {
    color: #90cdf4;
}

.flight-revenue {
    color: #68d391;
    text-align: right;
    font-weight: 500;
}

.flight-profit {
    text-align: right;
    font-weight: 500;
}

.flight-profit.positive {
    color: #68d391;
}

.flight-profit.negative {
    color: #fc8181;
}

.flight-margin {
    text-align: right;
    font-weight: 500;
}

.flight-margin.positive {
    color: #68d391;
}

.flight-margin.negative {
    color: #fc8181;
}

.flight-date {
    color: #cbd5e0;
    font-size: 0.8rem;
}

.pnl-controls {
    margin-bottom: 15px;
}

.pnl-controls .btn {
    background: #4299e1;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.pnl-controls .btn:hover {
    background: #3182ce;
}

/* Responsive adjustments for flight history table */
@media (max-width: 768px) {
    .flight-header,
    .flight-row {
        grid-template-columns: 1fr 1.5fr 1fr 1fr 0.8fr 1fr;
        font-size: 0.75rem;
        gap: 5px;
        padding: 8px 10px;
    }
    
    .pnl-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Route Memory & Bulk Operations */
.route-memory-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
}

.route-memory-section h5 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-memory-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.route-memory-controls .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.route-memory-status {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.route-memory-aircraft {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 3px solid #4CAF50;
}

.route-memory-aircraft:last-child {
    margin-bottom: 0;
}

.aircraft-route-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.aircraft-route-info .info-item {
    display: flex;
    flex-direction: column;
}

.aircraft-route-info .info-label {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 2px;
}

.aircraft-route-info .info-value {
    color: #fff;
    font-weight: 500;
}

.route-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.route-details .route-path {
    color: #FFC107;
    font-weight: 500;
}

.route-details .last-flight {
    color: #ccc;
    font-size: 0.8rem;
}

/* Bulk operation progress */
.bulk-operation-progress {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
}

.bulk-operation-progress .progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.bulk-operation-progress .progress-bar {
    background: #333;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.bulk-operation-progress .progress-fill {
    background: linear-gradient(90deg, #4CAF50, #81C784);
    height: 100%;
    transition: width 0.3s ease;
}

.bulk-operation-errors {
    margin-top: 10px;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 6px;
    padding: 10px;
}

.bulk-operation-errors .error-item {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.bulk-operation-errors .error-item:last-child {
    margin-bottom: 0;
}
