.sidebar {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.sidebar.active {
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
}
.overlay {
    transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.35s ease;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}
.user-section {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.05), rgba(76, 175, 80, 0.05));
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.user-section:hover {
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.1), rgba(76, 175, 80, 0.1));
}
.user-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.user-section:hover .user-avatar {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}
.user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.user-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.user-role {
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
@media (max-width: 1200px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    }
    .overlay {
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }
}
@media (max-width: 768px) {
    .user-section {
        padding: 14px 16px;
        gap: 12px;
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(76, 175, 80, 0.08));
        border-top: 2px solid rgba(76, 175, 80, 0.15);
    }
    .user-avatar {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 16px;
        font-weight: 700;
    }
    .user-info {
        gap: 3px;
    }
    .user-name {
        font-size: 13px;
        font-weight: 700;
        color: var(--text-primary);
    }
    .user-role {
        font-size: 12px;
        color: var(--text-secondary);
    }
    .user-role {
        font-size: 10px;
    }
}
@media (max-width: 480px) {
    .user-section {
        padding: 10px 14px;
    }
    .user-avatar {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 14px;
    }
    .user-name {
        font-size: 11px;
    }
    .user-role {
        font-size: 9px;
    }
}
.nav-item {
    transition: all 0.2s ease;
}
.nav-link {
    transition: background-color 0.2s ease, color 0.2s ease, border-left-color 0.2s ease;
    position: relative;
    overflow: hidden;
}
.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-link.active::before {
    transform: scaleY(1);
}
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.logo-section {
    animation: slideInDown 0.5s ease 0.1s both;
}
.nav-item {
    animation: slideInDown 0.4s ease forwards;
}
.nav-item:nth-child(1) { animation-delay: 0.2s; }
.nav-item:nth-child(2) { animation-delay: 0.25s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.35s; }
.nav-item:nth-child(5) { animation-delay: 0.4s; }
.nav-item:nth-child(6) { animation-delay: 0.45s; }
@keyframes menuItemPulse {
    0% {
        box-shadow: inset 0 0 0 2px transparent;
    }
    50% {
        box-shadow: inset 0 0 0 2px rgba(76, 175, 80, 0.3);
    }
    100% {
        box-shadow: inset 0 0 0 2px transparent;
    }
}
.nav-link.active {
    animation: menuItemPulse 2s ease-in-out 1;
}
@media (max-width: 1200px) {
    .sidebar.closing {
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .overlay.closing {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }
    .bottom-nav {
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
        transform: translateY(0);
        opacity: 1;
    }
    .bottom-nav.hidden {
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .sidebar,
    .overlay,
    .nav-link,
    .user-section,
    .logo-section,
    .nav-item {
        animation: none !important;
        transition: none !important;
    }
}
