/* MykaTeam — Soft UI HR dashboard — tokens: variables.css */
@import url("variables.css");

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ——— Global density (~90% zoom feel, no CSS zoom/transform) ——— */
body.myka-app,
body.auth-layout {
    font-size: var(--font-base);
    line-height: 1.5;
}

.myka-app h1,
.auth-layout h1,
.myka-app .h1,
.auth-layout .h1 {
    font-size: var(--font-xl);
}

.myka-app h2,
.auth-layout h2,
.myka-app .h2,
.auth-layout .h2 {
    font-size: var(--font-h2);
}

.myka-app h3,
.auth-layout h3,
.myka-app .h3,
.auth-layout .h3 {
    font-size: var(--font-h3);
}

/* Content width only — header stays full viewport (see .top-navbar) */
.main-panel .container,
.main-panel .container-fluid,
.auth-layout .container,
.auth-layout .container-fluid {
    max-width: var(--layout-max-width);
    margin-left: auto;
    margin-right: auto;
}

.myka-app .row,
.auth-layout .row {
    --bs-gutter-x: var(--space-md);
    --bs-gutter-y: var(--space-md);
}

.myka-app .btn:not(.btn-link):not(.btn-icon):not(.btn-avatar),
.auth-layout .btn:not(.btn-link):not(.btn-icon):not(.btn-avatar) {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--radius-btn);
}

.myka-app .btn.rounded-pill,
.auth-layout .btn.rounded-pill {
    border-radius: var(--radius-pill);
}

.myka-app .btn-sm,
.auth-layout .btn-sm {
    padding: 4px 10px;
    font-size: var(--font-sm);
}

.myka-app .form-control:not(.auth-input),
.auth-layout .form-control:not(.auth-input) {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: var(--radius-input);
}

.myka-app .table td,
.myka-app .table th,
.auth-layout .table td,
.auth-layout .table th {
    padding: 10px 12px;
    font-size: 13px;
}

.top-navbar.navbar {
    padding-top: 10px;
    padding-bottom: 10px;
}

.top-navbar .container-fluid {
    width: 100%;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

@media (min-width: 992px) {
    .top-navbar .container-fluid {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }
}

.card-custom {
    padding: var(--card-padding);
    border-radius: var(--radius);
}

body.myka-app {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--myka-bg);
    color: var(--myka-text);
    min-height: 100vh;
}

/* Fixed top nav */
.top-navbar {
    z-index: 1030;
    min-height: var(--myka-topbar);
}

.brand-mark {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
    background: var(--myka-gradient);
    box-shadow: 0 4px 14px rgba(78, 115, 223, 0.35);
}

.top-nav-pills .nav-link {
    color: var(--myka-muted);
    font-weight: 500;
    font-size: var(--font-sm);
    padding: 0.35rem 0.65rem !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.top-nav-pills .nav-link:hover {
    color: var(--myka-text);
    background: rgba(15, 23, 42, 0.04);
}

.top-nav-pills .nav-link.active {
    color: var(--myka-text);
    background: rgba(15, 23, 42, 0.06);
}

.search-pill {
    background: var(--myka-bg);
    border-radius: 999px;
    border: 1px solid var(--myka-border);
    max-width: 252px;
    overflow: hidden;
}

.search-pill .form-control {
    background: transparent;
    font-size: var(--font-sm);
}

.search-pill .form-control::placeholder {
    color: #94a3b8;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--myka-border);
    background: var(--myka-card);
    color: var(--myka-muted);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-icon:hover {
    background: var(--myka-bg);
    color: var(--myka-text);
}

.btn-notify {
    position: relative;
}

.btn-avatar {
    border: 0;
    background: transparent;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

.btn-avatar::after {
    display: none;
}

.btn-avatar.dropdown-toggle::after {
    margin-left: 0.35rem;
}

.btn-avatar img {
    width: 36px;
    height: 36px;
}

/* App shell */
.app-shell {
    padding-top: var(--myka-topbar);
    min-height: 100vh;
    position: relative;
}

/* Sidebar — fixed drawer; main content offset on large screens */
.sidebar {
    width: var(--myka-sidebar-w);
    position: fixed;
    top: var(--myka-topbar);
    left: 0;
    bottom: 0;
    z-index: 1020;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    box-shadow: none;
}

@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
    }
}

.sidebar.is-open {
    transform: translateX(0);
    box-shadow: var(--myka-shadow);
}

.sidebar-inner {
    overflow-y: auto;
    padding-top: var(--space-sm) !important;
    padding-bottom: var(--space-sm) !important;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.2rem;
    border-radius: var(--radius-btn);
    color: var(--myka-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-sm);
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.sidebar-link i {
    font-size: 1rem;
    opacity: 0.85;
}

.sidebar-link:hover {
    background: var(--myka-bg);
    color: var(--myka-text);
}

.sidebar-link.is-active {
    background: rgba(78, 115, 223, 0.1);
    color: var(--myka-primary-start);
}

.app-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--myka-topbar);
    background: rgba(15, 23, 42, 0.35);
    z-index: 1015;
}

