/* ============================= */
/* 🌟 ESTILOS GENERALES */
/* ============================= */
body {
    background-color: #f8f9fa;
    font-family: 'Arial', sans-serif;
    color: #333;
}

.container-fluid {
    width: 98%;
}

/* ============================= */
/* 🌟 TABLA Y SCROLL */
/* ============================= */
.table-responsive {
    max-height: 75vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.table {
    font-size: 15px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.table thead {
    background-color: #343a40;
    color: white;
    font-size: 16px;
}

.table tbody tr {
    transition: background-color 0.2s ease-in-out;
}

.table tbody tr:hover {
    background-color: #e9ecef;
}

/* ============================= */
/* 🌟 BOTONES */
/* ============================= */
.btn {
    font-size: 16px;
    padding: 8px 12px;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
    border: none;
}

/* Botones con degradado */
.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34, #155d27);
    transform: scale(1.05);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    color: white;
    transform: scale(1.05);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #b21f2d);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b21f2d, #8e1723);
    transform: scale(1.05);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #003f80);
    transform: scale(1.05);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    transform: scale(1.05);
}

/* ============================= */
/* 🌟 MODALES */
/* ============================= */
.modal-content {
    border-radius: 10px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
    border: none;
    animation: fadeIn 0.3s ease-in-out;
}

/* Animación al abrir el modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translateY(-20px);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

/* Encabezado del modal Agregar */
.modal-header-add {
    background: linear-gradient(135deg, #198754, #157347);
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 15px;
}

/* Encabezado del modal Editar */
.modal-header-edit {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: black;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 15px;
}

/* Icono en el título del modal */
.modal-title i {
    margin-right: 10px;
}

/* Cuerpo del modal */
.modal-body {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Mayor separación entre campos */
.modal-body.row {
    gap: 10px 0;
}

/* Pie del modal */
.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px;
    background-color: #ffffff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* ============================= */
/* 🌟 FORMULARIOS */
/* ============================= */
.modal-body .form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease-in-out;
}

.modal-body .form-control:focus {
    border-color: #198754;
    box-shadow: 0px 0px 6px rgba(25, 135, 84, 0.5);
}

/* Etiquetas de los formularios */
.modal-body .fw-bold {
    font-weight: bold;
    color: #495057;
    margin-bottom: 5px;
}

/* ============================= */
/* 🌟 PAGINACIÓN */
/* ============================= */
.pagination {
    margin-top: 20px;
}

.pagination .page-link {
    color: #198754;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.pagination .active .page-link {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #198754;
}

/* ============================= */
/* 🌟 MEJORAS EN LOS INPUTS DE FECHA Y HORA */
/* ============================= */
.input-group-text {
    background-color: #198754;
    color: white;
    border: none;
    font-size: 18px;
    padding: 6px 12px;
    border-radius: 6px;
}

.input-group .form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease-in-out;
}

.input-group .form-control:focus {
    border-color: #198754;
    box-shadow: 0px 0px 6px rgba(25, 135, 84, 0.5);
}

/* Ajuste para mejor responsividad */
@media (max-width: 768px) {
    .input-group-text {
        font-size: 16px;
        padding: 5px 10px;
    }
}

