﻿/* public/assets/style.css â€” simple, functional MVP styling.
   Not a polished design; clarity first. */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, sans-serif;
    background: #f4f5f7;
    color: #222;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    text-align: center;
}

.container.narrow { max-width: 460px; }

h1 { margin: 0 0 8px; }
h2 { margin-top: 28px; }

.muted { color: #667; font-size: .9rem; }

/* --- Top bar / nav --- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dde;
    margin-bottom: 16px;
}

.topbar a { color: #056; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.crumbs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.crumbs a { color: #056; text-decoration: none; padding: 4px 10px; border-radius: 6px; }
.crumbs a.active { background: #056; color: #fff; }

/* --- Cards / landing --- */
.cards, .subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin: 20px 0;
}
.card {
    display: block;
    background: #fff;
    border: 1px solid #dde;
    border-radius: 10px;
    padding: 16px 20px;
    min-width: 200px;
    text-decoration: none;
    color: inherit;
    text-align: left;
}
.card:hover { border-color: #056; }
.card h3 { margin: 0 0 6px; color: #056; }
.card p { margin: 0; color: #667; font-size: .9rem; }

/* --- Kiosk (service/button styling defined in the Kiosk cards block below) --- */
.kiosk .container { max-width: 720px; }

/* --- Kiosk header (brand name above logo) --- */
.kiosk {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.kiosk .container {
    flex: 1 0 auto;
    width: 100%;
}
.kiosk-header { text-align: center; margin-bottom: 12px; }
.kiosk-brand { font-size: 2rem; color: #056; margin: 0 0 8px; }
.kiosk-logo { width: 96px; height: auto; opacity: .95; }

/* --- Site footer (author credit), flushed to the bottom --- */
.site-footer {
    flex-shrink: 0;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 16px;
    width: 100%;
}
.footer-divider { border: none; border-top: 1px solid #dde; margin: 16px 0 10px; }
.footer-credit { margin: 0; }
.footer-credit a { color: #056; }

/* --- Kiosk service cards --- */
.tx-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 20px 0; }
.tx-btn {
    background: #056;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 28px 20px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    min-height: 110px;
    width: 100%;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    transition: transform .08s ease, background .15s ease;
}
.tx-btn:hover { background: #034; }
.tx-btn:active { transform: scale(.98); }

/* --- Kiosk name entry (larger for seniors) --- */
.kiosk-field { font-size: 1.3rem; font-weight: 600; }
.kiosk-field input[type=text] {
    width: 100%;
    font-size: 1.8rem;
    padding: 16px;
    margin-top: 8px;
    border: 2px solid #ccd;
    border-radius: 10px;
}
.kiosk-check {
    justify-content: center;
    font-size: 1.3rem;
    padding: 10px 0;
}
.kiosk-check input { width: 26px; height: 26px; }

/* --- Forms --- */
.form { max-width: 380px; margin: 16px auto; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.form label { display: block; font-size: .95rem; }
.form input[type=text], .form input[type=email], .form input[type=password],
.form input[type=number], .form input[type=date], .form select {
    width: 100%;
    padding: 9px;
    border: 1px solid #ccd;
    border-radius: 6px;
    font-size: 1rem;
    margin-top: 4px;
}
.form fieldset { border: 1px solid #dde; border-radius: 8px; padding: 10px 14px; }
.form legend { padding: 0 6px; color: #667; }
.form.check { flex-direction: row; align-items: center; }
.check { display: flex; gap: 8px; align-items: center; }
.inline { display: inline-flex; flex-direction: row !important; align-items: center; gap: 6px; max-width: none; margin: 0; }
.inline input { width: auto; margin: 0; }
.inline input[type=text], .inline input[type=password] { width: 120px; }

button, .link {
    font-size: 1rem;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #056;
    color: #fff;
    cursor: pointer;
}
button:hover { filter: brightness(1.1); }
.link { background: none; color: #056; text-decoration: underline; padding: 2px 4px; }

.btn-primary { background: #056; }
.btn-ok      { background: #2a8; }
.btn-warn    { background: #d90; color: #000; }
.btn-danger  { background: #c33; }

/* --- Operator --- */
.serving { margin: 24px 0; }
.token { font-size: 3.2rem; font-weight: bold; color: #2a8; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.badge { background: #e6eaf0; color: #335; padding: 6px 12px; border-radius: 8px; font-size: .9rem; }

/* --- Tables --- */
.table { width: 100%; border-collapse: collapse; margin: 12px 0; background: #fff; text-align: left; }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid #e6e8ee; vertical-align: top; }
.table th { background: #f0f2f6; }

.plain { list-style: none; padding: 0; text-align: left; }
code { background: #eef1f5; padding: 2px 6px; border-radius: 4px; word-break: break-all; }

/* --- Messages --- */
.ok { background: #e6f6ee; color: #186; padding: 10px; border-radius: 8px; }
.error { background: #fdeaea; color: #a22; padding: 10px; border-radius: 8px; }

/* --- Kiosk tracker QR block --- */
.track-block {
    margin: 18px auto 8px;
    padding: 14px;
    border: 1px solid #dde;
    border-radius: 12px;
    background: #fff;
    max-width: 320px;
}
.track-qr { display: flex; justify-content: center; padding: 8px; }
.track-qr img, .track-qr canvas { display: block; }
.track-link-row { font-size: .85rem; margin-top: 10px; word-break: break-all; }
.track-warn { padding: 0 12px; }

.hidden { display: none !important; }

/* --- Impersonation banner --- */
.impersonate-banner {
    background: #b3541e;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.impersonate-banner b { color: #fff; }

/* --- Kiosk closed screen (outside operating hours) --- */
.closed-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    margin: 0 auto;
}
.closed-logo { width: 96px; height: auto; margin-bottom: 12px; opacity: .9; }
.closed-msg { font-size: 1.3rem; color: #334; }
.closed-screen .plain { text-align: center; }


@media (max-width: 600px) {
    .tx-btn { min-width: 100%; }
}

