/*!
* Start Bootstrap - Simple Sidebar (http://startbootstrap.com/)
* Copyright 2013-2016 Start Bootstrap
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
*/

body {
    overflow-x: hidden;
}
/* Toggle Styles */
#menu-desktop {
    padding: 0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

    #menu-desktop #menu-overlay {
        position: fixed;
        display: none;
        width: 100%;
        height: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.6);
        z-index: 98;
        animation: opac 0.8s;
        display: none;
    }    #menu-desktop #menu-lateral {
        z-index: 99;
        position: absolute;
        top: 0;
        left: 0;
        width: 250px;
        min-height: 100%;
        height: auto;
        overflow-y: hidden;
        -webkit-transition: all 0.5s ease;
        -moz-transition: all 0.5s ease;
        -o-transition: all 0.5s ease;
        transition: all 0.5s ease;
        display: none;
    }

    #menu-desktop .menu-block {
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 0;
    }

#menu-content {
    height: 100%;
}

#menu-structure {
    height: 100%;
}

    #menu-structure .menu-group {
        padding: 14px 0 10px 15px;
        border-bottom: 1px solid #17a8bb;
    }

#menu-modules ul li.menu-item span span::before {
    vertical-align: middle;
}

#menu-structure .menu-item {
    height: auto;
    padding: 10px 0 14px 15px !important;
    cursor: pointer;
}

#menu-structure .list-unstyled.ng-scope {
    border-bottom: 1px solid #2468b1; /* Alterado para azul claro */
}

.list-unstyled li span.ico-chevron-down {
    font-size: 1.3rem;
    margin-left: 5px;
}

.menu-group span span.ico-pin {
    font-size: 1.3rem;
    margin-right: 5px;
}

.list-unstyled li .menu-item-text span.ico-chevron-down, span.ico-chevron-up {
    font-size: 1.3rem;
    margin: 5px 10px 0 0;
    float: right;
}

#menu-structure .menu-item:hover {
    background: #0d4585 !important; /* Azul mais escuro para hover */
    color: #ffffff !important;
    transition: background 0.3s ease;
}

#menu-structure .menu-item:active {
    background: #0c3a74 !important; /* Azul ainda mais escuro para estado ativo */
    color: #ffffff !important;
}

#menu-structure .menu-item.active,
#menu-structure .submenu-item menu-item.active {
    background: #0c3a74 !important; /* Azul mais escuro para item ativo */
    color: #ffffff !important;
    font-weight: normal;
    border-left: 3px solid #ffffff; /* Destaque lateral para item ativo */
}

#menu-structure .menu-item span img {
    padding-right: 10px;
}

#menu-structure .submenu-item {
    margin-left: 20px;
    margin-top: 11px;
    font-size: 1.4rem;
}

#menu-desktop.toggled #sidebar-min {
    display: none;
}

#menu-desktop.toggled #menu-overlay,
#menu-desktop.toggled #menu-lateral {
    display: block;
}

#menu-desktop.fixed-menu #menu-overlay,
#menu-desktop.fixed-menu #sidebar-min {
    display: none;
}

#menu-desktop.fixed-menu {
    padding-left: 250px;
}

    #menu-desktop.fixed-menu #menu-lateral {
        display: block;
        left: 250px;
        margin-left: -250px;
        -webkit-transition: all 0.5s ease;
        -moz-transition: all 0.5s ease;
        -o-transition: all 0.5s ease;
        transition: all 0.5s ease;
    }

#menu-workspace {
    position: relative;
    margin-left: 60px;
}

#menu-desktop.fixed-menu #menu-workspace {
    position: relative;
    width: 100%;
    margin-left: 0;
    padding-right: 5px;
}

#menu-applications {
    height: 100%;
}

.menu-item-text label {
    cursor: pointer;
    font-weight: normal;
    margin-left: 10px;
    font-size: 1.4rem;
}

.list-unstyled {
    min-height: 100%;
    background-color: #1a5799; /* Alterado para azul */
}

/* Elements sidebar */
#sidebar-min {
    display: block;
    z-index: 99;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 65px;
    background-color: #1a5799; /* Alterado para azul */
    text-align: left;
    color: #ffffff;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

    #sidebar-min ul li {
        cursor: pointer;
        padding: 14px 0 10px 15px;
        border-bottom: 1px solid #2468b1; /* Alterado para azul claro */
    }#sidebar-min ul li.active {
        background-color: #0c3a74; /* Azul escuro para estado ativo */
        color: #ffffff;
        border-left: 3px solid #ffffff; /* Indicador visual de item ativo */
    }
/* Cores personalizadas para sidebar */
#menu-lateral {
    background-color: #1a5799 !important; /* Alterado para azul */
    color: #ffffff !important;
}

#menu-structure {
    background-color: #1a5799 !important; /* Alterado para azul */
    color: #ffffff !important;
}

#menu-structure .menu-group {
    color: #ffffff !important;
    border-bottom: 1px solid #2468b1; /* Ajustado para cor mais clara de azul */
}

#menu-structure .list-unstyled.ng-scope {
    border-bottom: 1px solid #2468b1; /* Ajustado para cor mais clara de azul */
}