.app-backdrop.is-visible {
    display: block;
}

@media (min-width: 992px) {
    .app-backdrop {
        display: none !important;
    }
}

/* Main */
.main-panel {
    width: 100%;
    min-height: calc(100vh - var(--myka-topbar));
    padding: var(--space-lg) var(--space-md) 4rem;
}

@media (min-width: 992px) {
    .main-panel {
        margin-left: var(--myka-sidebar-w);
        max-width: calc(100% - var(--myka-sidebar-w));
        padding: var(--space-xl) var(--space-lg) 4rem;
    }
}

.page-title {
    font-size: var(--font-xl);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-muted-2 {
    color: var(--myka-muted);
    font-size: var(--font-sm);
}

/* Cards */
.card-soft {
    background: var(--myka-card);
    border: 1px solid var(--myka-border);
    border-radius: var(--myka-radius);
    box-shadow: var(--myka-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-soft:hover {
    transform: translateY(-3px);
    box-shadow: var(--myka-shadow-hover);
}

.card-soft .card-header {
    background: transparent;
    border-bottom: 1px solid var(--myka-border);
    padding: var(--space-sm) var(--card-padding);
}

.card-soft .card-body {
    padding: var(--card-padding);
}

.card-gradient {
    background: var(--myka-gradient);
    border: none;
    color: #fff;
    border-radius: var(--myka-radius);
    box-shadow: 0 10px 26px rgba(78, 115, 223, 0.32);
}

.card-gradient .card-body {
    padding: var(--card-padding);
}

.card-gradient .text-white-75 {
    color: rgba(255, 255, 255, 0.85);
}

/* Insight highlight */
.insight-card {
    border-radius: var(--myka-radius);
    overflow: hidden;
}

.insight-carousel-dots {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.insight-carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

.insight-carousel-dots .dot.active {
    width: 18px;
    border-radius: 4px;
    background: #fff;
}

/* Buttons */
.btn-primary {
    background: var(--myka-gradient);
    border: none;
    font-weight: 600;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--radius-btn);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.myka-app .btn-primary.rounded-pill,
.auth-layout .btn-primary.rounded-pill {
    border-radius: var(--radius-pill);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4566cf, #5f7dff);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(78, 115, 223, 0.35);
}

.btn-pill-muted {
    border-radius: var(--radius-pill);
    background: var(--myka-bg);
    border: 1px solid var(--myka-border);
    color: var(--myka-muted);
    font-size: var(--font-sm);
    padding: 5px 12px;
}

.btn-pill-muted:hover {
    background: #e8ecf4;
    color: var(--myka-text);
}

/* Badges */
.badge-soft {
    font-weight: 600;
    padding: 0.3em 0.55em;
    border-radius: var(--radius-pill);
    font-size: 11px;
}

.badge-late {
    background: rgba(234, 179, 8, 0.18);
    color: #a16207;
}

.badge-punctual {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.badge-overtime {
    background: rgba(37, 99, 235, 0.2);
    color: #1d4ed8;
}

.badge-remote {
    background: rgba(20, 184, 166, 0.2);
    color: #0f766e;
}

.badge-absent {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.badge-checkin {
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
}

.badge-ft {
    background: rgba(78, 115, 223, 0.12);
    color: var(--myka-primary-start);
}

.badge-pt {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

/* Tables */
.table-myka {
    font-size: 13px;
}

.table-myka thead th {
    font-weight: 600;
    color: var(--myka-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
    border-bottom-width: 1px;
    white-space: nowrap;
    padding: 10px 12px;
}

.table-myka tbody td {
    padding: 10px 12px;
    vertical-align: middle;
}

.table-myka tbody tr {
    transition: background 0.15s ease;
}

.table-myka tbody tr:hover {
    background: rgba(78, 115, 223, 0.04);
}

.table-responsive.rounded-bottom {
    border-radius: 0 0 calc(var(--myka-radius) - 2px) calc(var(--myka-radius) - 2px);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

/* Tabs (directory) */
.nav-tabs-soft {
    border: 0;
    gap: 0.5rem;
}

.nav-tabs-soft .nav-link {
    border: 0;
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.85rem;
    font-weight: 600;
    font-size: var(--font-sm);
    color: var(--myka-muted);
    background: var(--myka-bg);
}

.nav-tabs-soft .nav-link:hover {
    color: var(--myka-text);
}

.nav-tabs-soft .nav-link.active {
    color: #fff;
    background: var(--myka-gradient);
}

/* Calendar strip */
.calendar-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.calendar-day {
    flex: 0 0 auto;
    min-width: 42px;
    text-align: center;
    padding: 0.4rem 0.3rem;
    border-radius: var(--radius-btn);
    cursor: default;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.calendar-day small {
    display: block;
    color: var(--myka-muted);
    font-size: 0.65rem;
    text-transform: uppercase;
}

.calendar-day .day-num {
    font-weight: 700;
    font-size: 1rem;
}

.calendar-day.has-dot::after {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--myka-primary-start);
    margin: 0.35rem auto 0;
}

.calendar-day.is-selected {
    background: rgba(78, 115, 223, 0.12);
    border-color: rgba(78, 115, 223, 0.35);
    color: var(--myka-primary-start);
}

/* Meeting list */
.meeting-item {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--myka-border);
}

.meeting-item:last-child {
    border-bottom: 0;
}

.badge-coral {
    background: rgba(251, 113, 133, 0.2);
    color: #be123c;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-pill);
}

/* Stat dividers */
.stat-divider {
    width: 1px;
    background: var(--myka-border);
    align-self: stretch;
    min-height: 40px;
}

/* Sparkline placeholder bar */
.spark-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 32px;
}

.spark-bars span {
    width: 6px;
    border-radius: 3px;
    background: rgba(148, 163, 184, 0.35);
}

.spark-bars span.hi {
    background: rgba(78, 115, 223, 0.55);
}

/* Skeleton */
.skeleton-wrap.is-loading .skeleton-hide {
    opacity: 0;
    pointer-events: none;
}

.skeleton-table {
    display: none;
}

.skeleton-wrap.is-loading .skeleton-table {
    display: block;
}

.skeleton-wrap.is-loading .table-real {
    display: none;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e8ecf4 0%, #f1f5f9 50%, #e8ecf4 100%);
    background-size: 200% 100%;
    animation: sk 1.2s ease-in-out infinite;
}

@keyframes sk {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* FAB */
.fab-add {
    position: fixed;
    right: var(--space-lg);
    bottom: var(--space-lg);
    z-index: 1040;
    padding: 0.55rem 1rem;
    font-size: var(--font-sm);
}

.fab-add .fab-add-text {
    display: none;
}

@media (min-width: 576px) {
    .fab-add .fab-add-text {
        display: inline;
    }
}

/* Chart containers */
.chart-box-xs {
    position: relative;
    height: var(--chart-height-xs);
}

.chart-box-sm {
    position: relative;
    height: var(--chart-height-sm);
}

.chart-box-md {
    position: relative;
    height: var(--chart-height-md);
}

.chart-box-bar {
    position: relative;
    height: var(--chart-height-bar);
}

/* Employee page — top performers */
.perf-row {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--myka-border);
}

.perf-row:last-child {
    border-bottom: 0;
}

.mini-spark {
    width: 64px;
    height: 24px;
}

/* Avatar overlap */
.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack img + img {
    margin-left: -8px;
}

/* Skeleton widths */
.skeleton-w-25 {
    width: 25%;
}

.skeleton-w-40 {
    width: 40%;
}

.skeleton-w-80 {
    width: 80px;
}

.skeleton-avatar {
    width: 32px;
    height: 32px;
}

/* Utilities */
.sub-label {
    font-size: var(--font-sm);
    color: var(--myka-muted);
}

.fs-display {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

@media (min-width: 768px) {
    .fs-display {
        font-size: 2rem;
    }
}

.rounded-xl {
    border-radius: var(--myka-radius);
}

/* Bootstrap display utilities — denser */
.myka-app .display-5 {
    font-size: 2rem;
}

.myka-app .display-6 {
    font-size: 1.65rem;
}

/* Section vertical rhythm */
.myka-app .mb-4 {
    margin-bottom: var(--space-lg) !important;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .card-soft,
    .btn-primary,
    .sidebar-link,
    .skeleton-line {
        animation: none;
        transition: none;
    }

    .card-soft:hover {
        transform: none;
    }
}

/* ——— Auth / Login ——— */

body.auth-layout {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--myka-bg);
    color: var(--myka-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-main {
    flex: 1 0 auto;
}

.auth-split-row {
    min-height: 100vh;
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    background: var(--myka-gradient);
    background-size: 200% 200%;
    animation: authGradientShift 14s ease-in-out infinite;
}

@keyframes authGradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-xl) var(--space-lg);
}

.auth-brand-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.45) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
}

.auth-brand-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
    opacity: 0.45;
}

.auth-brand-blur--1 {
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.55);
    top: -40px;
    right: -30px;
}

.auth-brand-blur--2 {
    width: 180px;
    height: 180px;
    background: rgba(108, 140, 255, 0.7);
    bottom: 10%;
    left: -20px;
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.auth-brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.auth-brand-name {
    font-size: var(--font-md);
    letter-spacing: -0.02em;
}

.auth-brand-title {
    letter-spacing: -0.03em;
}

.auth-brand-lead {
    font-size: var(--font-base);
    line-height: 1.5;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.82);
}

.auth-brand-illustration-icon {
    font-size: 2rem;
    opacity: 0.95;
}

.auth-form-column {
    background: var(--myka-bg);
    position: relative;
}

.auth-form-column::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(78, 115, 223, 0.06), transparent 55%);
    pointer-events: none;
}

.auth-form-outer {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.auth-card-max {
    max-width: 440px;
}

.auth-card.card-soft .auth-card-body {
    padding: var(--card-padding);
}

.auth-input {
    border-radius: var(--radius-input);
    border: 1px solid var(--myka-border);
    padding: 8px 12px;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input:focus {
    border-color: rgba(78, 115, 223, 0.55);
    box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.18);
    background: #fff;
}

.auth-password-wrap .auth-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.auth-layout .auth-login-btn {
    padding: 8px 16px;
    font-size: 13px;
}

.auth-password-toggle {
    border: 1px solid var(--myka-border);
    border-left: 0;
    background: #fff;
    color: var(--myka-muted);
    border-radius: 0 var(--radius-input) var(--radius-input) 0;
    padding: 0 0.65rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.auth-password-wrap:focus-within .auth-password-toggle {
    border-color: rgba(78, 115, 223, 0.55);
}

.auth-password-toggle:hover {
    color: var(--myka-primary-start);
    background: rgba(78, 115, 223, 0.04);
}

.auth-link-muted {
    color: var(--myka-muted);
    font-weight: 500;
}

.auth-link-muted:hover {
    color: var(--myka-primary-start);
}

.auth-login-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(78, 115, 223, 0.35);
}

.auth-login-btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

.auth-login-alert {
    border-radius: 12px;
}

.auth-footer {
    flex-shrink: 0;
    padding: 0.75rem 1rem 1rem;
    text-align: center;
}

.auth-footer-product {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--myka-text);
    letter-spacing: -0.01em;
}

.auth-footer-version {
    font-weight: 600;
    color: var(--myka-muted);
}

.auth-footer-text {
    font-size: 0.75rem;
    color: var(--myka-muted);
}

@media (max-width: 767.98px) {
    .auth-form-outer {
        min-height: auto;
    }

    .auth-split-row {
        min-height: auto;
    }

    .auth-main {
        padding-bottom: 0;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .auth-brand-inner {
        padding: 2rem 1.35rem;
    }

    .auth-brand-content {
        max-width: 100%;
    }

    .auth-brand-title {
        font-size: 1.15rem;
    }

    .auth-brand-lead {
        font-size: 0.875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-brand-panel {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════════════
   Attendance Punch — Modern Kiosk Terminal
   Aligned with MykaTeam design system (variables.css)
   ═══════════════════════════════════════════════════════ */

/* ── Base shell ───────────────────────────────────────── */
.kiosk-layout {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #0f1623;
    color: #e8edf5;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

body.kiosk-layout > main {
    flex: 1 1 auto;
    min-height: 0;
}

.kiosk-layout .kiosk-scan-input {
    user-select: text;
    -webkit-user-select: text;
}

/* ── Kiosk footer (product + legal) ───────────────────── */
.kiosk-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem var(--space-md) 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.kiosk-footer-product {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.02em;
}

.kiosk-footer-version {
    font-weight: 600;
    color: #94a3b8;
}

.kiosk-footer-legal {
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: #64748b;
    max-width: 42rem;
}

/* ── Full viewport wrapper ────────────────────────────── */
.kiosk-punch {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    overflow: hidden;
}

/* ── Background atmosphere ────────────────────────────── */
.kiosk-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.22;
}

.kiosk-orb--1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #4e73df, transparent 70%);
    top: -120px;
    left: -80px;
    animation: orbFloat1 18s ease-in-out infinite;
}

.kiosk-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #6c8cff, transparent 70%);
    bottom: -80px;
    right: -60px;
    animation: orbFloat2 22s ease-in-out infinite;
}

.kiosk-orb--3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #22c55e, transparent 70%);
    top: 55%;
    left: 38%;
    opacity: 0.1;
    animation: orbFloat3 15s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(30px, 40px) scale(1.06); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(-20px, -30px) scale(1.04); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(15px, -20px); }
}

/* ── Two-column shell ─────────────────────────────────── */
.kiosk-punch-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 28px;
    width: 100%;
    max-width: 1340px;
}

