/*
==================================================
    CUSTOM SIDEBAR - Sistema de Gestão Financeira
    Sidebar dark navy profissional
==================================================
*/

/* ============================================
   SIDEBAR PRINCIPAL
============================================ */
#kt_app_sidebar {
    background: #0D1B2A;
    border-right: none;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, left 0.3s ease;
}

[data-bs-theme="dark"] #kt_app_sidebar {
    background: #070E19;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.35);
}

/* ============================================
   MENU WRAPPER
============================================ */
#kt_app_sidebar_menu {
    padding: 0.75rem 0;
}

#kt_app_sidebar_menu_wrapper {
    padding: 0 0.75rem;
}

/* ============================================
   SEÇÕES DO MENU
============================================ */
.menu-section {
    color: #3D5475 !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.25rem 0.75rem 0.5rem 0.75rem !important;
    margin-bottom: 0.25rem;
}

/* ============================================
   ITENS DO MENU
============================================ */
.menu-item {
    margin-bottom: 2px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.875rem !important;
    border-radius: 6px;
    transition: background-color 0.18s ease, color 0.18s ease;
    position: relative;
    overflow: hidden;
    color: #8BA5C4;
    font-weight: 500;
    font-size: 0.88rem;
    min-height: unset;
}

.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.07);
    color: #E2EAF4;
}

/* ============================================
   MENU ATIVO
============================================ */
.menu-link.active {
    background-color: #1565C0 !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.4);
}

.menu-link.active .menu-title {
    color: #ffffff !important;
}

.menu-link.active .menu-icon {
    color: #ffffff !important;
}

.menu-link.active::before {
    display: none;
}

/* ============================================
   ÍCONES
============================================ */
.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.875rem;
    min-width: 30px;
    height: 30px;
    font-size: 1.25rem;
    transition: color 0.18s ease;
    color: #4A6D94;
}

.menu-link:hover .menu-icon {
    color: #90B8E0;
}

/* ============================================
   TÍTULO DO MENU
============================================ */
.menu-title {
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.18s ease;
    flex: 1;
    white-space: nowrap;
}

.menu-link:hover .menu-title {
    font-weight: 600;
}

/* ============================================
   BADGE/CONTADOR
============================================ */
.menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    font-weight: 700;
    background-color: #DC2626;
    color: #ffffff;
    border-radius: 9px;
    margin-left: auto;
}

/* ============================================
   BARRA LATERAL (indicador ativo)
============================================ */
.menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background-color: #1E88E5;
    border-radius: 0 3px 3px 0;
    transition: height 0.18s ease;
}

.menu-link:hover::before {
    height: 55%;
}

/* ============================================
   SCROLL PERSONALIZADO
============================================ */
.hover-scroll-y::-webkit-scrollbar {
    width: 4px;
}

.hover-scroll-y::-webkit-scrollbar-track {
    background: transparent;
}

.hover-scroll-y::-webkit-scrollbar-thumb {
    background: #1B2E45;
    border-radius: 10px;
}

.hover-scroll-y::-webkit-scrollbar-thumb:hover {
    background: #2D4A6B;
}

/* ============================================
   BULLET POINTS
============================================ */
.menu-bullet {
    display: flex;
    align-items: center;
    margin-right: 0.875rem;
    min-width: 22px;
    height: 22px;
    justify-content: center;
}

.bullet.bullet-dot {
    width: 6px;
    height: 6px;
    background-color: #3D5475;
    border-radius: 50%;
    transition: background-color 0.18s ease;
}

.menu-link:hover .bullet.bullet-dot {
    background-color: #90B8E0;
}

.menu-link.active .bullet.bullet-dot {
    background-color: #ffffff !important;
}

/* ============================================
   SEPARADOR
============================================ */
.menu-separator {
    height: 1px;
    background-color: #1B2E45;
    margin: 0.75rem 0.875rem;
}

/* ============================================
   SUBMENU
============================================ */
.menu-sub {
    padding-left: 2.25rem;
    margin-top: 2px;
}

.menu-sub .menu-link {
    padding: 0.55rem 0.875rem !important;
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVO MOBILE
============================================ */
@media (max-width: 991px) {
    #kt_app_sidebar {
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    }

    .menu-link {
        padding: 0.875rem 1rem !important;
        font-size: 0.92rem;
    }
}