#menu-structure .menu-item {
    color: #ffffff !important;
    transition: all 0.3s ease;
    position: relative; /* Adicionado para posicionamento relativo */
    overflow: hidden; /* Prevenir vazamento de efeitos */
}

#menu-structure .menu-item span {
    color: #ffffff !important;
}

.menu-item-text label {
    color: #ffffff !important;
}

#menu-structure .submenu-item {
    color: #ffffff !important;
    background-color: #1a5799 !important; /* Adicionando cor de fundo forte para submenus */
    padding: 8px 15px;
}

#sidebar-min ul li {
    color: #ffffff !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid #2468b1; /* Borda azul mais clara */
}

#sidebar-min ul li:hover {
    background-color: #0d4585 !important; /* Azul mais escuro para hover */
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); /* Efeito sutil de borda interna */
}

/* Ícones e elementos visuais */
#menu-structure .menu-item span img {
    filter: brightness(0) invert(1); /* Torna os ícones brancos */
}

/* Correções de hover e efeitos visuais */
#menu-structure .menu-item {
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease, border-left 0.3s ease;
}

#menu-structure .menu-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

#menu-structure .menu-item:hover:before {
    width: 5px;
}

#menu-structure .submenu-item:hover {
    background-color: #0d4585 !important; /* Azul mais escuro para hover */
    color: #ffffff !important;
}

/* Melhorias na experiência de usuário */
#menu-structure .menu-item:focus,
#sidebar-min ul li:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Indicador de item com submenu */
.list-unstyled li .menu-item-text span.ico-chevron-down, 
.list-unstyled li .menu-item-text span.ico-chevron-up {
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.list-unstyled li:hover .menu-item-text span.ico-chevron-down, 
.list-unstyled li:hover .menu-item-text span.ico-chevron-up {
    opacity: 1;
}

.list-unstyled li:hover .menu-item-text span.ico-chevron-down {
    transform: translateY(2px);
}

.list-unstyled li:hover .menu-item-text span.ico-chevron-up {
    transform: translateY(-2px);
}

/* Garantir que todos os submenus tenham a mesma cor de fundo */
.list-unstyled li,
.list-unstyled li a,
.list-unstyled li div {
    background-color: #1a5799 !important;
}

/* Garantir consistência para os menus quando abertos */
#menu-structure .list-unstyled li,
#menu-structure .submenu-item,
#menu-structure .menu-item {
    background-color: #1a5799 !important;
}

/* Garantir que ao abrir/fechar submenus, todos os itens mantenham a mesma cor */
#menu-structure .list-unstyled.ng-scope,
#menu-structure .list-unstyled.ng-scope li,
#menu-structure .list-unstyled.ng-scope .submenu-item {
    background-color: #1a5799 !important;
}

/* Seletor específico para submenus do Central do Aluno */
li.ng-scope > ul.ng-scope > li.ng-scope {
    background-color: #1a5799 !important;
}

/* Permitir hover com cor mais escura */
#menu-structure .menu-item:hover,
#menu-structure .submenu-item:hover,
.list-unstyled li:hover {
    background-color: #0d4585 !important;
}

/* Reset para elementos específicos de submenu */
#menu-structure ul.ng-scope,
#menu-structure ul.ng-scope li {
    background-color: #1a5799 !important;
}

/* Regras específicas para o menu Central do Aluno e seus subitems */
#menu-structure li[ng-if="$desktop.AlunoAtivo()"] ul li,
#menu-structure li[ng-if="$desktop.AlunoAtivo()"] .submenu-item,
#menu-structure li[ng-if="$desktop.AlunoAtivo()"] .menu-item,
#menu-structure li[ng-click*="Central"] ul li,
#menu-structure li[ng-click*="Central"] .submenu-item {
    background-color: #1a5799 !important;
    color: #ffffff !important;
}

/* Forçar cor para submenus mais internos, independentemente da estrutura */
#menu-lateral ul ul li,
#menu-lateral ul ul li a,
#menu-lateral ul ul li div,
#menu-lateral .submenu-item {
    background-color: #1a5799 !important;
    color: #ffffff !important;
}

/* Forçar cor azul para todos os itens no estado padrão (não hover) */
#menu-structure .menu-item,
#menu-structure .submenu-item,
#menu-structure ul li,
#menu-structure ul ul li {
    background-color: #1a5799 !important;
}

/* Forçar cor de fundo para qualquer elemento dentro do menu que possa ter um fundo alterado */
#menu-lateral *,
#menu-structure *,
.list-unstyled * {
    background-color: #1a5799 !important;
}

/* Exceção para hover e estados ativos */
#menu-structure .menu-item:hover,
#menu-structure .submenu-item:hover,
.list-unstyled li:hover,
#menu-structure .menu-item.active,
#menu-structure .submenu-item.active {
    background-color: #0d4585 !important;
}

/* Garantir que elementos de texto dentro do menu também tenham o fundo correto */
#menu-structure span,
#menu-structure label,
#menu-structure a,
#menu-structure div {
    background-color: transparent !important;
}

/* Corrigir problema específico com popups e elementos flutuantes */
.menu-item.open > ul,
.menu-item.open > div,
.menu-item.open .submenu-item {
    background-color: #1a5799 !important;
}

/* Controle de responsividade para o menu lateral */
/* Estilos padrão para menu lateral - comportamento normal de toggle */