/* ── Center column frame ──────────────────────────────── */
.kiosk-punch-center-inner {
    width: min(100%, 640px);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.kiosk-punch-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 420px) {
    .kiosk-punch-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .kiosk-punch-actions {
        justify-content: space-between;
    }
}

.kiosk-punch-actions .kiosk-brand-entity {
    max-width: min(200px, 42vw);
}

.kiosk-punch-stage {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Clock card ───────────────────────────────────────── */
.kiosk-clock-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 26px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.kiosk-clock-wrap {
    width: 100%;
}

.kiosk-clock-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}

@media (min-width: 576px) {
    .kiosk-clock-main {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        text-align: left;
        gap: 1rem 1.5rem;
    }

    .kiosk-clock-text {
        text-align: left;
        align-items: flex-start;
    }
}

.kiosk-clock-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.kiosk-clock-weekday {
    display: block;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kiosk-clock-date {
    display: block;
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    color: #cbd5e1;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

@media (min-width: 576px) {
    .kiosk-clock-display {
        flex-shrink: 0;
        text-align: right;
    }
}

/* ── Brand strip ──────────────────────────────────────── */
.kiosk-brand {
    opacity: 0.92;
}

.kiosk-brand-mark {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    background: var(--myka-gradient);
    box-shadow: 0 0 14px rgba(78, 115, 223, 0.5);
}

.kiosk-brand-name {
    font-size: 15px;
    color: #e8edf5;
    letter-spacing: -0.01em;
}

.kiosk-brand-divider,
.kiosk-brand-sub {
    font-size: 13px;
    color: #64748b;
}

.kiosk-brand-entity {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.25em 0.65em;
    max-width: 140px;
    color: #93c5fd;
    background: rgba(78, 115, 223, 0.2);
    border: 1px solid rgba(108, 140, 255, 0.35);
}

/* ── Left / centre column ─────────────────────────────── */
.kiosk-punch-center {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}

.kiosk-clock-display {
    font-size: clamp(36px, 6vw, 52px);
    font-weight: 700;
    letter-spacing: 0.07em;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(108, 140, 255, 0.4);
}

.kiosk-clock-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-top: 0.65rem;
}

/* ── Scan card ────────────────────────────────────────── */
.kiosk-scan-card {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    padding: 0;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.kiosk-scan-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 14px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.12);
}

