/* Estilos generales */
** {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Layout principal */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-content {
    display: flex;
    flex: 1;
    padding: 1rem;
    gap: 1rem;
}

.left-panel {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.right-panel {
    width: 60%;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Footer con estilo adaptado al diseño existente */
.app-footer {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 1.5rem 1rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.app-footer h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 1px solid #4a6380;
    padding-bottom: 0.5rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.instruction-block {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.instruction-block h4 {
    color: #3498db;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.instruction-block ul, 
.instruction-block ol {
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
}

.instruction-block li {
    margin-bottom: 0.4rem;
}

.footer-note {
    text-align: center;
    margin-top: 2rem;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.copyright {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    opacity: 0.8;
}
/* Formulario de vuelo */
.flight-form-container {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.flight-form-container h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.flight-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.flight-details input[type="text"],
.flight-details input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.file-input-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: block;
    background-color: #f5f5f5;
    color: #333;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.submit-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.passenger-summary {
    background-color: #e8f5e9;
    border-radius: 4px;
    padding: 0.5rem;
    color: #2e7d32;
}

/* Lista de vuelos */
.flight-list-container {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.flight-list-container h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.flight-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.flight-card {
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid #3498db;
}

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

.flight-card.selected {
    background-color: #e1f5fe;
    border-left-color: #00b0ff;
}

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

.flight-card-header h3 {
    margin: 0;
    color: #333;
}

.delete-btn {
    background-color: #ff5252;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.flight-card-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.stat-value {
    font-weight: bold;
    color: #333;
}

.flight-card-date {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

.flight-list-empty {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

/* Lista de pasajeros */
.passenger-list-container {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.flight-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #555;
}

.passengers-section {
    margin-bottom: 2rem;
}

.passengers-section h3 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.status-icon {
    margin-right: 0.5rem;
}

.reservation-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reservation-group {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.family-group {
    background-color: #f5f5f5;
    border-left: 3px solid #3498db;
}

.reservation-id {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #555;
}

.passenger-list-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.passenger-card {
    background-color: white;
    border-radius: 6px;
    padding: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

.passenger-name {
    font-weight: 600;
}

.passenger-category {
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    background-color: #f0f0f0;
    border-radius: 2rem;
}

.passenger-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.passenger-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 2rem;
}

.tag.connection {
    background-color: #e3f2fd;
    color: #1976d2;
}

.tag.baggage {
    background-color: #fff8e1;
    color: #ff8f00;
}

.family-tag {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #3498db;
}

.legend {
    margin-top: 2rem;
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 1rem;
}

.legend h4 {
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.empty-list {
    color: #7f8c8d;
    text-align: center;
    padding: 1rem;
}

.no-data-message {
    color: #7f8c8d;
    text-align: center;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .app-content {
        flex-direction: column;
    }

    .left-panel, .right-panel {
        width: 100%;
    }
}