/* Sidebar styles */
.sidebar {
    min-height: 100vh;
    width: 260px;
    background-color: #1e293b;
    color: #e2e8f0;
    transition: all 0.3s;
}
.sidebar a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    padding: 0.75rem 1rem;
    transition: 0.2s;
}
.sidebar a:hover {
    background-color: #334155;
    color: white;
}
.sidebar .active {
    background-color: #0f172a;
    color: white;
    border-left: 4px solid #3b82f6;
}

/* Main content area */
.main-content {
    background-color: #f1f5f9;
    min-height: 100vh;
}

/* Card styles */
.stat-card {
    border-left: 4px solid;
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-5px);
}

/* Utility classes */
.cursor-pointer {
    cursor: pointer;
}

/* assets/css/style.css - Estilos adicionales */

/* Ajuste para el contenido principal */
.main-content {
    background-color: #f1f5f9;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Para desktop, el contenido principal tiene margen izquierdo */
@media (min-width: 768px) {
    .main-content {
        margin-left: 0;
        width: calc(100% - 260px);
    }
}

/* Para móvil, el contenido ocupa todo el ancho */
@media (max-width: 767.98px) {
    .main-content {
        width: 100%;
        margin-left: 0;
        padding-top: 60px; /* Espacio para el botón toggle */
    }
}

/* Ajuste del navbar para móvil */
@media (max-width: 767.98px) {
    .navbar {
        margin-left: 0;
    }
    
    #navbar-container .navbar {
        padding-left: 70px;
    }
}

/* Animación para el botón toggle */
.mobile-menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1060;
    background: #1e293b;
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: #3b82f6;
    transform: scale(1.05);
}

.mobile-menu-toggle i {
    font-size: 1.5rem;
}

.mobile-menu-toggle:hover {
    background: #3b82f6;
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Mejoras para la sidebar en desktop */
@media (min-width: 768px) {
    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
    }
}

/* Ajustes para tablas en móvil */
@media (max-width: 767.98px) {
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table td, .table th {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    /* Mejorar visibilidad de botones en móvil */
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .btn-group .btn {
        flex: 1;
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Ajustar cards en móvil */
    .stat-card {
        margin-bottom: 1rem;
    }
    
    /* Mejorar formularios en móvil */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    /* Ajustar gráficas en móvil */
    canvas {
        max-height: 250px;
    }
}







/* assets/css/style.css - Asegurar que el botón sea visible */
.mobile-menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1060;
    background: #1e293b;
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

@media (max-width: 767.98px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Asegurar que el sidebar se muestre correctamente */
.sidebar {
    z-index: 1050;
}

.sidebar-overlay {
    z-index: 1040;
}


/* assets/css/style.css - Agregar al final */

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    margin-top: 2rem;
}

.footer .text-muted {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.footer i {
    margin-right: 4px;
}

.footer a {
    text-decoration: none;
    font-weight: 500;
}

/* Ajuste para que el footer siempre esté al fondo */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#app-content {
    flex: 1;
}

/* Animación suave para el hover del footer */
.footer a i {
    transition: transform 0.2s ease;
}

.footer a:hover i {
    transform: translateX(3px);
}

/* Estilo para el toggle switch */
.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-check-input:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Animación para el cambio de estado */
.status-text {
    transition: all 0.2s ease;
}

.toggle-status {
    cursor: pointer;
}

.toggle-status:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* assets/css/style.css - Agregar al final */

/* Estilos para botones de DataTables */
.dt-buttons {
    margin-bottom: 1rem;
}

.dt-buttons .btn {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.dataTables_filter {
    text-align: right;
}

.dataTables_filter input {
    margin-left: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

/* Estilos para el footer de la tabla */
.table tfoot {
    background-color: #f8f9fa;
    font-weight: 500;
}

/* Estilos para exportación */
.dt-button-background {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .dt-buttons {
        margin-bottom: 1rem;
    }
    
    .dataTables_filter {
        text-align: left;
        margin-top: 1rem;
    }
}

/* Agregar a assets/css/style.css */

/* Mejorar la apariencia del input file */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

.form-control[type="file"]::file-selector-button {
    background-color: #e9ecef;
    border: none;
    padding: 0.375rem 0.75rem;
    margin-right: 0.75rem;
    border-radius: 0.25rem;
}

.form-control[type="file"]::file-selector-button:hover {
    background-color: #dee2e6;
}

/* Asegurar que todos los labels tengan la misma altura */
.form-label {
    margin-bottom: 0.25rem;
    font-weight: 600;
}