:root {
    --united-blue: #002244;
    --united-gold: #FFB612;
    --united-gray: #808080;
    --united-light-gray: #F2F2F7;
    --united-blue-light: #e1efff;
    --united-gray-light: #f7f7f9;
    --success-green: #4CAF50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--united-light-gray);
    color: var(--united-blue);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
}

@media (max-width: 640px) {
    .container {
        margin: 1rem auto;
        padding: 1rem;
    }
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--united-blue);
}

.search-form {
    background-color: var(--united-blue-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-form h2 {
    color: var(--united-blue);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.search-form + .search-form {
    background-color: var(--united-gray-light);
    border-top: 3px solid var(--united-blue);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--united-blue);
}

input[type="text"],
input[type="date"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--united-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    background-color: white;
}

input[type="text"]:focus,
input[type="date"]:focus {
    border-color: var(--united-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 34, 68, 0.1);
}

#searchButton {
    background: var(--united-blue);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

#searchButton:hover {
    background: var(--united-gold);
    color: var(--united-blue);
}

#findFlightButton,
#checkInteriorButton {
    background: var(--united-blue);
    color: white;
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--united-blue);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: all 0.2s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#findFlightButton:hover,
#checkInteriorButton:hover {
    background: var(--united-gold);
    border-color: var(--united-gold);
}

#findFlightButton:active,
#checkInteriorButton:active {
    transform: translateY(0);
}

#findFlightButton:focus,
#checkInteriorButton:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 34, 68, 0.2);
}

.results-container {
    margin-top: 2rem;
}

.results {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Hide empty results container */
.results:empty {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

.search-results {
    margin-top: 2rem;
}

.search-results h3 {
    color: var(--united-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.interior-result {
    background: #fff;
    color: #222;
    border: 3px solid #1db954;
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: center;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Special styling for aircraft with next interior */
.has-next-interior {
    border: 3px solid #24b54f;
    box-shadow: 0 4px 8px rgba(36, 181, 79, 0.2);
    animation: pulse 2s infinite;
}

/* Styling for aircraft with standard interior */
.has-standard-interior {
    border: 3px solid #f5a623;
    box-shadow: 0 4px 8px rgba(245, 166, 35, 0.2);
}

.next-interior-message {
    color: #24b54f;
    font-weight: bold;
    margin-top: 1rem;
    font-size: 1.1em;
}

.standard-interior-message {
    color: #f5a623;
    font-weight: bold;
    margin-top: 1rem;
    font-size: 1.1em;
}

.sparkle-emoji, .plane-emoji {
    font-size: 1.2em;
    display: inline-block;
    margin: 0 5px;
}

.sparkle-emoji {
    animation: sparkle 1.5s infinite;
}

.plane-emoji {
    animation: fly 3s infinite;
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(36, 181, 79, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(36, 181, 79, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(36, 181, 79, 0);
    }
}

@keyframes sparkle {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes fly {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

.interior-status {
    font-size: 1.1em;
    margin: 0.5rem 0;
}

.fleet-type {
    color: var(--united-blue);
    font-size: 1.1em;
}

.timestamp {
    color: var(--united-gray);
    font-size: 0.9em;
    text-align: center;
    margin-top: 1.5rem;
    font-style: italic;
}

.error-message {
    color: #e53935;
    text-align: center;
    font-weight: bold;
    padding: 1rem;
    background: #ffebee;
    border-radius: 8px;
}

/* Styling for interior check results */
.next-interior-result {
  border: 2px solid #2ecc40;
  background: #eaffea;
  color: #218c2e;
  border-radius: 8px;
  padding: 1em;
  margin: 1em 0;
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 0 0 8px #b6ffb6;
}

.standard-interior-result {
  border: 2px solid #ffb84d;
  background: #fff8e1;
  color: #b36b00;
  border-radius: 8px;
  padding: 1em;
  margin: 1em 0;
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 0 0 8px #ffe0b3;
}

.green-border {
    border-color: #1db954 !important;
}

.interior-main {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #222;
}

.interior-details {
    font-size: 1rem;
    color: #444;
    margin-top: 0.25rem;
}

/* Loading spinner styles */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.loading.hidden {
    display: none !important;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 34, 68, 0.2);
    border-top: 4px solid var(--united-blue);
    border-radius: 50%;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

/* New feature highlight */
.new-feature {
    background-color: var(--united-gold);
    color: var(--united-blue);
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
}

/* Success message */
.success-message {
    background-color: var(--success-green);
    color: white;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 500;
}

/* Manual check link */
.manual-check {
    text-align: center;
    margin: 16px 0;
}

.manual-check a {
    display: inline-block;
    background-color: var(--united-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.manual-check a:hover {
    background-color: #003366;
}