/**
 * Estilos personalizados para el dashboard
 */

/* Ajustes generales */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
}

/* Cards en móvil */
.card {
    border: 1px solid #dee2e6;
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Tabla responsive */
.table-responsive {
    border-radius: 0.375rem;
    overflow: hidden;
}

.table thead {
    background-color: #f8f9fa;
}

/* Botones */
.btn-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

/* Modal */
.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

/* Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Formularios */
.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Login page */
.min-vh-100 {
    min-height: 100vh;
}

.card.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Loading states */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Contenido con saltos de línea respetados (seguro con textContent) */
.content-prewrap {
    white-space: pre-wrap !important;   /* respeta saltos y envuelve */
    word-break: break-word;             /* evita desbordes */
    max-width: 100%;
}

