/* Staff, admin and account pages (the theme itself is in theme.css). */
html { position: relative; min-height: 100%; }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder { text-align: start; }

/* Page titles get a short accent underline. */
main h1.h3 { position: relative; padding-bottom: .35rem; }
main h1.h3::after {
    content: ""; position: absolute; inset-inline-start: 0; bottom: 0; inline-size: 2.5rem; block-size: 4px;
    border-radius: 999px; background: var(--app-gradient);
}

/* Tables: softer rows and a gentle hover. */
.table > tbody > tr { transition: background-color .15s ease; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: var(--app-surface-2); }

/* Branch cards and switcher */
.branch-card { border-top: 4px solid var(--app-blue-600); }
[data-branch-switcher] .form-select { border-radius: 999px; min-inline-size: 10rem; background-color: var(--app-surface-2); }

/* ---------- Landing page (Views/Home/Index) ---------- */
.landing-nav .nav-link { font-weight: 600; color: var(--bs-secondary-color); border-radius: 999px; padding-inline: .75rem; }
.landing-nav .nav-link:hover, .landing-nav .nav-link:focus-visible { color: var(--bs-body-color); background: var(--app-surface-2); }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

.landing-eyebrow {
    display: inline-block; margin-bottom: .75rem; padding: .3em .85em; border-radius: 999px;
    background: var(--app-primary-soft); color: var(--app-primary-text); font-weight: 700; font-size: .85rem; letter-spacing: .02em;
}
.landing-hero { padding-block: 1.5rem 2.5rem; }
@media (min-width: 992px) { .landing-hero { padding-block: 3rem 4rem; } }
.landing-title { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 1rem; }
.landing-pills li {
    padding: .35em .9em; border-radius: 999px; font-size: .85rem; font-weight: 600;
    background: var(--app-surface); border: 1px solid var(--app-line); box-shadow: var(--app-shadow);
}
.landing-pills li::before { content: "✓"; color: var(--app-primary-text); font-weight: 800; margin-inline-end: .4em; }

/* A phone-shaped preview of the guest page, drawn with HTML so it stays crisp and translatable. */
.landing-phone {
    max-inline-size: 20rem; padding: 1rem; border-radius: 2rem; background: var(--app-surface);
    border: 8px solid var(--app-onyx); box-shadow: 0 30px 60px rgba(30, 64, 175, .25), var(--app-shadow-lift);
    display: grid; gap: .6rem; animation: float 5s ease-in-out infinite;
}
.landing-phone-bar { display: flex; align-items: center; gap: .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--app-line); }
.landing-phone-dot { inline-size: .6rem; block-size: .6rem; border-radius: 50%; background: var(--app-blue-500); }
.landing-phone-bar .fw-semibold { flex-grow: 1; }
.landing-code {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 800; letter-spacing: .2em;
    padding: .15em .55em; border-radius: .5rem; background: var(--app-onyx); color: #fff; direction: ltr;
}
.landing-phone-item {
    display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: .9rem;
    background: var(--app-surface-2); font-weight: 600; font-size: .9rem;
}
.landing-phone-ring {
    padding: .55rem .7rem; border-radius: .9rem; font-size: .85rem; font-weight: 600;
    background: var(--app-primary-soft); color: var(--bs-primary-text-emphasis); animation: pulse-ring 2s ease-out infinite;
}
.landing-phone-cta { padding: .7rem; border-radius: 999px; text-align: center; font-weight: 700; color: #fff; background: var(--app-gradient-strong); }

.landing-section { padding-block: 2.5rem; }
@media (min-width: 992px) { .landing-section { padding-block: 4rem; } }
.landing-heading { max-inline-size: 46rem; margin-bottom: 2rem; }
.landing-heading h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; }

