/* SkyLine Airlines - Consolidated CSS Styles */

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

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Hero Section (Home page) */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-success {
    background: linear-gradient(45deg, #27ae60, #229954);
    color: white;
}

.btn-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231,76,60,0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Stats Section */
.stats {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    margin: 2rem;
    border-radius: 20px;
    text-align: center;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

/* Stats Row (Other pages) */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Page Header */
.page-header {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Cards */
.card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
}

.card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Booking Section */
.booking-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.results-section {
    grid-column: 1 / -1;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 1rem;
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.7);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Flight Cards */
.flight-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    transition: all 0.3s;
}

.flight-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.15);
}

.flight-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.flight-route {
    text-align: center;
}

.flight-time {
    font-size: 1.2rem;
    font-weight: bold;
}

.flight-location {
    font-size: 0.9rem;
    opacity: 0.8;
}

.flight-details {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.flight-number {
    font-size: 1.5rem;
    font-weight: bold;
}

.airline {
    opacity: 0.8;
}

.route {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.location {
    font-weight: bold;
    font-size: 1.1rem;
}

.detail-item {
    text-align: center;
}

.detail-label {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: bold;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
}

/* Passenger Management */
.search-bar {
    margin-bottom: 2rem;
}

.search-bar input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 1.1rem;
    text-align: center;
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.7);
}

.passenger-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.passenger-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.passenger-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.passenger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.passenger-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.passenger-id {
    font-size: 0.8rem;
    opacity: 0.7;
    font-family: monospace;
}

.passenger-details {
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

/* Tier Badges */
.tier-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.tier-bronze { background: #cd7f32; }
.tier-silver { background: #c0c0c0; color: #333; }
.tier-gold { background: #ffd700; color: #333; }
.tier-platinum { background: #e5e4e2; color: #333; }

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    min-width: 400px;
}

.modal h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Flight Management specific */
.toggle-form {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    margin-bottom: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

/* API Documentation */
.section {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 0.5rem;
}

.endpoint {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #3498db;
}

.method {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-right: 1rem;
}

.get { background: #27ae60; color: white; }
.post { background: #e74c3c; color: white; }
.put { background: #f39c12; color: white; }
.delete { background: #8e44ad; color: white; }

.endpoint-path {
    font-family: 'Courier New', monospace;
    background: rgba(0,0,0,0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
}

.endpoint-description {
    margin: 1rem 0;
    opacity: 0.9;
}

.example {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.example pre {
    color: #a8e6cf;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
}

.parameters {
    margin: 1rem 0;
}

.parameters h4 {
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.param-list {
    list-style: none;
    padding: 0;
}

.param-list li {
    background: rgba(255,255,255,0.1);
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 5px;
}

.param-name {
    font-weight: bold;
    color: #3498db;
}

.param-type {
    color: #e67e22;
    font-style: italic;
}

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

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.5);
    color: #2ecc71;
}

.alert-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 { 
        font-size: 2.5rem; 
    }
    
    .cta-buttons { 
        flex-direction: column; 
        align-items: center; 
    }
    
    .nav-links { 
        display: none; 
    }
    
    .booking-section { 
        grid-template-columns: 1fr; 
    }
    
    .flight-card { 
        flex-direction: column; 
        gap: 1rem; 
    }
    
    .passenger-grid { 
        grid-template-columns: 1fr; 
    }
    
    .stats-row { 
        grid-template-columns: 1fr; 
    }
    
    .flight-header { 
        flex-direction: column; 
        gap: 1rem; 
    }
    
    .route { 
        justify-content: center; 
    }
    
    .container { 
        padding: 1rem; 
    }
}