/* ============================================
   ARK QC Kiosk — PrimeVue Aura Dark Override
   PrimeVue 4 테마 위에 레이아웃 + 커스텀 스타일만 관리
   + 다크/라이트 모드 지원
   ============================================ */

/* ── Reset & Document ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--kiosk-bg, #0f0f23);
    color: var(--kiosk-text, #e0e0f0);
    overflow: hidden;
    transition: background 0.3s, color 0.3s;
}

/* === Dark mode (default) === */
[data-theme="dark"] {
    --kiosk-bg: #0f0f23;
    --kiosk-text: #e0e0f0;
    --kiosk-surface: rgba(255, 255, 255, 0.04);
    --kiosk-border: rgba(255, 255, 255, 0.08);
    --kiosk-hover: rgba(255, 255, 255, 0.06);
    --kiosk-muted: #9ca3af;
    --kiosk-panel-bg: rgba(15, 15, 35, 0.92);
    --kiosk-panel-border: rgba(255, 255, 255, 0.06);
    --kiosk-page-bg: #05060a;
    --kiosk-sidebar-bg: rgba(11, 13, 20, 0.9);
    --kiosk-header-bg: rgba(11, 13, 20, 0.95);
    --kiosk-panel-active: #131722;
    --kiosk-glass-border: rgba(255, 255, 255, 0.05);
    --kiosk-glass-surface: rgba(255, 255, 255, 0.03);
}

