/* Modern Hamburger Menu Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100%;
    width: 280px;
    background: #ffffff;
    color: #111827;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 2px 0 25px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-brand i {
    color: #3b82f6;
    font-size: 1.25rem;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0.25rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu li:hover {
    background: #f3f4f6;
    transform: translateX(2px);
}

.sidebar-menu li.active {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.sidebar-menu li.active:hover {
    background: #dbeafe;
}

.sidebar-menu a {
    color: #374151;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sidebar-menu li.active a {
    color: #1d4ed8;
    font-weight: 600;
}

.sidebar-menu li:hover a {
    color: #111827;
}

.menu-icon {
    width: 1.25rem;
    text-align: center;
    font-size: 1rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.sidebar-menu li.active .menu-icon {
    color: #1d4ed8;
}

.sidebar-menu li:hover .menu-icon {
    color: #374151;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 99;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.menu-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    z-index: 101;
}

.menu-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.close-menu {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.close-menu:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Enhanced Sidebar Footer Styles */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.sidebar-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    color: #111827;
    font-size: 0.875rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-role {
    color: #6b7280;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 250px;
        left: -250px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 280px;
        left: -280px;
    }
    
    .sidebar-header {
        padding: 1rem;
    }
    
    .sidebar-brand {
        font-size: 1.25rem;
    }
    
    .sidebar-menu li {
        margin: 0.25rem 0.5rem;
    }
    
    .sidebar-menu a {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Focus and Accessibility */
.sidebar-menu a:focus,
.menu-btn:focus,
.close-menu:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Dark mode support (for future) */
@media (prefers-color-scheme: dark) {
    .sidebar {
        background: #1f2937;
        color: #f9fafb;
        border-right-color: #374151;
    }
    
    .sidebar-header {
        background: #111827;
        border-bottom-color: #374151;
    }
    
    .sidebar-brand {
        color: #f9fafb;
    }
    
    .sidebar-menu a {
        color: #d1d5db;
    }
    
    .sidebar-menu li:hover {
        background: #374151;
    }
    
    .sidebar-menu li.active {
        background: #1e3a8a;
        border-color: #3b82f6;
    }
    
    .sidebar-footer {
        background: #111827;
        border-top-color: #374151;
    }
    
    .sidebar-user-name {
        color: #f9fafb;
    }
    
    .sidebar-user-role {
        color: #9ca3af;
    }
} 