.sidebar {
    background: #2e5e84;
    color: white;
    width: 300px;
    padding: 2rem 1.5rem;
    height: 100vh;
    position: fixed;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.logo {
    width: 70px;
    margin-bottom: 2rem;
    align-self: center;
}

.nav {
    flex-grow: 1;
    min-height: 0;
}

.nav h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.helper-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.helper-badge i {
    font-size: 1rem;
}

.helper-back-link {
    margin-left: auto;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.nav ul {
    list-style: none;
}

.nav li {
    margin: 0;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav li a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 1rem;
    min-width: 0;
}

.nav li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.nav li a.active {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    font-weight: 700;
    box-shadow: inset 4px 0 0 #ffffff;
}

.nav li i {
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logout-container {
    margin-top: auto;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

.logout {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    width: 100%;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
    border-radius: 6px;
}

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

.logout i {
    font-size: 1.2rem;
}

.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #333;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    width: 45px;
    height: 45px;
    flex-direction: column;
    justify-content: space-around;
    transition: all 0.3s ease;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

@media screen and (max-width: 960px) {
    .hamburger {
        display: flex;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .sidebar.active {
        left: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .sidebar {
        width: 280px;
        max-width: 80vw;
    }
}

@media screen and (max-width: 480px) {
    .sidebar {
        width: 100%;
        max-width: 100vw;
        left: -100%;
    }
    
    .hamburger {
        top: 15px;
        left: 15px;
    }
}