/* === Light mode === */
[data-theme="light"] {
    --kiosk-bg: #f4f6f9;
    --kiosk-text: #1e293b;
    --kiosk-surface: rgba(0, 0, 0, 0.03);
    --kiosk-border: rgba(0, 0, 0, 0.1);
    --kiosk-hover: rgba(0, 0, 0, 0.05);
    --kiosk-muted: #64748b;
    --kiosk-panel-bg: rgba(255, 255, 255, 0.95);
    --kiosk-panel-border: rgba(0, 0, 0, 0.08);
    --kiosk-page-bg: #f4f6f9;
    --kiosk-sidebar-bg: #ffffff;
    --kiosk-header-bg: #ffffff;
    --kiosk-panel-active: #e2e8f0;
    --kiosk-glass-border: rgba(0, 0, 0, 0.08);
    --kiosk-glass-surface: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .text-muted {
    color: #64748b !important;
}

:root {
    --topbar-h: 52px;
    --stepper-h: 72px;
    --nav-h: 60px;
    --sidebar-w: 56px;
    --gap: 16px;
    --radius: 12px;
}

/* ── Utility ── */
/* ── Custom Utilities (Replacing Tailwind) ── */
.w-full {
    width: 100% !important;
}

.h-full {
    height: 100% !important;
}

.w-8 {
    width: 2rem !important;
}

.h-8 {
    height: 2rem !important;
}

.w-12 {
    width: 3rem !important;
}

/* for h-12 equivalent if needed, or check usage */

.top-2 {
    top: 0.5rem !important;
}

.right-2 {
    right: 0.5rem !important;
}

.top-4 {
    top: 1rem !important;
}

.right-4 {
    right: 1rem !important;
}

.absolute {
    position: absolute !important;
}

.relative {
    position: relative !important;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10 !important;
}

.z-50 {
    z-index: 50 !important;
}

.rounded-full {
    border-radius: 9999px !important;
}

.rounded-xl {
    border-radius: 0.75rem !important;
}

.rounded-2xl {
    border-radius: 1rem !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.transition-transform {
    transition-property: transform !important;
    transition-duration: 200ms !important;
}

.transition-colors {
    transition-property: color, background-color, border-color !important;
    transition-duration: 200ms !important;
}

.transition-all {
    transition-property: all !important;
    transition-duration: 200ms !important;
}

.hover\:scale-110:hover {
    transform: scale(1.1) !important;
}

.group:hover .group-hover\:text-primary {
    color: var(--p-primary-color, #00f0a0) !important;
}

/* Flex/Grid Utilities (some overlap with PrimeFlex but explicitly defined if PF missing) */
.flex-1 {
    flex: 1 1 0% !important;
}

.flex-col {
    flex-direction: column !important;
}

.justify-center {
    justify-content: center !important;
}

.items-center {
    align-items: center !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-4 {
    gap: 1rem !important;
}

.grid {
    display: grid !important;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Aspect Ratio */
.aspect-video {
    aspect-ratio: 16 / 9 !important;
}

/* Colors */
.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.hover\:bg-white\/20:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.hover\:border-primary\/30:hover {
    border-color: rgba(0, 240, 160, 0.3) !important;
}

.hover\:border-primary\/50:hover {
    border-color: rgba(0, 240, 160, 0.5) !important;
}

.bg-red-500 {
    background-color: #ef4444 !important;
}

.hover\:bg-red-400:hover {
    background-color: #f87171 !important;
}

.hover\:text-red-400:hover {
    color: #f87171 !important;
}

.text-white {
    color: #fff !important;
}

.text-gray-300 {
    color: #d1d5db !important;
}

.text-gray-400 {
    color: #9ca3af !important;
}

.text-gray-500 {
    color: #6b7280 !important;
}

.text-primary {
    color: var(--p-primary-color, #00f0a0) !important;
}

.border-dashed {
    border-style: dashed !important;
}

.border-2 {
    border-width: 2px !important;
}

.border {
    border-width: 1px !important;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.object-cover {
    object-fit: cover !important;
}

.backdrop-blur {
    backdrop-filter: blur(8px) !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.cursor-not-allowed {
    cursor: not-allowed !important;
}

.opacity-30 {
    opacity: 0.3 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-60 {
    opacity: 0.6 !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.overflow-y-auto {
    overflow-y: auto !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-4 {
    padding: 1rem !important;
}

.p-6 {
    padding: 1.5rem !important;
}

.px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.px-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.px-8 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-8 {
    margin-top: 2rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.pt-8 {
    padding-top: 2rem !important;
}

/* Specific complex classes used in templates */
.bg-glass-surface {
    background-color: var(--kiosk-glass-surface, rgba(255, 255, 255, 0.03)) !important;
}

.hover\:bg-white\/5:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.border-t {
    border-top-width: 1px !important;
}

.fixed {
    position: fixed !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.left-0 {
    left: 0 !important;
}

.right-0 {
    right: 0 !important;
}


/* ============================================
   Top Bar
   ============================================ */
.kiosk-topbar {
    z-index: 100;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: var(--kiosk-panel-bg);
    /*backdrop-filter: blur(12px);*/
    border-bottom: 1px solid var(--kiosk-panel-border);
}

.kiosk-topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.kiosk-topbar__info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.kiosk-topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kiosk-topbar__user {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--kiosk-muted);
}

/* ============================================
   Stepper (custom — PrimeVue Stepper layout 불필요)
   ============================================ */
.kiosk-stepper {
    top: var(--topbar-h);
    left: var(--sidebar-w);
    height: var(--stepper-h);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 24px;
    background: var(--kiosk-panel-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--kiosk-panel-border);
    z-index: 90;
}

.kiosk-stepper__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 80px;
}

.kiosk-stepper__dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: #6b7280;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.kiosk-stepper__item.active .kiosk-stepper__dot {
    background: var(--p-primary-color, #4f8cff);
    border-color: var(--p-primary-color, #4f8cff);
    color: #fff;
    box-shadow: 0 0 16px rgba(79, 140, 255, 0.4);
}

.kiosk-stepper__item.completed .kiosk-stepper__dot {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.kiosk-stepper__label {
    font-size: 0.7rem;
    color: #6b7280;
}

.kiosk-stepper__item.active .kiosk-stepper__label {
    color: #fff;
    font-weight: 600;
}

.kiosk-stepper__item.completed .kiosk-stepper__label {
    color: #22c55e;
}

.kiosk-stepper__connector {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.kiosk-stepper__connector.done {
    background: #22c55e;
}

/* ============================================
   Sidebar
   ============================================ */
.kiosk-sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    background: var(--kiosk-panel-bg);
    border-right: 1px solid var(--kiosk-panel-border);
    z-index: 80;
}

.kiosk-main-padded {
    padding-left: 56px;
}

.kiosk-sidebar__item {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.kiosk-sidebar__item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.kiosk-sidebar__item i {
    font-size: 1.1rem;
}

.kiosk-sidebar__label {
    font-size: 0.5rem;
    margin-top: 2px;
}

.kiosk-sidebar__spacer {
    flex: 1;
}

.kiosk-sidebar__item--bottom {
    margin-top: auto;
}

/* ============================================
   Main body (scroll area)
   ============================================ */
.kiosk-main {
    position: fixed;
    top: var(--topbar-h);
    left: var(--sidebar-w);
    right: 0;
    bottom: 0;
    /* 푸터 높이는 별도로 계산되거나 패딩 처리 */
    background: var(--kiosk-bg);
}

.kiosk-body {
    height: calc(100vh - var(--topbar-h) - var(--stepper-h) - 100px);
    /* 푸터 높이 제외 */
    overflow-y: auto;
    padding: var(--gap);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.kiosk-body::-webkit-scrollbar {
    width: 6px;
}

.kiosk-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

/* ============================================
   Bottom Nav
   ============================================ */
.kiosk-nav {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gap);
    background: var(--kiosk-panel-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--kiosk-panel-border);
    z-index: 90;
}

/* ============================================
   Step Header
   ============================================ */
.kiosk-step {
    max-width: 960px;
    margin: 0 auto;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--gap);
}

.step-header__icon {
    font-size: 1.6rem;
}

.step-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
}

/* ============================================
   Glass Card (PrimeVue Card override / custom)
   ============================================ */
.glass-card {
    background: var(--kiosk-surface) !important;
    border: 1px solid var(--kiosk-border) !important;
    border-radius: var(--radius) !important;
    padding: 16px !important;
    margin-bottom: var(--gap);
}

.glass-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--kiosk-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================
   Fields
   ============================================ */
.field-group {
    margin-bottom: 12px;
}

.field-label {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-bottom: 6px;
    display: block;
}

.field-touchable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--kiosk-surface);
    border: 1px solid var(--kiosk-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.92rem;
}

.field-touchable:hover {
    border-color: var(--p-primary-color, #4f8cff);
    background: rgba(79, 140, 255, 0.08);
}

.field-touchable i {
    color: var(--kiosk-muted);
    font-size: 0.85rem;
}

.field-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.field-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ============================================
   Category Grid (1-Depth, 3×3)
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: var(--gap);
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--kiosk-surface);
    border: 1px solid var(--kiosk-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.category-card:hover {
    border-color: var(--cat-color, #4f8cff);
    background: var(--kiosk-hover);
    transform: translateY(-2px);
}

.category-card.has-selected {
    border-color: var(--cat-color, #4f8cff);
    box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.2), inset 0 0 20px rgba(79, 140, 255, 0.06);
}

.category-card__icon {
    font-size: 1.6rem;
    color: var(--cat-color, #4f8cff);
}

.category-card__label {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.category-card__count {
    font-size: 0.7rem;
    color: #6b7280;
}

.category-card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
}

/* ============================================
   Product Modal List & Selected Tags
   ============================================ */
.product-modal-list {
    max-height: 400px;
    overflow-y: auto;
}

.product-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.product-modal-item:hover {
    background: var(--kiosk-hover);
}

.product-modal-item.selected {
    background: rgba(79, 140, 255, 0.1);
}

.product-modal-item__left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.product-modal-item__right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.product-modal-item__info {
    flex: 1;
}

.product-modal-item__name {
    font-weight: 500;
    font-size: 0.92rem;
}

.product-modal-item__meta {
    font-size: 0.75rem;
    color: var(--kiosk-muted);
}

.selected-products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================
   Modal List (reusable)
   ============================================ */
.modal-list {
    max-height: 360px;
    overflow-y: auto;
}

.modal-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-list__item:hover {
    background: var(--kiosk-hover);
}

.modal-list__item.selected {
    background: rgba(79, 140, 255, 0.1);
    color: var(--p-primary-color, #4f8cff);
}

.modal-list__item-left {
    flex: 1;
    min-width: 0;
}

.modal-list__item-left span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-list__item-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.modal-list__empty {
    text-align: center;
    padding: 24px;
    color: var(--kiosk-muted);
    font-size: 0.85rem;
}

/* ============================================
   Qty Picker (InputNumber horizontal)
   ============================================ */
.qty-picker .p-inputnumber-input {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    width: 100px;
}

/* 소형 수량 피커 (제품 모달 내) */
.qty-picker-sm {
    max-width: 110px;
}

.qty-picker-sm .p-inputnumber-input {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    width: 40px;
    padding: 4px 2px;
}

/* ============================================
   Stats Grid (Step 2)
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: var(--gap);
}

.stat-card {
    padding: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
}

.stat-card__value {
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-card__label {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 4px;
}

.stat-card--pass .stat-card__value {
    color: #22c55e;
}

.stat-card--fail .stat-card__value {
    color: #ef4444;
}

.stat-card--warn .stat-card__value {
    color: #f59e0b;
}

/* ============================================
   Inspection Section
   ============================================ */
.inspection-section {
    margin-bottom: var(--gap);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    overflow: hidden;
}

.inspection-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inspection-section__header h3 {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   Pass/Fail Tiles
   ============================================ */
.pf-tile {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s;
}

.pf-tile:last-child {
    border-bottom: none;
}

.pf-tile--pass {
    background: rgba(34, 197, 94, 0.06);
    border-left: 3px solid #22c55e;
}

.pf-tile--fail {
    background: rgba(239, 68, 68, 0.06);
    border-left: 3px solid #ef4444;
}

.pf-tile__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.pf-tile__name {
    font-weight: 500;
    font-size: 0.92rem;
}

.pf-tile__method {
    font-size: 0.72rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
}

.pf-tile__standard {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-bottom: 8px;
}

.pf-tile__input-row {
    margin-bottom: 8px;
}

.pf-tile__buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.pf-tile__remark {
    margin-top: 8px;
}

.pf-tile__attachment {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* ============================================
   Photo Grid (Step 3)
   ============================================ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.photo-card {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
}

.photo-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.photo-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.photo-card__label {
    font-size: 0.8rem;
    font-weight: 500;
}

.photo-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Summary (Step 4)
   ============================================ */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-section {
    margin-bottom: 12px;
}

.summary-section__name {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.overall-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
}

.overall-result--pass {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

.overall-result--fail {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.overall-result__text {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ============================================
   Signature Area
   ============================================ */
.signature-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    min-height: 160px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: #6b7280;
    font-size: 0.85rem;
}

/* ============================================
   Toast
   ============================================ */
.kiosk-toast {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
    transform: translateX(calc(100% + 40px));
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    max-width: 360px;
    pointer-events: none;
}

.kiosk-toast.show {
    transform: translateX(0);
}

.kiosk-toast--error {
    background: rgba(239, 68, 68, 0.9);
}

.kiosk-toast--success {
    background: rgba(34, 197, 94, 0.9);
}

/* ============================================
   Loader
   ============================================ */
.kiosk-loader {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.kiosk-loader.show {
    opacity: 1;
    pointer-events: auto;
}

.kiosk-loader__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--p-primary-color, #4f8cff);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.kiosk-loader__msg {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* ============================================
   Empty State
   ============================================ */
.empty-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    color: #6b7280;
    font-size: 0.9rem;
}

/* ============================================
   PrimeVue Overrides (Dark fine-tuning)
   ============================================ */

/* Dialog — glassmorphism */
.p-dialog {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius) !important;
}

/* Chip — selected products */
.p-chip {
    font-size: 0.82rem;
}

/* InputText, Textarea — darker bg */
.p-inputtext,
.p-textarea {
    font-size: 0.88rem;
}

/* =========================================
   Phase C-7: 슬롯머신 UI (Product Selection)
   ========================================= */
.slot-machine-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.slot-zone {
    background: var(--kiosk-card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--kiosk-border);
    transition: all 0.3s ease;
}

/* Zone Labels */
.zone-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--kiosk-text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.zone-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 18px;
    background: var(--kiosk-primary);
    margin-right: 10px;
    border-radius: 3px;
}

/* Zone Layouts */
.zone-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

/* Slot Card Styling */
.slot-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .slot-card {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.slot-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .slot-card:hover {
    background: #e9ecef;
}

.slot-card i {
    font-size: 2.5rem;
    color: var(--kiosk-text-muted);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.slot-card span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--kiosk-text);
}

/* Active Selection State */
.slot-card.has-selection {
    border-color: var(--kiosk-primary);
    background: rgba(16, 185, 129, 0.1);
    /* Slight green tint */
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .slot-card.has-selection {
    background: #ecfdf5;
}

.slot-card.has-selection i {
    color: var(--kiosk-primary);
    transform: scale(1.1);
}

.slot-card.has-selection span {
    color: var(--kiosk-primary);
}

/* Selection Badge */
.selection-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--kiosk-primary);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Specific Zone Customization */
.zone-core .slot-card {
    padding: 3rem 1.5rem;
    /* Larger cards for Core */
}

.zone-core .slot-card i {
    font-size: 3.5rem;
}

.zone-core .slot-card span {
    font-size: 1.3rem;
}

.zones-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .zones-row {
        grid-template-columns: 1fr;
    }
}

/* Selected Summary Bar */
.selected-summary-bar {
    margin-top: 1rem;
    background: var(--kiosk-card-bg);
    border-top: 1px solid var(--kiosk-border);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideUp 0.3s ease-out;
}

.summary-label {
    font-weight: bold;
    color: var(--kiosk-text-muted);
    white-space: nowrap;
}

.summary-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.qty-badge {
    font-weight: bold;
    color: var(--kiosk-primary);
    margin-left: 4px;
}

/* Modal Product Grid (Reuse) */
.product-grid {
    display: grid;
    gap: 0.8rem;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 5px;
}

.product-modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--kiosk-border);
    border-radius: 8px;
    background: var(--kiosk-bg);
    cursor: pointer;
    transition: all 0.2s;
}

.product-modal-item:hover {
    border-color: var(--kiosk-text-muted);
}

.product-modal-item.selected {
    border-color: var(--kiosk-primary);
    background: rgba(16, 185, 129, 0.05);
}

.product-info-col {
    flex: 1;
}

.product-model {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.product-specs {
    font-size: 0.85rem;
    color: var(--kiosk-text-muted);
}

.product-action-col {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-picker-sm .p-inputnumber-input {
    width: 3rem;
    text-align: center;
    padding: 0.2rem;
}

.checkbox-col i {
    font-size: 1.5rem;
}

/* Animation */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   Responsive (Tablet)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --sidebar-w: 0px;
    }

    .kiosk-sidebar {
        display: none;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .field-row-3 {
        grid-template-columns: 1fr;
    }

    .field-row-2 {
        grid-template-columns: 1fr;
    }
}

/* === Light mode specific overrides === */
[data-theme="light"] .kiosk-topbar__brand {
    color: #1e293b;
}

[data-theme="light"] .kiosk-stepper__dot {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    color: #64748b;
}

[data-theme="light"] .kiosk-stepper__label {
    color: #64748b;
}

[data-theme="light"] .kiosk-sidebar__item {
    color: #64748b;
}

[data-theme="light"] .kiosk-sidebar__item:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1e293b;
}

[data-theme="light"] .kiosk-loader {
    background: rgba(244, 246, 249, 0.85);
}

[data-theme="light"] .kiosk-toast--success {
    background: rgba(34, 197, 94, 0.95);
}

[data-theme="light"] .kiosk-toast--error {
    background: rgba(239, 68, 68, 0.95);
}

/* ============================================
   Missing Components (Added for Fix)
   ============================================ */
.select-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--kiosk-surface);
    border: 1px solid var(--kiosk-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 50px;
    user-select: none;
}

.select-box:hover {
    border-color: var(--p-primary-color, #4f8cff);
    background: var(--kiosk-hover);
}

.search-bar {
    position: relative;
    margin-bottom: 16px;
}

.search-bar i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--kiosk-muted);
    font-size: 1.1rem;
}

.search-bar input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: var(--kiosk-bg);
    border: 1px solid var(--kiosk-border);
    border-radius: 8px;
    color: var(--kiosk-text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    border-color: var(--p-primary-color, #4f8cff);
}

.project-badge {
    background: rgba(79, 140, 255, 0.15);
    color: #4f8cff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.user-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.product-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Fix for p-inputtext in dark mode override */
.p-inputtext {
    background: var(--kiosk-surface) !important;
    border-color: var(--kiosk-border) !important;
    color: var(--kiosk-text) !important;
}

.p-inputtext:enabled:focus {
    border-color: var(--p-primary-color, #4f8cff) !important;
}

/* Step Layout Fix */
.step-container {
    max-width: calc(100% - 60px);
    margin: 0 auto;
}

.glass-card {
    padding: 24px !important;
}

/* Footer Fix: Full Width & No Padding */
.kiosk-footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-w);
    right: 0;
    height: 90px;
    background: var(--kiosk-panel-bg);
    border-top: 2px solid var(--kiosk-panel-border);
    display: flex;
    align-items: stretch;
    padding: 0 !important;
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.kiosk-footer-btn {
    flex: 1;
    height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    border: none !important;
    transition: all 0.2s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.p-button {
    white-space: nowrap;
    flex-shrink: 0;
}

.p-button-primary {
    background: var(--p-primary-color) !important;
    color: #fff !important;
}

.p-button-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--kiosk-muted) !important;
}

.p-button-success {
    background: #22c55e !important;
    color: #fff !important;
}

.kiosk-footer-btn:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Select Box & Input Unification */
.select-box,
.p-inputtext {
    height: 56px !important;
    width: 100% !important;
    /* 레이아웃 핵심: 가득 채우기 */
    display: flex;
    align-items: center;
    font-size: 1.1rem !important;
    border-radius: 10px !important;
    padding: 0 18px !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--kiosk-border);
    box-sizing: border-box;
}

.select-box:hover {
    border-color: var(--p-primary-color);
    background: rgba(255, 255, 255, 0.06);
}

/* Red Error State */
.border-red-500,
.p-invalid {
    border: 2px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

.text-red-500 {
    color: #ef4444 !important;
}

/* Modal Styling */
.modal-list__item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--kiosk-border);
    margin-bottom: 10px !important;
    padding: 18px 24px !important;
    border-radius: 14px !important;
    transition: all 0.2s ease;
}

.modal-list__item:hover {
    border-color: var(--p-primary-color);
    background: rgba(79, 140, 255, 0.05);
}

.modal-list__item.selected {
    border-color: var(--p-primary-color) !important;
    background: rgba(79, 140, 255, 0.12) !important;
    box-shadow: 0 0 0 2px var(--p-primary-color) !important;
}

/* Product Model Code Styling */
.product-model-code {
    font-size: 0.85rem;
    color: #94a3b8 !important;
    /* Muted Blue-Gray */
    font-weight: 500;
}

/* Address Truncation */
.truncate-addr {
    display: inline-block;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Basic Zone Selection (Simplified) */
.basic-selection-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 10px 0;
}

.basic-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--kiosk-border);
    border-radius: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.basic-item-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.basic-item-card.selected {
    border-color: var(--p-primary-color);
    background: rgba(79, 140, 255, 0.08);
}

.qty-picker-lg .p-inputnumber-input {
    text-align: center;
    font-size: 1.5rem !important;
    font-weight: 700;
    height: 56px !important;
    width: 80px !important;
}

/* Fix: Global Field Group Spacing (그룹 간 여백 확보) */
.field,
.p-field {
    margin-bottom: 3rem !important;
    /* 그룹 사이 간격을 넓힘 */
}

/* Fix: Label Spacing (라벨과 필드 사이 적절한 여백) */
.field label,
.p-field label,
label.block {
    margin-bottom: 0.75rem !important;
    /* 다시 적절한 값으로 복구 */
    display: block !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
}

/* Fix: Completely Hide Inline DatePicker Input & Panels */
.hidden-datepicker .p-inputtext,
.p-datepicker-touch-ui .p-inputtext,
.p-datepicker-touch-ui>.p-datepicker-header,
.p-datepicker-touch-ui>table {
    display: none !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Ensure Modal Style is preserved when triggered */
.p-datepicker-touch-ui.p-datepicker {
    display: flex !important;
    /* 모달 자체는 표시 */
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    min-width: 360px !important;
    z-index: 10005 !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    background: #1e1e2d !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8) !important;
}

/* Fix: Quantity Picker Layout - Separate Checkbox & Input */
.product-action-col {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    /* 간격 확실히 분리 */
    justify-content: flex-end !important;
}

.qty-control {
    margin-right: 12px !important;
    /* 체크박스와 간격 추가 */
    z-index: 10;
    position: relative;
    display: block !important;
    /* Ensure it's visible */
}

/* InputNumber Styling */
.qty-control .p-inputnumber-input,
.qty-control-large .p-inputnumber-input {
    color: #ffffff !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-weight: 700 !important;
    width: 60px !important;
    height: 40px !important;
    padding: 0 !important;
}

/* Fix: Checkbox Size & Location */
.checkbox-col i {
    font-size: 2.2rem !important;
    /* 아이콘 크기 확대 */
    cursor: pointer;
    z-index: 10;
    position: relative;
}

/* DatePicker Mask */
.p-datepicker-mask {
    z-index: 10000 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(8px);
}

/* Product Thumbnail Image */
.product-thumb-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s;
}

.slot-card:hover .product-thumb-img {
    transform: scale(1.1);
}

/*랭기지TRP PRO*/
.flex-column {
    flex-direction: column !important;
}

.flex-1 {
    flex: 1 !important;
}

.h-full {
    height: 100% !important;
}

.w-20rem {
    width: 20rem !important;
}

.shrink-0 {
    flex-shrink: 0 !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.overflow-y-auto {
    overflow-y: auto !important;
}

.border-right-1 {
    border-right: 1px solid var(--kiosk-border) !important;
}

.border-bottom-1 {
    border-bottom: 1px solid var(--kiosk-border) !important;
}

.border-left-1 {
    border-left: 1px solid var(--kiosk-border) !important;
}

.surface-ground {
    background-color: var(--kiosk-bg) !important;
}

.surface-card {
    background-color: var(--kiosk-surface) !important;
}

.surface-hover:hover {
    background-color: var(--kiosk-hover) !important;
}

.surface-highlight {
    background-color: rgba(79, 140, 255, 0.15) !important;
    border-left: 3px solid var(--p-primary-color, #4f8cff) !important;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.text-900 {
    color: var(--kiosk-text) !important;
}

.text-600 {
    color: var(--kiosk-muted) !important;
}

.border-circle {
    border-radius: 50% !important;
}

.animation-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* ============================================
   Language Switcher & Header Extras
   ============================================ */
.language-switcher-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher-wrapper img {
    height: 18px;
    width: auto;
    border-radius: 2px;
}

.language-switcher-wrapper a {
    color: var(--kiosk-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.language-switcher-wrapper a:hover {
    color: #fff;
}

/* ── Semantic Layout Colors (Replacing Tailwind Arbitrary) ── */
.bg-kiosk-page {
    background-color: var(--kiosk-page-bg, #05060a) !important;
}

.bg-kiosk-sidebar {
    background-color: var(--kiosk-sidebar-bg, rgba(11, 13, 20, 0.9)) !important;
}

.bg-kiosk-header {
    background-color: var(--kiosk-header-bg, rgba(11, 13, 20, 0.95)) !important;
}

.bg-kiosk-panel-active {
    background-color: var(--kiosk-panel-active, #131722) !important;
}

/* Primary Variations */
.bg-primary {
    background-color: #00f0a0 !important;
}

.bg-primary-5 {
    background-color: rgba(0, 240, 160, 0.05) !important;
}

.bg-primary-10 {
    background-color: rgba(0, 240, 160, 0.1) !important;
}

.bg-primary-20 {
    background-color: rgba(0, 240, 160, 0.2) !important;
}

.bg-primary-50 {
    background-color: rgba(0, 240, 160, 0.5) !important;
}

.text-primary {
    color: #00f0a0 !important;
}

.border-primary {
    border-color: #00f0a0 !important;
}

.border-primary-50 {
    border-color: rgba(0, 240, 160, 0.5) !important;
}

.hover\:bg-primary-90:hover {
    background-color: rgba(0, 240, 160, 0.9) !important;
}

.hover\:text-primary:hover {
    color: #00f0a0 !important;
}

/* Status Colors */
.bg-green-500\/10 {
    background-color: rgba(34, 197, 94, 0.1) !important;
}

.bg-green-500\/20 {
    background-color: rgba(34, 197, 94, 0.2) !important;
}

.hover\:bg-green-500\/20:hover {
    background-color: rgba(34, 197, 94, 0.2) !important;
}

.border-green-500 {
    border-color: #22c55e !important;
}

.border-green-500\/50 {
    border-color: rgba(34, 197, 94, 0.5) !important;
}

.text-green-500 {
    color: #22c55e !important;
}

.text-green-400 {
    color: #4ade80 !important;
}

.hover\:text-green-300:hover {
    color: #86efac !important;
}

.bg-red-500\/10 {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.bg-red-500\/20 {
    background-color: rgba(239, 68, 68, 0.2) !important;
}

.hover\:bg-red-500\/20:hover {
    background-color: rgba(239, 68, 68, 0.2) !important;
}

.border-red-500 {
    border-color: #ef4444 !important;
}

.border-red-500\/30 {
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.border-red-500\/50 {
    border-color: rgba(239, 68, 68, 0.5) !important;
}

.text-red-500 {
    color: #ef4444 !important;
}

.text-red-400 {
    color: #f87171 !important;
}

.hover\:text-red-300:hover {
    color: #fca5a5 !important;
}

/* Shadows */
.shadow-inner-glow {
    box-shadow: inset 0 0 10px rgba(0, 240, 160, 0.05) !important;
}

.shadow-neon {
    box-shadow: 0 0 20px rgba(0, 240, 160, 0.3) !important;
}

.shadow-pulse {
    box-shadow: 0 0 8px rgba(0, 240, 160, 1) !important;
}

/* Gradients/Patterns */
.bg-grid-pattern {
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bg-grid-pattern-green {
    background-image: linear-gradient(rgba(0, 240, 160, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 160, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

/* ── Progress Bar Enhancement ── */
.progress-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f0a0, #00d080);
    transition: width 0.3s ease-out;
    box-shadow: 0 0 15px rgba(0, 240, 160, 0.4);
}

.upload-modal-box {
    background: rgba(20, 20, 20, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    padding: 2.5rem !important;
    border-radius: 2rem !important;
    width: 400px !important;
    max-width: 90vw !important;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.selection\:bg-primary::selection {
    background-color: #00f0a0;
    color: #000;
}

.selection\:text-black::selection {
    color: #000;
}

.mix-blend-screen {
    mix-blend-mode: screen;
}

.invert {
    filter: invert(1);
}

.blur-sm {
    filter: blur(4px);
}

.bg-gradient-avatar {
    background-image: linear-gradient(to bottom right, #00f0a0, #06b6d4) !important;
}

/* ── Missing Utilities ── */
.w-80 {
    width: 20rem !important;
}

/* 320px */
.min-h-400 {
    min-height: 400px !important;
}

.max-h-250 {
    max-height: 250px !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

.text-xxs {
    font-size: 0.625rem !important;
}

/* 10px */
.text-xs-plus {
    font-size: 0.6875rem !important;
}

/* 11px - approx */

/* Fix for large image issue */
.img-diagram {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 250px;
}

/* More Layout Utilities */
.pl-4 {
    padding-left: 1rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.ml-auto {
    margin-left: auto !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.md\:block {
    display: block !important;
}

/* Simplified media query handling, or just make it block for now if valid */
.md\:flex {
    display: flex !important;
}

/* Media Queries for Responsive classes */
@media (min-width: 768px) {
    .md\:block {
        display: block !important;
    }

    .md\:hidden {
        display: none !important;
    }

    .md\:flex {
        display: flex !important;
    }

    .md\:pl-80 {
        padding-left: 20rem !important;
    }

    /* Sidebar offset */
    .md\:p-10 {
        padding: 2.5rem !important;
    }

    .md\:text-4xl {
        font-size: 2.25rem !important;
    }

    .lg\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    }

    .lg\:col-span-7 {
        grid-column: span 7 / span 7 !important;
    }

    .lg\:col-span-5 {
        grid-column: span 5 / span 5 !important;
    }
}

/* ── TailWind Config Replacements ── */
.shadow-glass {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}

.border-glass {
    border-color: var(--kiosk-glass-border, rgba(255, 255, 255, 0.05)) !important;
}

.border-glass-border {
    border-color: var(--kiosk-glass-border, rgba(255, 255, 255, 0.05)) !important;
}

.text-accent-red {
    color: #ff4d4d !important;
}

/* ── Upload Progress Animations ── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes pulse-primary {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 240, 160, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 240, 160, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 240, 160, 0);
    }
}

.shadow-pulse {
    animation: pulse-primary 2s infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}