/* Estilos generales */
body {
    background-color: #f8f9fa;
}

/* Estilos para la navbar */
.navbar {
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para las tablas */
.table {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* Mejora visual y legibilidad para todas las tablas */
.table th {
    font-weight: 600;
    color: #343a40;
}

.table td, .table th {
    vertical-align: middle;
    padding: 0.65rem 0.75rem;
}

.table.table-sm td, .table.table-sm th {
    padding: 0.35rem 0.5rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,0.03);
}

/* Evitar que los botones de acción se rompan en varias líneas */
.table td .btn {
    white-space: nowrap;
}

/* Pequeño redondeo y borde para que la tabla se vea como tarjeta */
.table {
    border-radius: 0.375rem;
    overflow: hidden;
}

/* DataTables controls agrupados y alineados */
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter {
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.25rem 0.5rem;
}

/* Estilos para los botones de acción */
.btn-editar {
    margin-right: 5px;
}

/* Estilos para los modales */
.modal-content {
    border-radius: 0.5rem;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Estilos para los formularios */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Estilos para mensajes de alerta */
.alert {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}