/* Free Flight - CSS Styles */
/* Diseño minimalista y elegante */

:root {
    --primary-color: #1E90FF;
    --primary-dark: #1873CC;
    --secondary-color: #5BB5FF;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --background: #FFFFFF;
    --background-light: #F8F9FA;
    --border-color: #E0E0E0;
    --error-color: #FF4444;
    --success-color: #00C851;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--background-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: auto;
}

/* Login Container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    max-width: 450px;
    width: 100%;
}

.logo {
    display: block;
    max-width: 200px;
    margin: 0 auto 30px;
}

.login-box h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 300;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-google {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    margin-top: 15px;
}

.btn-google:hover {
    background: var(--background-light);
    border-color: var(--primary-color);
}

.btn-secondary {
    background: var(--background-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--primary-color);
}

/* Botón pequeño */
.btn-sm {
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: auto;
    width: auto;
}

/* Botón outline para agregar empresa */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Select con botón integrado */
.select-with-button {
    display: flex;
    gap: 8px;
    align-items: center;
}

.select-with-button select {
    flex: 1;
    min-width: 0;
}

.select-with-button .btn-outline {
    flex-shrink: 0;
}

/* Select con botón agregar - Para campos de aeropuerto */
.select-with-add {
    display: flex;
    gap: 8px;
    align-items: center;
}

.select-with-add select {
    flex: 1;
    min-width: 0;
}

.select-with-add .btn-sm {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 0.875rem;
    white-space: nowrap;
    min-width: auto;
}

/* Estilos para selección múltiple de empresas */
.company-selection {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    background: var(--background-light);
}