.kiosk-scan-card-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.kiosk-scan-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #86efac;
}

.kiosk-scan-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.65);
    animation: kioskStatusPulse 2s ease-in-out infinite;
}

@keyframes kioskStatusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.65; transform: scale(0.92); }
}

.kiosk-scan-body {
    padding: clamp(22px, 3.5vw, 36px) clamp(20px, 4vw, 40px) clamp(24px, 4vw, 40px);
}

.kiosk-scan-card.kiosk-scan--flash-success {
    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.55),
        0 32px 64px rgba(0, 0, 0, 0.4);
    animation: kioskSuccessFlash 0.5s ease;
}

.kiosk-scan-card.kiosk-scan--flash-warning {
    box-shadow:
        0 0 0 3px rgba(234, 179, 8, 0.55),
        0 32px 64px rgba(0, 0, 0, 0.4);
}

.kiosk-scan-card.kiosk-scan--flash-error {
    box-shadow:
        0 0 0 3px rgba(239, 68, 68, 0.55),
        0 32px 64px rgba(0, 0, 0, 0.4);
    animation: kioskErrorShake 0.4s ease;
}

@keyframes kioskSuccessFlash {
    0%, 100% { transform: scale(1); }
    30%       { transform: scale(1.008); }
}

@keyframes kioskErrorShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* ── Animated rings behind icon ───────────────────────── */
.kiosk-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(78, 115, 223, 0.2);
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: kioskRing 3.2s ease-out infinite;
}

