body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8;
    color: #334155;
    padding: 2rem;
}

.container {
    background-color: #ffffff;
    border-radius: 0.75rem;
    /* rounded-xl */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* shadow-lg */
    padding: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 0.75rem;
    overflow: hidden;
    /* Asegura que las esquinas redondeadas se apliquen a la tabla */
}

th,
td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    /* border-b border-gray-200 */
}

th {
    background-color: #edf2f7;
    /* bg-gray-100 */
    color: #4a5568;
    /* text-gray-700 */
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9fafb;
    /* bg-gray-50 para filas pares */
}

tr:hover {
    background-color: #e2e8f0;
    /* bg-gray-200 al pasar el ratón */
}

/* Estilos específicos de DataTables */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    background-color: #cbd5e0;
    /* bg-gray-400 */
    color: #ffffff !important;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background-color: #3b82f6;
    /* bg-blue-500 */
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current) {
    background-color: #94a3b8;
    /* bg-gray-500 */
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing {
    margin-bottom: 1rem;
    color: #4a5568;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #cbd5e0;
    /* border border-gray-400 */
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-left: 0.5rem;
    transition: border-color 0.2s;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: #3b82f6;
    /* border-blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    /* ring-blue-500/25 */
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

/* Estilo para el checkbox del encabezado */
.select-all-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* cropper-modal.css - Estilos específicos para el modal de recorte */

/* Modal de recorte */
.crop-modal {
    display: none;
    position: fixed;
    z-index: 1060;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.crop-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
}

.crop-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1070;
}

.crop-modal-close:hover {
    color: black;
}

/* Contenedor de la imagen para recortar */
.crop-img-container {
    max-height: 70vh;
    overflow: hidden;
}

.crop-img-container img {
    display: block;
    max-width: 100%;
    max-height: 60vh;
}

/* Botones del modal */
.crop-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.crop-modal-btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.crop-modal-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.crop-modal-btn-primary {
    background-color: #0d6efd;
    color: white;
}

.crop-modal-btn:hover {
    opacity: 0.9;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .crop-modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 15px;
    }
    
    .crop-img-container {
        max-height: 60vh;
    }
}