body {
    padding: 20px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

h1 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 300;
}

#formCreate {
    background: #2d2d2d;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#formCreate input {
    flex: 1;
    min-width: 150px;
    padding: 12px 15px;
    border: 2px solid #404040;
    border-radius: 6px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#formCreate input:focus {
    outline: none;
    border-color: #007acc;
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
}

#formCreate button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-right: 10px;
}

#formCreate button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);

}

#formFiltro {
    background: #2d2d2d;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#formFiltro input {
    flex: 1;
    min-width: 150px;
    padding: 12px 15px;
    border: 2px solid #404040;
    border-radius: 6px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#formFiltro input:focus {
    outline: none;
    border-color: #007acc;
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
}

#formFiltro button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-right: 10px;
}

#formFiltro button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#formFiltro h5 {
    text-align: center;
    width: 100%;
}


#tablaProductos {
    background: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#tablaProductos thead th {
    background: #404040;
    color: #ffffff;
    padding: 15px;
    font-weight: 500;
    border: none;
}

#tablaProductos tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #404040;
    color: #e0e0e0;
}

#tablaProductos tbody tr:hover {
    background: #353535;
}

#tablaVuelos {
    background: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#tablaVuelos thead th {
    background: #404040;
    color: #ffffff;
    padding: 15px;
    font-weight: 500;
    border: none;
}

#tablaVuelos tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #404040;
    color: #e0e0e0;
}

#tablaVuelos tbody tr:hover {
    background: #353535;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show {
    display: flex !important;
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
}

.modal-content {
    background: #2d2d2d;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 300;
}

#formEdit input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #404040;
    border-radius: 6px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

#formEdit input:focus {
    outline: none;
    border-color: #007acc;
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
}

#formEdit button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

#formEdit button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Action buttons in table */
.btn-action {
    padding: 6px 12px;
    margin: 0 2px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-action:hover {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    #formCreate {
        flex-direction: column;
    }

    #formCreate input {
        min-width: auto;
    }
}



body.light-theme {
    background-color: #f5f5f5;
    color: #222;
}

body.light-theme #formCreate,
body.light-theme #formFiltro,
body.light-theme #tablaProductos,
body.light-theme #tablaVuelos,
body.light-theme .modal-content {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-theme #formCreate input,
body.light-theme #formFiltro input,
body.light-theme #formEdit input {
    background: #ffffff;
    border: 2px solid #ccc;
    color: #222;
}

body.light-theme #tablaProductos thead th,
body.light-theme #tablaVuelos thead th {
    background: #e0e0e0;
    color: #000;
}

body.light-theme #tablaProductos tbody tr:hover,
body.light-theme #tablaVuelos tbody tr:hover {
    background: #f2f2f2;
}

body.light-theme h1,
body.light-theme h3 {
    color: #000;
}

body.light-theme .modal {
    background: rgba(255, 255, 255, 0.8);
}

body.light-theme #tablaVuelos tbody td,
body.light-theme #tablaProductos tbody td {
    color: #000;
}


/* === TABLA RESUMEN === */
#tablaResumen.table th,
#tablaResumen.table td {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-color: #404040 !important;
}

#tablaResumen.table th {
    background-color: #404040 !important;
}

/* === MODO CLARO === */
body.light-theme #tablaResumen.table {
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    border-radius: 10px !important;
}

body.light-theme #tablaResumen.table th,
body.light-theme #tablaResumen.table td {
    background-color: #ffffff !important;
    color: #222 !important;
    border-color: #ddd !important;
}

body.light-theme #tablaResumen.table th {
    background-color: #d0dcf6 !important;
    color: #000 !important;
}
