/* =========================================
   1. VARIABLES & CORE 
   ========================================= */
:root {
    --primary-accent: #fa5279;
    --primary-light: rgba(212, 106, 117, 0.1);
    --bg-gradient: radial-gradient(circle at top left, #ffffff, #f3f3f3);
    --glass-bg: #ffffffb3;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
}

body {
    background: var(--bg-gradient);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevents kiosk scrolling */
    font-family: 'Inter', sans-serif;
    user-select: none; /* Prevents text selection on touchscreens */
}

/* =========================================
   2. MODERN CARDS & GLASSMORPHISM 
   ========================================= */
.modern-card {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.modern-card:hover {
    transform: translateY(-10px);
    background: #ffffff;
    border: 2px solid var(--primary-accent);
    box-shadow: 0 20px 40px rgba(212, 106, 117, 0.15);
}

.icon-box {
    width: 120px;
    height: 120px;
    background: var(--primary-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
}

.modern-card:hover .icon-box { background: var(--primary-accent); }
.modern-card:hover .icon-box i { color: white !important; }

/* =========================================
   3. TYPOGRAPHY & HEADERS 
   ========================================= */
h1.display-4 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #333, var(--primary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fw-black { font-weight: 900; }
.tracking-wider { letter-spacing: 4px; }
.welcome-section { margin-top: 40px; }

/* =========================================
   4. RETRIEVE PAGE (PIN & NUMPAD)
   ========================================= */
.pin-box {
    width: 65px;
    height: 80px;
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    border: 3px solid #eee;
    border-radius: 15px;
    background: #fff;
    color: var(--primary-accent);
    transition: border-color 0.3s;
    caret-color: transparent; /* Hide blinking cursor */
}

.pin-box::placeholder { color: #eee; }

.numpad-container { max-width: 450px; }

.btn-numpad {
    height: 70px;
    font-size: 1.8rem;
    font-weight: 700;
    background: #fdfdfd;
    border: 1px solid #efefef;
    border-radius: 18px;
    box-shadow: 0 4px 0px #eee;
    transition: all 0.1s;
    color: #333;
}

.btn-numpad:active {
    transform: translateY(3px);
    box-shadow: 0 0px 0px #eee;
    background: var(--primary-accent);
    /* color: white !important; */
}

/* Submit Button Style */
.btn-submit {
    background: #333 !important;
    color: white !important;
    box-shadow: 0 4px 0px #000;
}

/* Active Backspace Style (Use this class in JS) */
.backspace-active {
    background: var(--primary-accent) !important;
    color: white !important;
    border-color: var(--primary-accent) !important;
}

.startOver-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 18px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
}

.startOver-card:hover {
    background: #fff;
    border-color: var(--primary-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 106, 117, 0.15);
}

.startOver-card i {
    color: var(--primary-accent);
}

/* =========================================
   6. COMPONENTS & ANIMATIONS
   ========================================= */
.qr-compact-wrapper {
    background: white;
    padding: 20px;
    border-radius: 30px;
    border: 1px solid #eee;
    box-shadow: var(--shadow-soft);
}

.qr-compact-wrapper { padding: 10px; border-radius: 20px; }

/* Update Section 6 in your CSS */
.qr-badge {
    background: white;
    padding: 25px;
    border-radius: 30px;
    display: inline-block; 
    border: 2px solid rgba(212, 106, 117, 0.2); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.qr-badge:hover {
    transform: scale(1.02);
    border-color: var(--primary-accent);
}

/* Anime.js ML4 Positioning */
.ml4 {
  position: relative;
  font-weight: 900;
  font-size: 4rem;
  color: var(--primary-accent);
  height: 1.2em;
  margin: 20px 0;
}

.ml4 .letters {
  position: absolute;
  inset: 0;
  opacity: 0;
  text-shadow: 0 4px 15px rgba(212, 106, 117, 0.3);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.shake { animation: shake 0.2s ease-in-out 0s 2; }

/* =========================================
   7. UTILITIES & RESPONSIVE
   ========================================= */
ul.custom-dropdown-menu {
    box-shadow: var(--shadow-soft);
    width: 150px;
    min-width: 150px;
}

.custom-dropdown-menu .dropdown-item {
    font-size: 1.3rem;
    font-weight: 500;
}

@media (max-height: 900px) {
    .ml4 { font-size: 3rem; }
    .modern-card { padding: 2rem !important; }
    h1.display-4 { font-size: 2.8rem; }
}

/* =========================================
   HORIZONTAL PROGRESS BAR
   ========================================= */
.progress-header {
    position: relative;
}

.progressbar-horizontal {
    counter-reset: step;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
    list-style: none;
    width: 80%; /* Controls how spread out the steps are */
}

.progressbar-horizontal li {
    flex: 1;
    position: relative;
    text-align: center;
    color: #bbb;
    font-weight: 700;
    font-size: 1.0rem;
    text-transform: uppercase;
}

/* The Connecting Line */
.progressbar-horizontal li::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background: #eee;
    top: 20px;
    left: -50%;
    z-index: 1;
}

.progressbar-horizontal li:first-child::after {
    content: none;
}

/* Step Circles */
.progressbar-horizontal li::before {
    content: counter(step);
    counter-increment: step;
    width: 40px;
    height: 40px;
    line-height: 36px; /* -4px for border */
    display: block;
    margin: 0 auto 10px auto;
    background: white;
    border: 2px solid #eee;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* ACTIVE/CURRENT STATES */
.progressbar-horizontal li.active::before,
.progressbar-horizontal li.current::before {
    border-color: var(--primary-accent);
    background: var(--primary-accent);
    color: white;
}

.progressbar-horizontal li.active::after {
    background: var(--primary-accent);
}

.progressbar-horizontal li.current {
    color: var(--primary-accent);
}

.progressbar-horizontal li.current::before {
    box-shadow: 0 0 15px rgba(212, 106, 117, 0.4);
}

/* If step is completed, show a checkmark instead of a number */
.progressbar-horizontal li.active::before {
    content: "✓";
}

.step-label {
    letter-spacing: 1px;
}

/* =========================================
   CARD BUTTON REFINEMENT
   ========================================= */
.modern-card .btn-outline-dark {
    transition: all 0.2s ease;
    border-width: 2px;
}

.modern-card .btn-outline-dark:hover, 
.modern-card .btn-outline-dark:active {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
    color: white;
    transform: scale(0.98);
}



.back-link {
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: #333;
}

#sessionIDText, 
#layoutOptionText {
    opacity: 0.15;
    font-size:xx-small;
}