@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #951d81;
    --secondary: #7e22ce;
    --dark: #1e293b;
    --light: #f8f9fa;
    --sidebar-width: 280px;
}

* {
    font-family: 'Poppins', sans-serif;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    padding: 1.5rem;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    transform: translateX(calc(-1 * var(--sidebar-width)));
}

.main-content {
    transition: margin-left 0.3s ease-in-out;
    margin-left: var(--sidebar-width);
}

.main-content.collapsed {
    margin-left: 0;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 2rem;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background-color: var(--secondary);
    color: white;
    font-weight: 600;
}

.nav-link i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer-nav {
    margin-bottom: 1rem; /* Adiciona espaço entre o botão de sair e o rodapé */
}

.logout-button {
    background-color: rgba(255, 255, 255, 0.1);
}

.logout-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar-footer {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }

    .sidebar.collapsed {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}
