/*
 * Tema de colores personalizado
 * Sidebar negro y header gris claro
 */

/* ===== SIDEBAR NEGRO ===== */
.app-sidebar {
    background-color: #000000 !important;
    background: #000000 !important;
    border-right: 1px solid #333333 !important;
}

/* Usuario en el sidebar */
.app-sidebar__user {
    background-color: #000000 !important;
    border-bottom: 1px solid #333333 !important;
    color: #ffffff !important;
}

.app-sidebar__user-name {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.app-sidebar__user-designation {
    color: #cccccc !important;
}

.app-sidebar__user-avatar {
    border: 2px solid #333333 !important;
}

/* Menú del sidebar */
.app-menu {
    background-color: #000000 !important;
}

.app-menu__item {
    color: #ffffff !important;
    border-left: 4px solid transparent !important;
}

.app-menu__item .app-menu__icon {
    color: #ffffff !important;
}

.app-menu__item .app-menu__label {
    color: #ffffff !important;
}

/* Estados del menú - Hover verde como estaba antes */
.app-menu__item:not(.active):hover {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%) !important;
    border-left: 4px solid #388E3C !important;
    color: #ffffff !important;
    transform: translateX(2px) !important;
    transition: all 0.3s ease !important;
}

.app-menu__item:not(.active):hover .app-menu__icon,
.app-menu__item:not(.active):hover .app-menu__label {
    color: #ffffff !important;
}

.app-menu__item.active {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    border-left: 4px solid #2E7D32 !important;
    color: #ffffff !important;
}

.app-menu__item.active .app-menu__icon,
.app-menu__item.active .app-menu__label {
    color: #ffffff !important;
}

/* ===== HEADER GRIS CLARO ===== */
.app-header {
    background-color: #f5f5f5 !important;
    background: #f5f5f5 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Logo en el header - Fondo gris claro sin cambiar el tamaño */
.app-header__logo {
    color: #333333 !important;
    font-weight: bold !important;
    text-decoration: none !important;
    background-color: #f5f5f5 !important;
    font-family: Arial, sans-serif !important;
}

.app-header__logo:hover {
    color: #000000 !important;
    text-decoration: none !important;
    background-color: #e8e8e8 !important;
}

/* Toggle del sidebar */
.app-sidebar__toggle {
    color: #333333 !important;
    background-color: transparent !important;
}

.app-sidebar__toggle:hover {
    color: #000000 !important;
    background-color: #e0e0e0 !important;
    border-radius: 4px !important;
}

/* Navegación del header */
.app-nav {
    background-color: transparent !important;
}

.app-nav__item {
    color: #333333 !important;
    background-color: transparent !important;
}

.app-nav__item:hover {
    color: #000000 !important;
    background-color: #e0e0e0 !important;
    border-radius: 4px !important;
}

.app-nav__item i {
    color: #333333 !important;
}

.app-nav__item:hover i {
    color: #000000 !important;
}

/* Dropdown del usuario */
.dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.dropdown-item {
    color: #333333 !important;
}

.dropdown-item:hover {
    background-color: #f5f5f5 !important;
    color: #000000 !important;
}

/* ===== MODO RESPONSIVE ===== */
@media (max-width: 767px) {
    .app-sidebar {
        background-color: #000000 !important;
    }
    
    .app-header {
        background-color: #f5f5f5 !important;
    }
}

/* ===== MODO SIDEBAR MINI ===== */
@media (min-width: 768px) {
    .sidebar-mini.sidenav-toggled .app-sidebar {
        background-color: #000000 !important;
        overflow: visible !important;
    }
    
    .sidebar-mini.sidenav-toggled .app-menu__item:hover::after {
        background: rgba(0, 0, 0, 0.9) !important;
        color: #ffffff !important;
        border: 1px solid #333333 !important;
    }
}

/* ===== ALERTAS Y NOTIFICACIONES ===== */
.app-nav__item .fa-bell {
    color: #333333 !important;
}

.app-nav__item:hover .fa-bell {
    color: #000000 !important;
}

/* Punto rojo de notificación */
.app-nav__item span[style*="background:#e53935"] {
    background: #e53935 !important;
    border: 1px solid #ffffff !important;
}

/* ===== SCROLLBAR DEL SIDEBAR ===== */
.app-sidebar::-webkit-scrollbar {
    width: 6px !important;
    background-color: #000000 !important;
}

.app-sidebar::-webkit-scrollbar-thumb {
    background-color: #333333 !important;
    border-radius: 3px !important;
}

.app-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #555555 !important;
}

.app-sidebar::-webkit-scrollbar-track {
    background-color: #000000 !important;
}