/* Kiosk mode styles - browser lockdown and UI restrictions */

/* Kiosk mode body class */
body.kiosk-mode {
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    /* Prevent overscroll/bounce */
    overscroll-behavior: none;

    /* Hide scrollbars */
    overflow: hidden;

    /* Prevent pull-to-refresh on mobile */
    -webkit-overflow-scrolling: auto;
}

/* Hide scrollbars but allow scrolling */
body.kiosk-mode::-webkit-scrollbar {
    display: none;
}

body.kiosk-mode {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Disable context menu styling (actual blocking done in JS) */
body.kiosk-mode * {
    -webkit-touch-callout: none;
}

/* Prevent drag and drop */
body.kiosk-mode img,
body.kiosk-mode a {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Full screen container for kiosk */
.kiosk-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

/* Disable zoom on inputs for iOS */
body.kiosk-mode input,
body.kiosk-mode select,
body.kiosk-mode textarea {
    font-size: 16px !important;
}

/* Prevent highlighting links on tap (mobile) */
body.kiosk-mode a,
body.kiosk-mode button {
    -webkit-tap-highlight-color: transparent;
}

/* Hide browser-specific UI elements that might appear */
body.kiosk-mode ::selection {
    background: transparent;
}

body.kiosk-mode ::-moz-selection {
    background: transparent;
}

/* Prevent long-press context menu on mobile */
body.kiosk-mode * {
    -webkit-touch-callout: none;
}

/* Loading overlay for kiosk mode */
.kiosk-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Touch-friendly button sizes for kiosk */
body.kiosk-mode .btn {
    min-height: 44px;
    min-width: 44px;
}

body.kiosk-mode .form-control {
    min-height: 44px;
}

/* Large touch targets for accessibility */
body.kiosk-mode .form-check-input {
    width: 24px;
    height: 24px;
}

body.kiosk-mode .form-check-label {
    padding-left: 8px;
    line-height: 24px;
}
