/* overlay-menu */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 998;
}

.overlay-menu.active {
    opacity: 1;
    visibility: visible;
}

/* Menu Lateral */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 340px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 16px rgba(0,0,0,0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.side-bar-top {
    position: absolute;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #202124;
    justify-content: flex-end;
}

.side-bar-close {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #202124;
    padding: 0.4em;
}

.side-bar-close i {
    font-size: 1.5rem;
    color: #cb7753;
}

.sidebar.active {
    left: 0;
}

/* Header do Menu com Login */
.sidebar-header {
    background: white;
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    align-content: center;
    flex-direction: row;
}

.login-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-icon {
    width: 48px;
    height: 48px;
    /* background: #e8f4fd; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #043f20;
    font-size: 1.5rem;
}

.login-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.login-text h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 0.15rem;
}

.login-text p {
    font-size: 0.875rem;
    color: #5f6368;
    margin: 0;
    padding: 0;
}

.login-text a {
    color: #043f20;
    text-decoration: none;
    font-weight: 500;
}

.menu-link-login {
    color: #cb7753 !important;
    text-decoration: none;
    font-weight: 700 !important;
}

/* Seção de Plataformas com logos */
.platforms-section {
    padding: 1.25rem;
    background: #fafafa;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: #202124;
}

.platform-item:last-child {
    margin-bottom: 0;
}

.platform-item:active {
    background: #f5f5f5;
}

.platform-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.logo-bis {
    background: linear-gradient(135deg, #bb9928 0%, #7d6411 100%);
    color: white;
}

.logo-funcionais {
    background: linear-gradient(135deg, #360d79 0%, #230553 100%);
    color: white;
}

.logo-plantbased {
    background: linear-gradient(135deg, #389b31 0%, #1e6519 100%);
    color: white;
}

.platform-name {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Menu Items - estilo limpo */
.menu-section {
    padding: 0.5rem 0;
}

.menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.menu-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    color: #202124;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}

.menu-item-link:active {
    background: #f5f5f5;
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.menu-item-left i {
    width: 24px;
    font-size: 1.1rem;
    color: #5f6368;
    margin-right: 1rem;
}

.menu-item-text {
    font-size: 0.95rem;
    font-weight: 400;
    color: #202124;
}

.menu-item-arrow {
    color: #9aa0a6;
    font-size: 0.875rem;
}

/* Ferramentas em destaque */
.tools-highlight {
    padding: 1.25rem;
    background: white;
    border-bottom: 8px solid #f5f5f5;
}

.tools-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #202124;
}

.tool-card:last-child {
    margin-bottom: 0;
}

.tool-card:active {
    background: #e8eaed;
    transform: scale(0.98);
}

.tool-icon {
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a1904;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid #e8eaed;
}

.tool-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    margin: 0;
    padding: 0;
}

.menu-cotacao {
    color: #043f20;
}

.menu-guia {
    color: #cb7753;
}

.menu-votacoes {
    color: #219237;
}

.tool-info p {
    font-size: 0.8rem;
    color: #5f6368;
    margin: 0;
    padding: 0;
}

/* Submenu */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
}

.submenu.active {
    max-height: 600px;
}

.submenu-item {
    display: block;
    padding: 0.875rem 1.25rem 0.875rem 3.5rem;
    color: #5f6368;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.submenu-item:active {
    background: #f0f0f0;
}

/* Divisor */
.divider {
    height: 8px;
    background: #f5f5f5;
}

/* Scroll suave */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 300px;
        padding-bottom: 20px;
    }

    .login-area {
        gap: 0.75rem;
    }

    .login-icon {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
}