.kiosk-ring--1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.kiosk-ring--2 {
    width: 320px;
    height: 320px;
    animation-delay: 1.1s;
    border-color: rgba(108, 140, 255, 0.12);
}

@keyframes kioskRing {
    0%   { transform: translate(-50%, -50%) scale(0.4); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

/* ── Idle section ─────────────────────────────────────── */
.kiosk-scan-idle {
    text-align: center;
}

.kiosk-scan-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.kiosk-scan-icon-inner {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.22), rgba(108, 140, 255, 0.1));
    border: 1.5px solid rgba(108, 140, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 10px rgba(78, 115, 223, 0.06),
        0 0 32px rgba(78, 115, 223, 0.2);
    animation: iconBreath 3s ease-in-out infinite;
}

@keyframes iconBreath {
    0%, 100% { box-shadow: 0 0 0 10px rgba(78, 115, 223, 0.06), 0 0 32px rgba(78, 115, 223, 0.18); }
    50%       { box-shadow: 0 0 0 16px rgba(78, 115, 223, 0.1),  0 0 48px rgba(78, 115, 223, 0.28); }
}

.kiosk-scan-icon {
    font-size: 2.5rem;
    background: var(--myka-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kiosk-scan-title {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 700;
    color: #e8edf5;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.kiosk-scan-sub {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 0;
}

/* ── Scan input ───────────────────────────────────────── */
.kiosk-scan-input {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 22px auto 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 12px 18px;
    border-radius: var(--radius-input);
    border: 2px dashed rgba(108, 140, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: #e8edf5;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
}

.kiosk-scan-input::placeholder {
    color: #475569;
    font-weight: 400;
}

.kiosk-scan-input:focus {
    border-style: solid;
    border-color: rgba(108, 140, 255, 0.65);
    box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

/* ── Feedback panels ──────────────────────────────────── */
.kiosk-feedback-panel {
    animation: kFeedIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes kFeedIn {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.kiosk-feedback-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    margin-bottom: 14px;
}

.kiosk-feedback-icon--success {
    background: rgba(34, 197, 94, 0.18);
    border: 2px solid rgba(34, 197, 94, 0.45);
    color: #4ade80;
    box-shadow: 0 0 28px rgba(34, 197, 94, 0.3);
}

.kiosk-feedback-icon--warning {
    background: rgba(234, 179, 8, 0.16);
    border: 2px solid rgba(234, 179, 8, 0.45);
    color: #fbbf24;
    box-shadow: 0 0 28px rgba(234, 179, 8, 0.22);
}

.kiosk-feedback-icon--error {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
    box-shadow: 0 0 28px rgba(239, 68, 68, 0.22);
}

.kiosk-feedback--success,
.kiosk-feedback--warning,
.kiosk-feedback--error {
    text-align: center;
    padding: 4px 0;
}

.kiosk-feedback-headline {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #e8edf5;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.kiosk-feedback--success .kiosk-feedback-headline { color: #4ade80; }
.kiosk-feedback--warning .kiosk-feedback-headline { color: #fbbf24; }
.kiosk-feedback--error   .kiosk-feedback-headline { color: #f87171; }

.kiosk-feedback-emp-name {
    font-size: clamp(2rem, 5.5vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-top: 8px;
}

.kiosk-feedback-emp-time {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    color: #94a3b8;
    margin-top: 4px;
}

.kiosk-feedback-badge {
    margin-top: 12px;
    font-size: 0.95rem;
    padding: 0.4em 1em;
    border-radius: var(--radius-pill);
    display: inline-block;
}

.kiosk-feedback-msg {
    font-size: 14px;
    color: #64748b;
    margin-top: 6px;
    margin-bottom: 0;
}

.kiosk-fs-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    color: #64748b;
    padding: 2px 8px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    line-height: 1.6;
    font-size: 12px;
}

.kiosk-fs-btn:hover {
    color: #e8edf5;
    background: rgba(255, 255, 255, 0.12);
}

.kiosk-fs-btn--top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.kiosk-fs-btn--top:hover {
    color: #e2e8f0;
}

.kiosk-fs-btn-text {
    font-size: 12px;
    letter-spacing: 0.02em;
}

/* ── Recent punches panel ─────────────────────────────── */
.kiosk-log-panel {
    flex: 0 0 320px;
    max-width: 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-height: min(90vh, 90dvh);
}

.kiosk-log-header {
    padding: 16px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.kiosk-log-header-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.kiosk-log-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kiosk-log-header-title {
    font-weight: 600;
    font-size: 13px;
    color: #e2e8f0;
    letter-spacing: 0.02em;
}

.kiosk-log-header-sub {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.02em;
    padding-left: 22px;
}

.kiosk-log-header-icon {
    font-size: 15px;
    color: var(--primary-start);
    flex-shrink: 0;
}

.kiosk-log-list {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 0;
}

.kiosk-log-list::-webkit-scrollbar {
    width: 4px;
}

.kiosk-log-list::-webkit-scrollbar-track {
    background: transparent;
}

.kiosk-log-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.kiosk-log-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}

.kiosk-log-item:last-child {
    border-bottom: 0;
}

.kiosk-log-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.kiosk-log-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.kiosk-log-info {
    flex: 1 1 0;
    min-width: 0;
}

.kiosk-log-name {
    font-weight: 600;
    font-size: 14px;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kiosk-log-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 3px;
}

.kiosk-log-time {
    font-size: 12px;
    color: #64748b;
}

/* Badge colours on dark background */
.kiosk-log-panel .badge-soft {
    font-size: 11px;
}

.kiosk-log-panel .badge-punctual {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.kiosk-log-panel .badge-late {
    background: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
}

.kiosk-log-panel .badge-overtime {
    background: rgba(37, 99, 235, 0.25);
    color: #93c5fd;
}

.kiosk-log-panel .badge-remote {
    background: rgba(20, 184, 166, 0.2);
    color: #5eead4;
}

/* New entry animation */
.kiosk-log-item--new {
    animation: kioskLogIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes kioskLogIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.kiosk-log-list .kiosk-log-empty {
    list-style: none;
}

/* ── Punch: entity missing (404 layout) ───────────────── */
.layout-404-warning-body {
    min-height: 100vh;
    min-height: 100dvh;
}

.layout-404-warning {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    overflow: hidden;
}

.layout-404-warning-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
}

.layout-404-warning-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.layout-404-warning-code {
    font-size: clamp(3.5rem, 12vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, #93c5fd 0%, #4e73df 45%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.95;
}

.layout-404-warning-title {
    color: rgba(255, 255, 255, 0.95);
}

.layout-404-warning-hint code {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.layout-404-warning .text-muted {
    color: rgba(203, 213, 225, 0.85) !important;
}

.layout-404-warning .text-body {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 991.98px) {
    .kiosk-punch {
        align-items: flex-start;
        overflow-y: auto;
        padding: var(--space-md);
    }

    .kiosk-punch-shell {
        flex-direction: column;
    }

    .kiosk-punch-center {
        width: 100%;
    }

    .kiosk-log-panel {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
        max-height: 300px;
    }
}

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .layout-404-warning .kiosk-orb,
    .kiosk-orb,
    .kiosk-ring,
    .kiosk-scan-icon-inner,
    .kiosk-scan-card,
    .kiosk-scan-status-dot,
    .kiosk-log-item--new,
    .kiosk-feedback-panel {
        animation: none !important;
        transition: none !important;
    }
}
