/* Kiosk-specific styles — all other UI is handled by MudBlazor + SPC design tokens */

/* Shell — locked to viewport so nothing scrolls at the page level */
.kiosk-shell {
    height: 100vh;
    overflow: hidden;
    background: var(--spc-bg-900);
    display: flex;
    flex-direction: column;
    font-family: var(--spc-font);
    position: relative;
}

/* ── Animated grid background (Coming Soon style) ── */
.kiosk-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(25, 118, 210, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 118, 210, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* ── Glowing orbs (Coming Soon style) ── */
.kiosk-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.kiosk-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(25, 118, 210, .25) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.kiosk-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, .15) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
}

/* Sticky header */
.kiosk-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--spc-bg-700);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.kiosk-header-center {
    flex: 1;
    text-align: center;
    padding: 4px 0;
}

.kiosk-header-wing {
    width: 52px;
    flex-shrink: 0;
}

.kiosk-header-wing--end {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Company name — large, accent-blue, tracked */
.kiosk-company-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--spc-accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 6px 0;
    line-height: 1.1;
}

/* Clock — huge tabular digits */
.kiosk-clock-display {
    font-size: 6rem;
    font-weight: 300;
    color: var(--spc-text-white);
    letter-spacing: 0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.kiosk-date-display {
    font-size: 1.05rem;
    color: var(--spc-text-muted);
    margin-top: 6px;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* Content area — fills remaining height, does NOT scroll itself */
.kiosk-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

/* In compact mode the card must stretch to fill kiosk-content */
.kiosk-employee-card {
    border-radius: var(--spc-radius-card) !important;
    overflow: hidden;
    background: rgba(22, 27, 34, 0.8) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--spc-bg-700) !important;
    color: var(--spc-text-white) !important;
}

/* When the card is in compact mode it needs to be a flex column too */
.kiosk-employee-card.kiosk-card--compact {
    flex: 1 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Row accents */
.kiosk-row-in td {
    background-color: var(--spc-success-dim) !important;
}

.kiosk-row-in td:first-child {
    border-left: 5px solid var(--spc-success) !important;
}

.kiosk-row-out td:first-child {
    border-left: 5px solid transparent !important;
}

.kiosk-cta {
    padding: 24px;
    display: flex;
    justify-content: center;
}

/* ============================================================
   Compact Kiosk Layout — tap-to-select split panel
   ============================================================ */
.kiosk-compact-layout {
    display: flex;
    gap: 0;
    flex: 1;
    /* fill the card's height */
    min-height: 0;
    /* allow flex shrink */
    align-items: stretch;
}

/* Left: scrollable employee list — height is bounded by the layout container */
.kiosk-compact-list {
    flex: 0 0 44%;
    min-height: 0;
    /* allow the list to shrink and scroll internally */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 16px;
    border-right: 1px solid var(--spc-bg-700);
}

.kiosk-compact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}

.kiosk-compact-row:hover {
    background: rgba(255, 255, 255, 0.07);
}

.kiosk-compact-row--selected {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: #f59e0b !important;
}

.kiosk-compact-row--in {
    background: rgba(76, 175, 80, 0.06);
}

.kiosk-compact-row-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kiosk-compact-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--spc-text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kiosk-compact-status {
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 2px;
}

.kiosk-compact-status.status-in {
    color: #4caf50;
}

.kiosk-compact-status.status-out {
    color: var(--spc-text-muted);
}

/* Right: action panel — sticks to top so it never scrolls off-screen */
.kiosk-action-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 28px;
    align-self: flex-start;
    /* don't stretch to list height */
    position: sticky;
    top: 0;
}

.kiosk-action-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.55;
}

.kiosk-action-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.kiosk-action-last {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 16px;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

/* ============================================================
   PIN Dialog — consistent with SPC brand accent
   ============================================================ */
.spc-pin-dialog {
    font-family: var(--spc-font);
}