/* Unified Menu Styles */

/* CSS Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-light: #ecf0f1;
    --text-dark: #2c3e50;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

.menu-toggle:hover {
    background-color: var(--secondary-color);
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background-color: rgba(44, 62, 80, 0.95);
    padding: 15px; /* Ridotto da 20px */
    color: var(--text-light);
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    text-align: center;
    padding: 15px 0; /* Ridotto da 20px */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header img {
    max-width: 150px;
    height: auto;
}

.nav {
    padding: 0;
    margin-top: 0.5rem; /* Ridotto da 1.5rem */
}

.nav-link {
    color: var(--text-light);
    padding: 8px 20px; /* Ridotto da 12px */
    margin: 2px 0; /* Ridotto da 5px */
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}

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

.dropdown-menu {
    background-color: rgba(44, 62, 80, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
}

.dropdown-item {
    color: var(--text-light);
    padding: 6px 20px; /* Ridotto da 10px */
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.2);
    color: var(--text-light);
}

.dropdown-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    position: fixed;
    bottom: 10px; /* Ridotto da 20px */
    left: 0;
    width: 280px;
    padding: 10px; /* Ridotto da 15px */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(44, 62, 80, 0.95);
    z-index: 1000;
}

.bvrobotics-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-light);
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 5px;
}

.bvrobotics-link:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.bvrobotics-logo {
    width: 150px;
    height: auto;
    margin-right: 10px;
}

.bvrobotics-link span {
    font-size: 0.8rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }

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

    .sidebar-footer {
        width: 250px;
    }
}