/* Journey: a vertical timeline (the line follows the reading direction in RTL). */
.landing-journey { position: relative; display: grid; gap: 1rem; margin: 0; }
.landing-journey::before {
    content: ""; position: absolute; inset-block: 1.25rem; inset-inline-start: 1.25rem; inline-size: 3px;
    border-radius: 999px; background: var(--app-gradient); opacity: .5;
}
.landing-step { position: relative; display: flex; gap: 1rem; align-items: flex-start; }
.landing-step-number {
    flex-shrink: 0; z-index: 1; display: inline-grid; place-items: center; inline-size: 2.5rem; block-size: 2.5rem; border-radius: 50%;
    background: var(--app-primary); color: #fff; font-weight: 800; box-shadow: 0 0 0 5px var(--app-page);
}
.landing-step-body {
    flex: 1; min-width: 0; padding: 1rem 1.15rem; border-radius: 1rem; background: var(--app-surface);
    border: 1px solid var(--app-line); box-shadow: var(--app-shadow);
}
.landing-step-icon { margin-inline-end: .25rem; }
@media (min-width: 992px) {
    .landing-journey { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
    .landing-journey::before { display: none; }
    .landing-step:last-child { grid-column: 1 / -1; }
}

.landing-feature { border: 0; }
.landing-feature-icon {
    font-size: 1.6rem; display: inline-grid; place-items: center; inline-size: 3.25rem; block-size: 3.25rem; margin-bottom: .75rem;
    border-radius: 1rem; background: var(--app-primary-soft);
}
.landing-features > *:nth-child(even) .landing-feature-icon { background: var(--app-surface-2); }

/* Security: an onyx band (the section itself is data-bs-theme=dark). */
.landing-security {
    margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5); padding-inline: 1.25rem; border-radius: 1.5rem;
    background: radial-gradient(40rem 20rem at 100% 0%, rgba(37, 99, 235, .35), transparent 70%), var(--app-onyx);
    color: var(--bs-body-color);
}
@media (min-width: 768px) { .landing-security { margin-inline: 0; padding-inline: 2.5rem; } }
.landing-security .landing-eyebrow { background: rgba(59, 130, 246, .18); color: #93C5FD; }
.landing-layers { counter-reset: none; }
.landing-layer {
    position: relative; padding: 1.15rem 1.15rem 1.15rem 1.15rem; border-radius: 1rem;
    background: var(--app-surface); border: 1px solid var(--app-line);
    transition: border-color .2s ease, transform .2s ease;
}
.landing-layer-number {
    display: inline-grid; place-items: center; inline-size: 2rem; block-size: 2rem; margin-bottom: .6rem; border-radius: .6rem;
    background: var(--app-blue-600); color: #fff; font-weight: 800;
}
@media (hover: hover) { .landing-layer:hover { border-color: var(--app-blue-500); transform: translateY(-2px); } }

.landing-cta {
    margin-block: 2.5rem 1rem; padding: 2.5rem 1.25rem; border-radius: 1.5rem; text-align: center; color: #fff;
    background: var(--app-gradient-strong); box-shadow: 0 20px 50px rgba(30, 64, 175, .3);
}
.landing-cta h2 { font-weight: 800; }

/* Sign-in and password pages */
.auth-card { overflow: hidden; }
.auth-card::before { content: ""; display: block; block-size: 4px; background: var(--app-gradient); }

/* Staff navigation: one line per item; the bar collapses to the menu button below 1200px. */
.app-header .navbar-nav .nav-link { white-space: nowrap; }

/* Cashier: end-of-day drawer summary. Works in light and dark (surface tokens; white on the primary fill = 5.2:1). */
.drawer-summary { border-top: 4px solid var(--app-primary); }
.drawer-stat { padding: .75rem .9rem; border-radius: .8rem; background: var(--app-surface-2); border: 1px solid var(--app-line); block-size: 100%; }
.drawer-stat.drawer-total { background: var(--app-primary); border-color: var(--app-primary); color: #fff; }
.drawer-stat.drawer-total .small { color: rgba(255, 255, 255, .88); }

/* Theme switch in every header. */
.theme-toggle .dropdown-toggle::after { margin-inline-start: .3em; }
.theme-toggle .dropdown-item.active, .theme-toggle .dropdown-item:active { background: var(--app-primary); color: #fff; }
