.preloadClass > div > div > div {
    background-color: #ffffff !important;
    border-radius: var(--bs-border-radius) !important;
}

:root {
    --primary-color: #0d6efd;
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 75px;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: #1e293b;
    overflow-x: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
}

/* --- LOGIN PAGE STYLES --- */
#login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* --- DASHBOARD LAYOUT --- */
#wrapper {
    display: flex;
    width: 100%;
}

#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--bg-dark);
    color: #fff;
    transition: all var(--transition-speed);
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 1050;
    overflow-y: auto;
}

#sidebar.collapsed {
    min-width: var(--sidebar-collapsed-width);
    max-width: var(--sidebar-collapsed-width);
}

#sidebar .nav-link {
    padding: 12px 20px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

#sidebar .nav-link:hover, #sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-left-color: var(--primary-color);
}

#sidebar .nav-link i:first-child {
    margin-right: 15px;
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

.arrow-icon {
    margin-left: auto;
    transition: transform 0.3s;
}
.nav-link[aria-expanded="true"] .arrow-icon { transform: rotate(90deg); }

#sidebar.collapsed .sidebar-label,
#sidebar.collapsed .arrow-icon,
#sidebar.collapsed .sidebar-header h4,
#sidebar.collapsed .submenu { display: none !important; }

.submenu { background: rgba(0,0,0,0.2); list-style: none; padding: 0; margin: 0; }
.submenu .nav-link { padding-left: 55px; font-size: 0.85rem; }

/* --- CONTENT AREA --- */
#content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.dash-header {
    background: #fff;
    padding: 12px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

#scroll-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.card { border: none; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }

.section-hidden { display: none !important; }

/* Botón Hamburguesa Corregido */
.toggle-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--bg-dark);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-btn:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Perfil Dropdown */
.profile-dropdown .dropdown-toggle::after { display: none; }
.profile-dropdown .dropdown-menu { border: none; box-shadow: 0 10px 15px rgba(0,0,0,0.1); border-radius: 10px; }