/* Estilos para o novo sidebar do Emprega+ */

.emprega-sidebar {
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.emprega-sidebar__wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 16px;
}

/* Cabeçalho do Sidebar */
.emprega-sidebar__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.emprega-sidebar__logo {
    margin-bottom: 8px;
}

.emprega-sidebar__logo img {
    height: 40px;
    width: auto;
}

.emprega-sidebar__user-type {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Menu Principal */
.emprega-sidebar__menu {
    flex: 1;
    margin-bottom: 24px;
}

.emprega-sidebar__menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.emprega-sidebar__menu-item {
    margin-bottom: 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.emprega-sidebar__menu-item.active {
    background-color: #f0e6ff; /* Lilás claro para item ativo */
}

.emprega-sidebar__menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.emprega-sidebar__menu-item.active .emprega-sidebar__menu-link {
    color: #0056b3; /* Azul para texto do item ativo */
}

.emprega-sidebar__icon {
    font-size: 20px;
    margin-right: 12px;
    color: #999;
    min-width: 24px;
    display: flex;
    justify-content: center;
}

.emprega-sidebar__menu-item.active .emprega-sidebar__icon {
    color: #0056b3; /* Azul para ícone do item ativo */
}

.emprega-sidebar__menu-link span {
    font-size: 15px;
    font-weight: 500;
}

/* Rodapé do Sidebar */
.emprega-sidebar__footer {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.emprega-sidebar__footer-logo {
    font-size: 16px;
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 8px;
}

.emprega-sidebar__footer-copyright {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.emprega-sidebar__footer-credits {
    font-size: 12px;
    color: #999;
}

.emprega-sidebar__footer-credits a {
    color: #0056b3;
    text-decoration: none;
}

.heart-icon {
    color: #ff5b5b;
}

/* Botão de toggle para dispositivos móveis */
.emprega-sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsividade */
@media (max-width: 992px) {
    .emprega-sidebar {
        transform: translateX(-100%);
    }
    
    .emprega-sidebar.active {
        transform: translateX(0);
    }
    
    .emprega-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    body.sidebar-active {
        overflow: hidden;
    }
}

/* Versão compacta para telas muito pequenas */
@media (max-width: 576px) {
    .emprega-sidebar {
        width: 240px;
    }
}

/* Script para toggle do sidebar em dispositivos móveis */
document.addEventListener('DOMContentLoaded', function() {
    const sidebarToggle = document.querySelector('.emprega-sidebar-toggle');
    const sidebar = document.querySelector('.emprega-sidebar');
    const body = document.body;
    
    if (sidebarToggle && sidebar) {
        sidebarToggle.addEventListener('click', function() {
            sidebar.classList.toggle('active');
            body.classList.toggle('sidebar-active');
        });
    }
});