.company-select-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.company-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.checkbox-item:hover {
    background: rgba(30, 144, 255, 0.1);
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-item label {
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.checkbox-item input[type="checkbox"]:required {
    position: relative;
}

.checkbox-item input[type="checkbox"]:required::after {
    content: '*';
    color: var(--error-color);
    position: absolute;
    right: -8px;
    top: -4px;
    font-size: 12px;
}

/* Scrollbar personalizado para checkboxes */
.company-checkboxes::-webkit-scrollbar {
    width: 6px;
}

.company-checkboxes::-webkit-scrollbar-track {
    background: var(--background-light);
}

.company-checkboxes::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* Divider */
.divider {
    margin: 25px 0;
    text-align: center;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Messages */
.error-message {
    background: #FFE5E5;
    color: var(--error-color);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.success-message {
    background: #E5FFE5;
    color: var(--success-color);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.info-message {
    background: #E5F5FF;
    color: var(--primary-color);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

/* Register Link */
.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 260px;
    background: var(--text-dark);
    color: white;
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo {
    filter: brightness(0) invert(1);
    margin-bottom: 30px;
}

.sidebar nav {
    margin-top: 30px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: var(--primary-color);
    color: white;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

.header {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card .label {
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Flight Card */
.flight-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    transition: all 0.3s;
}

.flight-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.flight-route {
    font-size: 1.25rem;
    font-weight: 600;
}

.flight-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.flight-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.flight-detail {
    font-size: 0.875rem;
}

.flight-detail-label {
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.flight-detail-value {
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-emptyleg {
    background: #E3F2FD;
    color: #1976D2;
}

.badge-pool {
    background: #F3E5F5;
    color: #7B1FA2;
}

.badge-private {
    background: #FFF3E0;
    color: #E65100;
}

.badge-pending {
    background: #FFF3E0;
    color: #F57C00;
}

.badge-approved {
    background: #E8F5E9;
    color: #388E3C;
}

.badge-paid {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-cancelled {
    background: #FFEBEE;
    color: #C62828;
}

/* Table */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding: 12px;
    background: var(--background-light);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--border-color);
}

table tr:hover {
    background: var(--background-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .flight-details {
        grid-template-columns: 1fr;
    }
    
    .login-box {
        padding: 30px 20px;
    }
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    z-index: 1000;
}

.bottom-nav nav {
    display: flex;
    justify-content: space-around;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.75rem;
    padding: 5px;
}

.bottom-nav a.active {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }
    
    .sidebar {
        display: none;
    }
    
    .main-content {
        padding-bottom: 80px;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    margin: 20px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Responsive modal design */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        max-width: none;
        margin: 10px auto;
        padding: 20px;
        max-height: 95vh;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content .form-group {
        width: 100%;
    }
}

/* Extra wide modal for complex forms like flight edit */
#editFlightModal .modal-content {
    max-width: 900px;
    width: 95%;
}

@media (max-width: 768px) {
    #editFlightModal .modal-content {
        max-width: 98%;
        width: 98%;
    }
    
    #editFlightModal .form-row {
        flex-direction: column;
    }
    
    #editFlightModal .form-group {
        width: 100%;
        margin-bottom: 15px;
    }
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }

/* Aircraft Grid Styles */
.aircraft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.aircraft-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.aircraft-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.aircraft-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Enhanced Aircraft Card Styles */
.aircraft-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.aircraft-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.aircraft-registration {
    background: #1E90FF;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    letter-spacing: 1px;
}

.aircraft-details {
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
}

.detail-item .label {
    color: #7f8c8d;
    font-weight: 500;
}

.detail-item .value {
    color: #2c3e50;
    font-weight: 600;
}

.aircraft-photos-preview {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.photo-preview {
    flex: 1;
    text-align: center;
}

.photo-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid #dee2e6;
}

.photo-thumb:hover {
    transform: scale(1.05);
    border-color: #1E90FF;
}

.photo-placeholder {
    width: 80px;
    height: 60px;
    background: #e9ecef;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.photo-preview small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 0.8em;
}

.aircraft-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.aircraft-info p {
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.aircraft-info strong {
    color: var(--text-dark);
    font-weight: 500;
}

.aircraft-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.aircraft-actions .btn {
    flex: 1;
    min-width: 80px;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.aircraft-actions .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.aircraft-actions .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.aircraft-actions .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.aircraft-actions .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.aircraft-actions .btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.aircraft-actions .btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

/* Companies Grid Styles */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.company-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.company-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.company-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.company-id {
    background: var(--accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.company-details {
    margin-bottom: 15px;
}

.company-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.company-actions .btn {
    flex: 1;
    min-width: 80px;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .aircraft-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .aircraft-card {
        padding: 15px;
    }
    
    .aircraft-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .aircraft-photos-preview {
        flex-direction: column;
        align-items: center;
    }
    
    .aircraft-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .aircraft-actions .btn {
        flex: 1;
        min-width: 80px;
    }
}

/* Companies responsive adjustments */
@media (max-width: 768px) {
    .companies-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .company-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .company-actions .btn {
        flex: 1;
        min-width: 80px;
    }
    
    .company-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.hidden { display: none; }

/* Sistema de Asientos como Avión */
.seat {
    width: 40px;
    height: 40px;
    border: 2px solid #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}

.seat.available {
    background: white;
    border-color: #ccc;
    color: #666;
}

.seat.available:hover {
    border-color: var(--primary-color);
    background: rgba(30, 144, 255, 0.1);
}

.seat.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.seat.unavailable {
    background: var(--error-color);
    border-color: var(--error-color);
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

.seat.selected::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid var(--primary-color);
}

/* Campos dinámicos de pasajeros */
.passenger-field {
    background: var(--background-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.passenger-field h4 {
    margin: 0 0 10px 0;
    color: var(--text-dark);
    font-size: 16px;
}

.passenger-form-row {
    display: flex;
    gap: 15px;
}

.passenger-form-group {
    flex: 1;
}

.passenger-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.passenger-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.passenger-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsivo para asientos */
@media (max-width: 480px) {
    .seat {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
    
    .passenger-form-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* Autocompletado para campo origen */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    font-size: 14px;
}

.autocomplete-item:hover {
    background: var(--primary-color);
    color: white;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Asegurar que el contenedor del campo origen tenga position relative */
.form-group {
    position: relative;
}

/* Clase para ocultar campos (ej: FECHA DESDE) */
.hidden-field {
    display: none !important;
}

/* Animaciones para feedback visual */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Mejoras en los estilos de asientos */
.seat {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color, #ddd);
    background: white;
    color: #333;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.seat.available {
    background: white;
    color: #333;
    border-color: var(--border-color, #ddd);
}

.seat.available:hover {
    background: #f8f9fa;
    transform: scale(1.05);
    border-color: var(--primary-color, #1E90FF);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

.seat.selected {
    background: var(--primary-color, #1E90FF);
    color: white;
    border-color: var(--primary-color, #1E90FF);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
    animation: pulse 0.6s ease-in-out;
}

.seat.unavailable {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Efectos hover para asientos disponibles */
.seat.available:hover::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: var(--primary-color, #1E90FF);
    font-weight: bold;
}

.seat.selected::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: white;
    font-weight: bold;
}

/* Loading states para botones */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Estados de validación visual */
.form-group.error input,
.form-group.error select {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.form-group.success input,
.form-group.success select {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.1);
}

.form-group.error input:focus {
    animation: shake 0.5s ease-in-out;
}

/* Mensajes de validación */
.validation-message {
    font-size: 12px;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 4px;
}

.validation-message.error {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.validation-message.success {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

/* ===== ESTILOS MEJORADOS PARA MINIATURAS DE AERONAVES ===== */

/* Miniaturas en vuelos disponibles */
.aircraft-thumbnails {
    display: flex;
    gap: 12px;
    margin: 12px 0;
    padding: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.thumbnail-container {
    flex: 1;
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    max-width: 50%;
}

.thumbnail-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.thumbnail-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.aircraft-thumbnail {
    width: 100%;
    height: 90px;
    max-width: 100%;
    max-height: 90px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.thumbnail-container:hover .aircraft-thumbnail {
    transform: scale(1.05);
}

/* Miniaturas en reservas */
.booking-thumbnails {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.booking-thumbnail-container {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    max-width: 65px;
    flex-shrink: 0;
}

.booking-thumbnail-container:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.booking-thumbnail-label {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.booking-thumbnail {
    width: 65px;
    height: 55px;
    max-width: 65px;
    max-height: 55px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.booking-thumbnail-container:hover .booking-thumbnail {
    transform: scale(1.03);
}

/* Responsive para miniaturas */
@media (max-width: 768px) {
    .aircraft-thumbnails {
        gap: 8px;
        margin: 8px 0;
        padding: 6px;
    }
    
    .thumbnail-container {
        max-width: 48%;
    }
    
    .aircraft-thumbnail {
        height: 75px;
        max-height: 75px;
    }
    
    .booking-thumbnail {
        width: 55px;
        height: 45px;
        max-width: 55px;
        max-height: 45px;
    }
    
    .booking-thumbnail-container {
        max-width: 55px;
    }
    
    .booking-thumbnails {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .thumbnail-label {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .booking-thumbnail-label {
        font-size: 8px;
        padding: 1px 4px;
    }
}
