/* ══════════════════════════════════════════════
   FQM — Design System
   Premium dark-mode UI with glassmorphism
   ══════════════════════════════════════════════ */

/* ── CSS VARIABLES ─────────────────────────── */
:root {
    --primary: #6C63FF;
    --primary-light: #8B83FF;
    --primary-dark: #4F46E5;
    --accent: #F59E0B;
    --accent-light: #FBBF24;

    --bg-deep: #0B0B14;
    --bg-base: #0F0F1A;
    --bg-surface: #1A1A2E;
    --bg-elevated: #252540;
    --bg-card: rgba(30, 30, 55, 0.7);

    --text-primary: #F0F0F5;
    --text-secondary: #A0A0B8;
    --text-muted: #6B6B80;

    --success: #10B981;
    --success-light: #34D399;
    --warning: #F59E0B;
    --danger: #EF4444;
    --danger-light: #F87171;
    --info: #3B82F6;

    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);

    --glass-bg: rgba(20, 20, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent); }

/* ── LAYOUT ────────────────────────────────── */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HEADER ────────────────────────────────── */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-brand img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.header-brand h1 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    gap: 8px;
}

.header-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.header-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
    border-color: var(--border-light);
}

.header-nav a.active {
    color: var(--primary-light);
    background: rgba(108, 99, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.3);
}

/* ── GLASS CARD ────────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 24px;
    transition: all var(--transition-normal);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* ── SECTION ───────────────────────────────── */
.config-section {
    margin-bottom: 28px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 .icon {
    font-size: 1.3rem;
}

.section-body {
    padding: 24px;
}

/* ── FORM ELEMENTS ─────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label .required-star {
    color: var(--danger);
    margin-left: 2px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A0A0B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

/* Color picker */
.color-picker-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker-group input[type="color"] {
    width: 48px;
    height: 40px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: transparent;
    padding: 2px;
}

.color-picker-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-group input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.color-picker-group .color-hex {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ── TOGGLE SWITCH ─────────────────────────── */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input { display: none; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-elevated);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid var(--border-light);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    bottom: 2px;
    left: 2px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
    border-color: var(--primary-light);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: white;
}

/* ── BUTTONS ───────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.45);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #DC2626);
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-ghost:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-sm { padding: 6px 12px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn-xl { padding: 18px 40px; font-size: 1.2rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
}

/* ── BADGE ─────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-waiting { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.badge-called { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-completed { background: rgba(16, 185, 129, 0.15); color: var(--success); }

/* ── FIELD LIST (Admin) ────────────────────── */
.field-list { display: flex; flex-direction: column; gap: 8px; }

.field-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.field-item:hover {
    border-color: var(--border-light);
    background: var(--bg-surface);
}

.field-item .drag-handle {
    color: var(--text-muted);
    cursor: grab;
    font-size: 1.1rem;
    user-select: none;
    flex-shrink: 0;
}

.field-item .drag-handle:active { cursor: grabbing; }

.field-item .field-info {
    flex: 1;
    min-width: 0;
}

.field-item .field-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.field-item .field-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.field-item .field-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.field-item .field-actions label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.field-predefined-badge {
    font-size: 0.65rem;
    background: rgba(108, 99, 255, 0.12);
    color: var(--primary-light);
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── REASON LIST ───────────────────────────── */
.reason-list { display: flex; flex-direction: column; gap: 6px; }

.reason-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.reason-item:hover { border-color: var(--border-light); }

.reason-item .reason-label { font-weight: 500; }

/* ── ADD INLINE FORM ───────────────────────── */
.inline-form {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.inline-form .form-input {
    flex: 1;
}

/* ── STATS BAR ─────────────────────────────── */
.stats-bar {
    display: flex;
    gap: 16px;
}

.stat-card {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card.stat-waiting .stat-value { color: var(--info); }
.stat-card.stat-called .stat-value { color: var(--warning); }
.stat-card.stat-completed .stat-value { color: var(--success); }

/* ── TICKET CARD (Workshop) ────────────────── */
.ticket-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: all var(--transition-normal);
    animation: slideInUp 0.3s ease;
}

.ticket-card:hover {
    border-color: var(--border-light);
}

.ticket-card.ticket-current {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.05);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.ticket-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.ticket-number {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--primary-light);
}

.ticket-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ticket-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.ticket-field {
    display: flex;
    flex-direction: column;
}

.ticket-field-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.ticket-field-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.ticket-reason {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.ticket-reason-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ── ACTION BUTTONS BAR ────────────────────── */
.action-bar {
    display: flex;
    gap: 12px;
    padding: 20px 0;
}

/* ── QUEUE LIST ────────────────────────────── */
.queue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.queue-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.queue-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.queue-empty p {
    font-size: 1rem;
}

/* ── DISPLAY SCREEN (TV) ──────────────────── */
.display-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, var(--bg-deep) 0%, #0D0D24 50%, #12122B 100%);
    overflow: hidden;
}

.display-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.display-header img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.display-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.display-main {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
}

.called-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.called-section h2 {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.big-number {
    font-size: 10rem;
    font-weight: 900;
    font-family: var(--font-mono);
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    margin-bottom: 24px;
}

.big-number.pulse {
    animation: numberPulse 1.5s ease-in-out;
}

.called-info {
    display: flex;
    gap: 32px;
    margin-top: 10px;
}

.called-info-item {
    text-align: center;
}

.called-info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.called-info-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.waiting-section {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid var(--glass-border);
    padding: 30px 24px;
    overflow-y: auto;
}

.waiting-section h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: center;
}

.waiting-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.waiting-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    animation: slideInRight 0.3s ease;
}

.waiting-list-number {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-light);
}

