/* Estilos personalizados para el sistema de reportes DGA */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container-fluid {
    flex: 1;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Logo en navbar */
.navbar-brand img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

/* Tablas */
.table-responsive {
    overflow-x: auto;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

/* Mensajes */
.message-modal .modal-content {
    border-width: 2px;
}

.message-modal .modal-header {
    color: white;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Badges y estados */
.badge {
    font-size: 0.85em;
    padding: 0.35em 0.65em;
}

/* Filtros */
.filter-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Botones de acción */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 0.9rem;
    }

    .table {
        font-size: 0.875rem;
    }
}

/* Texto en rojo para registros atrasados */
.text-danger {
    color: #dc3545 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Links en celdas rojas (visor API) */
a.text-danger {
    text-decoration: none;
    transition: all 0.2s ease;
}

a.text-danger:hover {
    color: #bd2130 !important;
    text-decoration: underline;
    cursor: pointer;
}

/* Links en celdas amarillas (gaps diarios) */
.text-warning {
    color: #ffc107 !important;
}

a.text-warning {
    text-decoration: none;
    transition: all 0.2s ease;
}

a.text-warning:hover {
    color: #e0a800 !important;
    text-decoration: underline;
    cursor: pointer;
}

/* Indicador visual de gaps */
.has-gaps::after {
    content: " ⚠";
    font-size: 0.85em;
}

/* Animación para el loader */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
