* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior: none;
    /* iOS safe area support */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

html, body, div#root, #root>div {
    min-height: 100vh;
    /* iOS viewport height fix */
    min-height: -webkit-fill-available;
}

html {
    height: -webkit-fill-available;
}

/* Prevent pull-to-refresh on mobile */
body {
    overscroll-behavior-y: contain;
}

/* Mobile-optimized scrolling */
* {
    -webkit-overflow-scrolling: touch;
}

/* iOS input zoom prevention */
input, textarea, select {
    font-size: 16px !important;
}

/* Prevent iOS text size adjustment */
body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Force loading bar to stay at top only */
#top-loading-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 2px !important;
    z-index: 99999 !important;
    background: transparent !important;
    pointer-events: none !important;
}

#top-loading-bar > div {
    height: 2px !important;
    pointer-events: none !important;
}
