/* ===== SIDEBAR MODERNA - ESTILOS ADICIONAIS ===== */

/* Efeitos de glassmorphism */
.associacao-style .sidebar-dark-color {
    background: linear-gradient(180deg, var(--corPrincipal) 0%, var(--corSecundaria) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Melhorias no logo */
.associacao-style .sidebar-dark-color > .logo-switch {
    background: linear-gradient(135deg, var(--corPrincipal) 0%, var(--corSecundaria) 100%);
    position: relative;
    overflow: hidden;
}

.associacao-style .sidebar-dark-color > .logo-switch::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Efeitos de hover mais suaves */
.associacao-style .sidebar .nav-sidebar .nav-item .nav-link {
    position: relative;
    z-index: 1;
}

.associacao-style .sidebar .nav-sidebar .nav-item .nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.associacao-style .sidebar .nav-sidebar .nav-item .nav-link:hover::after {
    opacity: 1;
}

/* Ícones com efeitos especiais */
.associacao-style .sidebar .nav-sidebar .nav-item .nav-link i {
    position: relative;
    display: inline-block;
}

.associacao-style .sidebar .nav-sidebar .nav-item .nav-link i::before {
    transition: all 0.3s ease;
}

.associacao-style .sidebar .nav-sidebar .nav-item .nav-link:hover i::before {
    transform: scale(1.2) rotate(5deg);
}

/* Alinhamento correto da seta */
.associacao-style .sidebar .nav-sidebar .nav-item .nav-link .right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

/* Indicador de página ativa mais elegante */
.associacao-style .sidebar .nav-sidebar .nav-item .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Submenu com animação melhorada */
.associacao-style .sidebar .nav-sidebar .nav-treeview {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.associacao-style .sidebar .nav-sidebar .nav-item.has-treeview.menu-open .nav-treeview {
    transform: translateY(0);
    opacity: 1;
}

/* Menu expandido - apenas a seta deve girar */
.associacao-style .sidebar .nav-sidebar .nav-item.has-treeview.menu-open > .nav-link {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border-radius: 12px 12px 0 0;
}

.associacao-style .sidebar .nav-sidebar .nav-item.has-treeview.menu-open > .nav-link .nav-icon {
    color: #ffffff !important;
    transform: none !important;
}

.associacao-style .sidebar .nav-sidebar .nav-item.has-treeview.menu-open > .nav-link .right {
    color: #ffffff !important;
    transform: translateY(-50%) rotate(90deg);
    position: absolute;
    right: 15px;
    top: 50%;
}

/* Efeito de ripple nos botões */
.associacao-style .sidebar .nav-sidebar .nav-item .nav-link {
    position: relative;
    overflow: hidden;
}

.associacao-style .sidebar .nav-sidebar .nav-item .nav-link .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

    /* Melhorias na responsividade */
    @media (max-width: 768px) {
        .associacao-style .sidebar-dark-color {
            background: linear-gradient(180deg, var(--corPrincipal) 0%, var(--corSecundaria) 100%);
        }

    .associacao-style .sidebar .nav-sidebar .nav-item .nav-link {
        padding: 12px 15px;
        font-size: 13px;
    }

    .associacao-style .sidebar .nav-sidebar .nav-item .nav-link i {
        font-size: 14px;
        margin-right: 10px;
    }
}

/* Efeitos de loading para itens dinâmicos */
.associacao-style .sidebar .nav-sidebar .nav-item.loading {
    position: relative;
}

.associacao-style .sidebar .nav-sidebar .nav-item.loading .nav-link {
    color: rgba(255, 255, 255, 0.5) !important;
    pointer-events: none;
}

.associacao-style .sidebar .nav-sidebar .nav-item.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Melhorias no scrollbar */
.associacao-style .sidebar::-webkit-scrollbar {
    width: 8px;
}

.associacao-style .sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.associacao-style .sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.associacao-style .sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
}

/* Efeitos de sombra dinâmicos */
.associacao-style .sidebar .nav-sidebar .nav-item .nav-link:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.associacao-style .sidebar .nav-sidebar .nav-item .nav-link.active {
    box-shadow: 0 8px 25px rgba(18, 84, 206, 0.3);
}

/* Animações de entrada mais suaves */
.associacao-style .sidebar .nav-sidebar .nav-item {
    animation: slideInLeft 0.6s ease forwards;
    opacity: 0;
    transform: translateX(-30px);
}

.associacao-style .sidebar .nav-sidebar .nav-item:nth-child(1) { animation-delay: 0.1s; }
.associacao-style .sidebar .nav-sidebar .nav-item:nth-child(2) { animation-delay: 0.2s; }
.associacao-style .sidebar .nav-sidebar .nav-item:nth-child(3) { animation-delay: 0.3s; }
.associacao-style .sidebar .nav-sidebar .nav-item:nth-child(4) { animation-delay: 0.4s; }
.associacao-style .sidebar .nav-sidebar .nav-item:nth-child(5) { animation-delay: 0.5s; }
.associacao-style .sidebar .nav-sidebar .nav-item:nth-child(6) { animation-delay: 0.6s; }
.associacao-style .sidebar .nav-sidebar .nav-item:nth-child(7) { animation-delay: 0.7s; }
.associacao-style .sidebar .nav-sidebar .nav-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Efeitos de hover no logo */
.associacao-style .sidebar-dark-color > .logo-switch {
    transition: all 0.3s ease;
}

.associacao-style .sidebar-dark-color > .logo-switch:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Melhorias nos separadores */
.associacao-style .sidebar .nav-sidebar .nav-header {
    position: relative;
    margin: 20px 15px 10px 15px;
    padding: 15px 20px 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.associacao-style .sidebar .nav-sidebar .nav-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, var(--corPrincipal) 0%, var(--corSecundaria) 100%);
    border-radius: 0 2px 2px 0;
}

/* Efeitos de transição mais suaves */
.associacao-style .sidebar .nav-sidebar .nav-item .nav-link,
.associacao-style .sidebar .nav-sidebar .nav-item .nav-link i,
.associacao-style .sidebar .nav-sidebar .nav-treeview .nav-item .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Melhorias no estado ativo */
.associacao-style .sidebar .nav-sidebar .nav-item .nav-link.active {
    background: linear-gradient(90deg, var(--corPrincipal) 0%, var(--corSecundaria) 100%) !important;
    box-shadow: 0 4px 20px rgba(18, 84, 206, 0.25);
    transform: translateX(3px) scale(1.01);
}

/* Efeitos de profundidade */
.associacao-style .sidebar-dark-color {
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1);
}

/* Melhorias na acessibilidade */
.associacao-style .sidebar .nav-sidebar .nav-item .nav-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Efeitos de partículas no fundo (opcional) */
.associacao-style .sidebar-dark-color::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FIM DOS ESTILOS ADICIONAIS ===== */
