/* ========================================
   PAGE TRANSITIONS & SWIPE GESTURES
   ======================================== */

/* Page transition container */
body {
    /* REMOVED transition on body to stop Nav flash */
    /* transition: opacity 0.15s ease-out; */
    /* will-change: opacity; */
}

/* Only fade out the content, keep nav visible */
body.page-transition-out .app-content {
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

/* Smooth page load - Fade Only */
.app-content {
    animation: fadeIn 0.4s ease-out;
    /* Ensure it has a base transition property for the exit phase */
    transition: opacity 0.15s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent flash on page navigation */
html {
    background-color: #F8F9FA;
}

body {
    background-color: #F8F9FA;
    min-height: 100vh;
}

/* Touch feedback for navigation */
.nav-item {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.nav-item:active::after {
    width: 100px;
    height: 100px;
}

/* Swipe indicator */
.swipe-indicator {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: rgba(20, 184, 166, 0.3);
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.2s;
}

.swipe-indicator.left {
    left: 20px;
}

.swipe-indicator.right {
    right: 20px;
}