/* 
 * Modern Sidebar Styling for MyLesson.AI
 * Clean, professional sidebar with modern gradient
 */

/* Override the default bg-gray-800 for sidebar */
.sidebar.bg-gray-800 {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-right: 1px solid rgba(99, 102, 241, 0.1);
}

/* Sidebar Navigation Links */
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 4px;
}

.sidebar .nav-link:hover {
    color: #ffffff;
    background-color: rgba(99, 102, 241, 0.15);
    transform: translateX(2px);
}

.sidebar .nav-item.active > .nav-link {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-left: 3px solid #6366f1;
    font-weight: 600;
}

/* Sidebar Icons */
.sidebar .sidebar-icon {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.sidebar .nav-link:hover .sidebar-icon,
.sidebar .nav-item.active .sidebar-icon {
    color: #ffffff;
}

/* Sidebar Logo/Brand */
.sidebar .nav-item:first-child .nav-link {
    padding: 1rem 0.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.sidebar .nav-item:first-child .nav-link:hover {
    background: transparent;
    transform: none;
}

/* Sidebar Divider */
.sidebar .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

/* Sidebar Pro Account Button */
.sidebar .btn-upgrade-pro {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.sidebar .btn-upgrade-pro:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

.sidebar .btn-upgrade-pro .sidebar-icon {
    color: #ffffff;
}

/* Sidebar Text */
.sidebar .sidebar-text {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}

.sidebar .nav-link:hover .sidebar-text,
.sidebar .nav-item.active .sidebar-text {
    color: #ffffff;
}

/* User Card (Mobile) */
.sidebar .user-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.sidebar .user-card h2 {
    color: #ffffff;
}

/* Smooth Scrollbar */
.sidebar[data-simplebar] .simplebar-scrollbar::before {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .sidebar {
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }
}

/* Sidebar Animation */
.sidebar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active State Enhancement */
.sidebar .nav-item.active > .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 0 2px 2px 0;
}
