.page-transition {
    transition: all 0.3s ease-in-out;
}
.page-hidden {
    opacity: 0;
    transform: translateX(100%);
}
.page-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Mobile Frame for Desktop */
.mobile-frame {
    width: 390px;
    height: 844px;
    background: #1f2937;
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
    position: relative;
}

.mobile-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.mobile-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 30px;
    background: #1f2937;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.mobile-content {
    height: 100%;
    overflow: auto;
   /* padding-top: 30px;*/
}

/* Fix content height inside mobile frame */
@media (min-width: 768px) {
    .mobile-content .min-h-screen {
        min-height: 100vh;
        height: auto;
    }
    
    .mobile-content .page-container {
        min-height: calc(844px - 18px); /* Frame height minus notch and padding */
        height: calc(844px - 18px);
    }
}

/* Responsive - show mobile frame only on desktop */
@media (min-width: 768px) {
    .desktop-container {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 20px;
        transition: background 0.3s ease-in-out;
    }
    
    /* Page-specific backgrounds */
    .desktop-container.page-0 { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); }
    .desktop-container.page-1 { background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%); }
    .desktop-container.page-2 { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); }
    .desktop-container.page-3 { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }
    .desktop-container.page-4 { background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%); }
    .desktop-container.page-5 { background: linear-gradient(135deg, #fce7f3 0%, #fecaca 100%); }
    .desktop-container.page-6 { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); }
    .desktop-container.page-7 { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); }
    .desktop-container.page-8 { background: linear-gradient(135deg, #ecfdf5 0%, #bbf7d0 100%); }
    .desktop-container.page-9 { background: linear-gradient(135deg, #f5f3ff 0%, #e9d5ff 100%); }
    .desktop-container.page-10 { background: linear-gradient(135deg, #fff7ed 0%, #fed7d7 100%); }
    .desktop-container.page-11 { background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%); }
    .desktop-container.page-12 { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); }
    .desktop-container.page-13 { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }
    .desktop-container.page-14 { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); }
    .desktop-container.page-15 { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); }
    .desktop-container.page-16 { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); }
    .desktop-container.page-17 { background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%); }
    .desktop-container.page-18 { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); }
    .desktop-container.page-19 { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); }
    .desktop-container.page-20 { background: linear-gradient(135deg, #fce7f3 0%, #fecaca 100%); }
    .desktop-container.page-21 { background: linear-gradient(135deg, #fce7f3 0%, #fecaca 100%); }
}

@media (max-width: 767px) {
    .mobile-frame {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }
    
    .mobile-screen {
        border-radius: 0;
    }
    
    .mobile-notch {
        display: none;
    }
    
    .mobile-content {
        padding-top: 0;
    }
    
    .desktop-container {
        background: none;
        padding: 0;
    }
}