body, html { margin:0; padding:0; font-family:sans-serif; height:100%; }

/* ============================= */
/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: white;
    color: #13223F;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 9999;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
}

header .logo { height: 40px; }
header .company-name { font-weight: bold; font-size: 1.2rem; }
header .header-buttons button {
    background: #13223F;
    color: white;
    margin-left: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    max-width: 200px;
}

/* ============================= */
/* Scrollable main container */
main {
    position: relative; /* ensures proper stacking under fixed header */
    padding-top: 60px;  /* push content below header */
    height: calc(100vh - 60px); /* take full viewport minus header */
    overflow-y: auto;   /* scrollable content */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

/* Optional: adjust for smaller screens */
@media (max-width: 768px) {
    header { height: 70px; padding: 0 8px; }
    main { padding-top: 70px; height: calc(100vh - 70px); }
}


main { margin-top:50px; padding:10px; }
.hidden { display:none; }

button { font-size:1.2rem; padding:10px 20px; margin:5px; cursor:pointer; }
input, select { font-size:1.2rem; padding:8px; margin:5px; width:95%; }

.results-container {
    position:absolute; background:white; z-index:10; width:95%;
    max-height:200px; overflow-y:auto; border:1px solid #ccc;
}

.typeahead-btn {
    display:block; width:100%; padding:8px; text-align:left;
    border:none; background:#f9f9f9; cursor:pointer;
}
.typeahead-btn:hover { background:#e0e0e0; }

.modal { display:none; position:fixed; top:70px; left:0; right:0; bottom:0;
    background:rgba(0,0,0,0.6); align-items:center; justify-content:center; z-index:200; }
.modal.show { display:flex; }

.modal-content {
    background:white; padding:20px; border-radius:10px;
    text-align:center; max-width:400px; width:90%;
    box-shadow:0 4px 12px rgba(0,0,0,0.2); position:relative;
}

.countdown-ring {
    width:160px; height:160px; transform:rotate(-90deg); margin:0 auto 10px auto;
}
.bgCircle { fill:none; stroke:#eee; stroke-width:10; }
.fgCircle { fill:none; stroke:#13223F; stroke-width:10;
    stroke-dasharray:439.82; stroke-dashoffset:439.82;
    transition:stroke-dashoffset 1s linear;
}
/* Container label */
.slider-container {
    display: flex;
    align-items: center;
    font-size: 1.5em; /* large text */
    cursor: pointer;
    user-select: none;
}

/* Hide the default checkbox */
.slider-container input {
    display: none;
}

/* The slider background */
.slider {
    position: relative;
    width: 70px;  /* large slider for touch */
    height: 40px;
    background-color: #ccc;
    border-radius: 20px;
    margin-right: 15px;
    transition: background-color 0.3s;
}

/* The circle inside the slider */
.slider::before {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

/* Checked state */
.slider-container input:checked + .slider {
    background-color: #13223F;
}

.slider-container input:checked + .slider::before {
    transform: translateX(30px); /* slide circle */
}

/* ============================= */
/* 1. General Styles for Kiosk UI */
/* ============================= */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.kiosk-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================= */
/* 2. Buttons */
/* ============================= */

.kiosk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 32px;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    min-width: 160px;
    text-align: center;
    user-select: none;
    color: #fff;
}

.kiosk-btn.primary { background-color: #0078D7; }
.kiosk-btn.secondary { background-color: #6c757d; }
.kiosk-btn.danger { background-color: #dc3545; }

.kiosk-btn:hover,
.kiosk-btn:focus {
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    outline: none;
}

.kiosk-btn.primary:hover { background-color: #005a9e; }
.kiosk-btn.secondary:hover { background-color: #5a6268; }
.kiosk-btn.danger:hover { background-color: #a71d2a; }

.kiosk-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.kiosk-btn:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
    box-shadow: none;
}

/* ============================= */
/* 3. Dropdown / Select */
/* ============================= */

.kiosk-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 16px;
}

.kiosk-select {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-size: 1.4rem;
    border: 2px solid #0078D7;
    border-radius: 12px;
    background-color: #ffffff;
    color: #333333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.kiosk-select:focus {
    outline: none;
    border-color: #005a9e;
    box-shadow: 0 0 0 3px rgba(0, 120, 215, 0.3);
}

.kiosk-select:disabled {
    background-color: #e0e0e0;
    color: #777777;
    cursor: not-allowed;
}

.kiosk-select-wrapper::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #0078D7;
    pointer-events: none;
}

/* ============================= */
/* 4. Text Inputs / Textareas */
/* ============================= */

.kiosk-input,
.kiosk-textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.4rem;
    border: 2px solid #0078D7;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 16px;
}

.kiosk-input:focus,
.kiosk-textarea:focus {
    outline: none;
    border-color: #005a9e;
    box-shadow: 0 0 0 3px rgba(0, 120, 215, 0.3);
}

.kiosk-input:disabled,
.kiosk-textarea:disabled {
    background-color: #e0e0e0;
    color: #777777;
    cursor: not-allowed;
}

/* ============================= */
/* 5. Checkboxes / Toggles */
/* ============================= */

.kiosk-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.4rem;
    cursor: pointer;
    user-select: none;
}

.kiosk-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    cursor: pointer;
}

/* ============================= */
/* 6. Layout Helpers */
/* ============================= */

.kiosk-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.kiosk-col {
    flex: 1;
    min-width: 120px;
}

/* ============================= */
/* Extra spacing for kiosk buttons and inputs */
.kiosk-btn,
.kiosk-input,
.kiosk-textarea,
.kiosk-select {
    margin-bottom: 16px;
}
