/* Mobile/Tablet Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: var(--accent);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
}

.sidebar.open {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 3rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.sidebar-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2rem;
    height: 2rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: var(--error);
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

/* Social Section */
.social-section {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.social-title {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: white;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 1.5rem;
}

.sidebar-back-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem;
    cursor: pointer;
    border: none;
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.sidebar-back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(3px);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-nav-item {
    margin-bottom: 0.25rem;
    position: relative;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 400;
    font-size: 0.9rem;
}

.sidebar-nav-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: white;
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-nav-link:hover::before {
    transform: scaleY(1);
}

.sidebar-nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.sidebar-nav-link i {
    width: 1rem;
    text-align: center;
    font-size: 0.85rem;
}

.sidebar-nav-link .nav-arrow {
    margin-right: auto;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

/* Sidebar Submenu */
.sidebar-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(99, 102, 241, 0.95);
    z-index: 1;
    border-radius: 10px;
    margin-top: 0.25rem;
    list-style: none;
    padding: 0.75rem 0;
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(20px);
}

.sidebar-submenu.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-submenu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0.125rem 0.75rem;
    font-weight: 400;
    font-size: 0.85rem;
}

.sidebar-submenu-item:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateX(5px);
}

.sidebar-submenu-item i {
    width: 0.9rem;
    text-align: center;
    font-size: 0.8rem;
}