:root {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --card-bg: #fff;
    --card-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] {
    --bg-color: #212529;
    --text-color: #f8f9fa;
    --card-bg: #343a40;
    --card-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero {
    background-color: var(--bg-color);
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.loading-spinner {
    display: none;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

.feature-card {
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.min-vh-75 {
    min-height: 75vh;
}

.form-label {
    font-weight: 500;
}

.flight-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.flight-card .airline-logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.flight-duration {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

.theme-toggle {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    margin-left: 15px;
    border: none;
    background: transparent;
    color: inherit;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.airport-autocomplete-wrapper {
    position: relative;
}

.airport-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: var(--card-shadow);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.airport-autocomplete.show {
    display: block;
}

.airport-option {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.airport-option:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.airport-option .airport-code {
    font-weight: bold;
    margin-right: 0.5rem;
}

.airport-option .airport-name {
    color: #6c757d;
    font-size: 0.875rem;
}

.flight-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.points-badge {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: #e3f2fd;
    color: #0d6efd;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
