/* ====================================================================
   MOBILE SIDEBAR - ENHANCED PROFESSIONAL VERSION
==================================================================== */

/* Ensure hamburger is visible only on mobile */
.navbar-toggler {
    display: none !important;
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block !important;
    }
}

/* CRITICAL FIX: Only hide sidebar on desktop, let Bootstrap control it on mobile */
@media (min-width: 992px) {
    #creativeMobileMenu {
        display: none !important;
        visibility: hidden !important;
    }

    .navbar-toggler {
        display: none !important;
    }

    .navbar-collapse {
        display: flex !important;
    }
}

/* Sidebar Container - Professional Setup - NO display rules here! */
#creativeMobileMenu {
    backdrop-filter: blur(15px);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Nav Link Cards - Touch Friendly (56px min height) */
.creative-link {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    min-height: 56px;
}

.creative-link:hover,
.creative-link:active,
.creative-link.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
}

/* Active page highlight */
.creative-link.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
    border-color: rgba(59, 130, 246, 0.5);
}

.creative-link.active .icon-box {
    background: var(--primary-blue);
    color: #fff;
}

.creative-link .icon-box {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-right: 14px;
    font-size: 1rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.creative-link:hover .icon-box {
    background: var(--primary-blue);
    color: #fff;
    transform: rotate(10deg) scale(1.1);
}

.link-text {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

/* Enhanced Social Buttons */
.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    color: #fff;
}

.social-insta:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #e1306c;
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

/* Enhanced Login Button */
.btn-gradient-primary {
    min-height: 52px;
}

.btn-gradient-primary:hover {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Custom backdrop overlay - darker with blur */
.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(2px);
}

.offcanvas-backdrop.fade {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.offcanvas-backdrop.show {
    opacity: 1;
}

/* Prevent body scroll when sidebar is open */
body.offcanvas-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}
/* ====================================================================
   SIDEBAR SCROLLING & LAYOUT FIXES
==================================================================== */

/* Ensure sidebar body is scrollable */
#creativeMobileMenu .offcanvas-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    max-height: calc(100vh - 80px);
}

/* Custom scrollbar */
#creativeMobileMenu .offcanvas-body::-webkit-scrollbar {
    width: 6px;
}

#creativeMobileMenu .offcanvas-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#creativeMobileMenu .offcanvas-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

#creativeMobileMenu .offcanvas-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Better spacing */
.creative-nav-list {
    flex-grow: 0 !important;
}

.creative-link {
    padding: 14px 16px !important;
    margin-bottom: 6px !important;
}
