/* iOS Frame Styling */

/* iPhone Frame */
.iphone-frame {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

/* Dynamic Island / Notch */
.dynamic-island {
    position: absolute;
    width: 126px;
    height: 34px;
    background: #000;
    border-radius: 0 0 17px 17px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status Bar */
.ios-status-bar {
    height: 44px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 5;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* App Content Area */
.app-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    background-color: #fff;
    padding-bottom: 83px; /* Add padding to prevent content from being hidden under fixed navbar */
}

/* Home Indicator */
.home-indicator {
    height: 34px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    position: fixed;
    bottom: 0;
    z-index: 25; /* Higher z-index than navbar */
}

.home-indicator::after {
    content: "";
    width: 135px;
    height: 5px;
    background-color: #000;
    border-radius: 3px;
}

/* Bottom Navigation */
.ios-bottom-nav {
    height: 83px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    background-color: #fff;
    border-top: 1px solid #efefef;
    padding-bottom: 34px;
    position: fixed;
    bottom: 0;
    z-index: 20;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    width: 60px;
}

.nav-item span {
    font-size: 10px;
    margin-top: 4px;
}

/* Screen Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.screen-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@media (prefers-reduced-motion) {
    .screen-fade-in {
        animation: none;
    }
}