body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -250px;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
}

#page-content-wrapper {
    min-width: 100vw;
    padding-bottom: 50px; /* Espacio para el pie de página fijo */
}

body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 992px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
        margin-left: -250px;
    }
}

.login-card {
    border-radius: 15px !important;
}

.cursor-pointer {
    cursor: pointer;
}

.rounded-4 { border-radius: 1rem !important; }
.rounded-5 { border-radius: 1.5rem !important; }

.transition-all { transition: all 0.3s ease; }

/* Premium Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Sidebar Shadow */
#sidebar-wrapper {
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Tablas Responsivas Mejoradas */
.table-responsive {
    border-radius: 12px;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

/* Forzar que las tablas no se compriman demasiado en movil */
@media (max-width: 768px) {
    .table:not(.table-sm) {
        min-width: 600px; /* Asegura que aparezca el scroll horizontal para ver las acciones */
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1); 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2); 
}

/* Footer Fijo con Respeto al Sidebar */
.main-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0;
    right: 0 !important;
    z-index: 1030 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: left 0.3s ease;
    border-top: 1px solid #dee2e6;
}

@media (min-width: 992px) {
    /* Si el sidebar esta visible (desktop), el footer empieza despues de 250px */
    .main-footer {
        left: 250px !important;
    }
    
    /* Si el sidebar se oculta en desktop */
    body.sb-sidenav-toggled .main-footer {
        left: 0 !important;
    }
}

/* Mobile specific paddings */
@media (max-width: 992px) {
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .p-5 {
        padding: 1.5rem !important;
    }
}
