/* ============================================
   SIDEBAR TOGGLE - Enhanced Styles
   ============================================ */

.sidebar {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    transform: translateX(100%);
}

/* Toggle Button - Modern Design */
.sidebar-toggle-btn {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #A855F7 100%);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 51;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    box-shadow:
        0 4px 15px rgba(99, 102, 241, 0.4),
        0 0 0 0 rgba(99, 102, 241, 0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle-btn:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow:
        0 8px 25px rgba(99, 102, 241, 0.5),
        0 0 0 4px rgba(99, 102, 241, 0.15);
}

.sidebar-toggle-btn:active {
    transform: scale(1);
}

.sidebar-toggle-btn i {
    transition: transform 0.3s ease;
}

.sidebar-toggle-btn:hover i {
    transform: scale(1.1);
}

.sidebar-toggle-btn.hidden {
    display: none;
}

/* Sidebar Content */
.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Main wrapper transitions */
.main-wrapper {
    transition: margin-right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-wrapper.full-width {
    margin-right: 0;
}

/* ============================================
   PHONE PREVIEW - Enhanced Design
   ============================================ */

.phone-preview-container {
    position: sticky !important;
    top: 100px !important;
    width: 320px !important;
    height: 620px !important;
    background: linear-gradient(145deg, #1a1a2e 0%, #16132b 100%) !important;
    border-radius: 42px !important;
    padding: 12px !important;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 2px 0 rgba(255, 255, 255, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-preview-container:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 2px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Phone Notch */
.phone-preview-container::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 14px;
    z-index: 10;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

/* Camera dot */
.phone-preview-container::after {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(50% + 30px);
    width: 10px;
    height: 10px;
    background: linear-gradient(145deg, #1a1a2e, #2d2d4a);
    border-radius: 50%;
    z-index: 11;
    box-shadow:
        inset 0 0 2px rgba(99, 102, 241, 0.3),
        0 0 4px rgba(99, 102, 241, 0.2);
}

.phone-screen {
    border-radius: 30px !important;
    overflow: hidden;
    background: white;
}

/* Side buttons simulation */
#phone-preview-wrapper::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 120px;
    width: 3px;
    height: 35px;
    background: linear-gradient(to bottom, #2d2d4a, #1a1a2e);
    border-radius: 3px 0 0 3px;
}

#phone-preview-wrapper::after {
    content: '';
    position: absolute;
    left: -3px;
    top: 170px;
    width: 3px;
    height: 60px;
    background: linear-gradient(to bottom, #2d2d4a, #1a1a2e);
    border-radius: 3px 0 0 3px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1280px) {
    .phone-preview-container {
        width: 280px !important;
        height: 560px !important;
        border-radius: 36px !important;
    }
}

@media (max-width: 1024px) {
    .phone-preview-container {
        display: none !important;
    }

    #phone-preview-wrapper {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .sidebar-toggle-btn {
        right: 15px;
        top: 15px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}