* {
    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;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    animation: slideDown 0.6s ease-out;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.search-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    animation: slideUp 0.6s ease-out;
}

.input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

input[type="text"],
select {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: white;
    margin-top: 15px;
    font-size: 1.1em;
}

.error {
    background: #ff6b6b;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

.error.hidden,
.loading.hidden,
.result-container.hidden,
.remaining-time.hidden,
.note.hidden {
    display: none;
}

.result-container {
    animation: slideUp 0.4s ease-out;
}

.result-header {
    background: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
}

.result-header h2 {
    color: #333;
    font-size: 1.8em;
}

.provider-badge {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card.full-width {
    grid-column: 1 / -1;
}

.card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.card h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: #666;
}

.value {
    color: #333;
    text-align: right;
    word-break: break-word;
    max-width: 60%;
}

.status-display {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.status-badge {
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    min-width: 200px;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.status-scheduled {
    background: #ffeaa7;
    color: #d63031;
}

.status-active {
    background: #55efc4;
    color: #00b894;
}

.status-landed {
    background: #a29bfe;
    color: #6c5ce7;
}

.status-cancelled {
    background: #fab1a0;
    color: #e17055;
}

.status-delayed {
    background: #fdcb6e;
    color: #e67e22;
}

.time-display {
    font-size: 1.8em;
    font-weight: bold;
    color: #667eea;
    text-align: center;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    margin-top: 10px;
}

.note {
    background: #e8f4f8;
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.note p {
    color: #333;
    font-size: 0.9em;
}

footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    opacity: 0.8;
    padding: 20px;
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .input-group {
        flex-direction: column;
    }

    input[type="text"],
    select,
    button {
        width: 100%;
    }

    .result-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
    }

    .value {
        max-width: 100%;
        text-align: left;
    }
}
