/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #0d1117;
    color: #f0f6fc;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    padding: 1em 2em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    background: linear-gradient(45deg, #58a6ff, #79c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2em;
}

nav ul li a {
    color: #f0f6fc;
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    background-color: #30363d;
    color: #58a6ff;
}

/* Main Content */
main {
    padding: 2em;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 1em;
    background: linear-gradient(45deg, #f0f6fc, #c9d1d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 1em;
    color: #f0f6fc;
}

/* Forms */
form {
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    padding: 2em;
    border-radius: 12px;
    margin-top: 1em;
    border: 1px solid #30363d;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    color: #f0f6fc;
    font-weight: 500;
}

form input[type="email"],
form input[type="password"],
form input[type="text"],
form input[type="number"],
form input[type="datetime-local"],
form select {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #30363d;
    border-radius: 6px;
    background-color: #0d1117;
    color: #f0f6fc;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

form input:focus,
form select:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

form input[readonly] {
    background-color: #21262d;
    color: #8b949e;
}

/* Buttons */
.btn-primary,
form button {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover,
form button:hover {
    background: linear-gradient(135deg, #2ea043 0%, #238636 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 160, 67, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
    color: #f0f6fc;
    padding: 0.8em 1.5em;
    border: 1px solid #30363d;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #30363d 0%, #21262d 100%);
    border-color: #58a6ff;
    color: #58a6ff;
    transform: translateY(-2px);
}

/* Seat Map Styles */
.seat-map {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
    max-width: 300px;
    margin: 2em auto;
    padding: 2em;
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    border-radius: 12px;
    border: 1px solid #30363d;
}

.seat {
    width: 60px;
    height: 60px;
    border: 2px solid #30363d;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}

.seat.available {
    border-color: #238636;
    color: #2ea043;
}

.seat.available:hover {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
    transform: scale(1.05);
}

.seat.booked {
    border-color: #da3633;
    color: #f85149;
    cursor: not-allowed;
    background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
}

.seat.selected {
    border-color: #58a6ff;
    background: linear-gradient(135deg, #58a6ff 0%, #79c0ff 100%);
    color: white;
    transform: scale(1.05);
}

/* Flight and Booking Cards */
.flight-item,
.booking-item {
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5em;
    margin-bottom: 1em;
    transition: all 0.3s ease;
}

.flight-item:hover,
.booking-item:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.flight-item h3,
.booking-item h3 {
    color: #58a6ff;
    margin-bottom: 0.5em;
}

.flight-item p,
.booking-item p {
    margin-bottom: 0.5em;
    color: #c9d1d9;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.pilot-only,
.admin-only,
.crew-only {
    display: none;
}

.pilot-only.show,
.admin-only.show,
.crew-only.show {
    display: block;
}

/* Dashboard Actions */
.pilot-actions,
.admin-actions {
    display: flex;
    gap: 1em;
    margin-top: 1em;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    color: #8b949e;
    text-align: center;
    padding: 2em;
    border-top: 1px solid #30363d;
    margin-top: 2em;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1em;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    main {
        padding: 1em;
    }
    
    .seat-map {
        max-width: 250px;
    }
    
    .pilot-actions,
    .admin-actions {
        flex-direction: column;
    }
}


