/* Flight Tracker Custom Styles */

:root {
    --primary-color: #0066cc;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

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

/* Header Styles */
.navbar-brand {
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004499 100%);
    min-height: 500px;
}

/* Flight Cards */
.flight-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.flight-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* Airline Cards */
.airline-card {
    transition: all 0.3s ease;
}

.airline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Airline Logo */
.airline-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.airline-logo-placeholder {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

/* Status Badges */
.badge-success {
    background-color: var(--success-color) !important;
}

.badge-warning {
    background-color: var(--warning-color) !important;
    color: #000 !important;
}

.badge-danger {
    background-color: var(--danger-color) !important;
}

.badge-info {
    background-color: var(--info-color) !important;
}

.badge-primary {
    background-color: var(--primary-color) !important;
}

.badge-secondary {
    background-color: var(--secondary-color) !important;
}

/* Statistics Cards */
.stat-item {
    padding: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.stat-card {
    border-radius: 8px;
    background: var(--light-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Search Forms */
.search-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    color: var(--primary-color);
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .flight-card .row > div {
        margin-bottom: 10px;
    }
    
    .airline-logo,
    .airline-logo-placeholder {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 350px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Utility Classes */
.text-break {
    word-break: break-word;
}

.cursor-pointer {
    cursor: pointer;
}

.border-light {
    border-color: #e9ecef !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .pagination {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}