.waiting-list-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.display-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
}

.clock {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.display-stats {
    display: flex;
    gap: 24px;
}

.display-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.display-stat .stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.display-stat .stat-dot.waiting { background: var(--info); }
.display-stat .stat-dot.completed { background: var(--success); }

/* ── KIOSK SCREEN ──────────────────────────── */
.kiosk-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, var(--bg-deep) 0%, #0D0D24 100%);
}

.kiosk-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.kiosk-header img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
}

.kiosk-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.kiosk-header .subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

.kiosk-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
}

.kiosk-form {
    width: 100%;
    max-width: 540px;
}

.kiosk-form .glass-card {
    padding: 32px;
}

/* ── CONFIRMATION OVERLAY ──────────────────── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.overlay.hidden { display: none; }

.confirmation-card {
    text-align: center;
    padding: 48px;
    max-width: 440px;
    width: 90%;
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.confirmation-card h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.confirmation-number {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 16px 0;
    line-height: 1;
}

.confirmation-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.confirmation-countdown {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── WORKSHOP SCREEN ───────────────────────── */
.workshop-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.workshop-main {
    flex: 1;
    padding: 24px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.current-section h2,
.queue-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.no-ticket {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 1rem;
}

/* ── ADMIN PAGE ────────────────────────────── */
.admin-main {
    flex: 1;
    padding: 24px 32px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Logo upload area */
.logo-upload-area {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: var(--bg-base);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.logo-upload-area:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.03);
}

.logo-preview {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-upload-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.logo-upload-text strong {
    color: var(--primary-light);
}

/* ── FORM ROW ──────────────────────────────── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── TOAST NOTIFICATION ────────────────────── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
}

.toast.toast-success { border-left: 3px solid var(--success); }
.toast.toast-error { border-left: 3px solid var(--danger); }
.toast.toast-info { border-left: 3px solid var(--info); }

/* ── DISPLAY FIELDS CHECKBOXES (Admin) ─────── */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checkbox-item:hover {
    border-color: var(--border-light);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ── ANIMATIONS ────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes numberPulse {
    0% { transform: scale(0.6); opacity: 0; }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(108, 99, 255, 0.2); }
    50% { box-shadow: 0 0 40px rgba(108, 99, 255, 0.5); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in { animation: fadeIn 0.3s ease; }
.animate-slide-up { animation: slideInUp 0.3s ease; }
.animate-glow { animation: glowPulse 2s ease-in-out infinite; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
    .display-main {
        grid-template-columns: 1fr;
    }
    .waiting-section {
        border-left: none;
        border-top: 1px solid var(--glass-border);
    }
    .big-number {
        font-size: 6rem;
    }
    .workshop-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 12px;
        padding: 14px 20px;
    }
    .header-nav {
        width: 100%;
        justify-content: center;
    }
    .admin-main {
        padding: 16px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .stats-bar {
        flex-direction: column;
    }
    .ticket-data {
        grid-template-columns: 1fr;
    }
    .big-number {
        font-size: 4.5rem;
    }
    .display-header {
        padding: 20px;
    }
    .display-header h1 {
        font-size: 1.3rem;
    }
}
