/* ═══════════════════════════════════════════════════════════
   Evidence pomůcek – Mobile-first PWA Design
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Variables ─────────────────────────────────── */
:root {
    --bg: #0f172a; --bg-card: #1e293b; --bg-card-hover: #334155;
    --text: #e2e8f0; --text-muted: #94a3b8; --text-heading: #f1f5f9;
    --primary: #3b82f6; --primary-hover: #2563eb; --primary-glow: rgba(59,130,246,.25);
    --success: #10b981; --success-bg: rgba(16,185,129,.15);
    --warning: #f59e0b; --warning-bg: rgba(245,158,11,.15);
    --error: #ef4444; --error-bg: rgba(239,68,68,.15);
    --border: #334155; --radius: 16px; --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0,0,0,.3);
    --nav-h: 64px; --header-h: 56px;
    --font: 'Inter', -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100dvh; line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: .85em; }
img { max-width: 100%; }

/* ── Header ────────────────────────────────────────────── */
.app-header { position: sticky; top: 0; z-index: 100; background: rgba(15,23,42,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; height: var(--header-h); max-width: 640px; margin: 0 auto; }
.header-logo { display: flex; align-items: center; gap: .5rem; color: var(--text-heading); font-weight: 700; font-size: 1.1rem; }
.header-logo .material-icons-round { color: var(--primary); font-size: 1.5rem; }
.header-user { display: flex; align-items: center; gap: .5rem; }
.user-name { font-size: .8rem; color: var(--text-muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--text-muted); transition: .2s; }
.btn-icon:hover { background: var(--bg-card-hover); color: var(--text); }

/* ── Bottom Nav ────────────────────────────────────────── */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: rgba(15,23,42,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding: .4rem 0 max(.4rem, env(safe-area-inset-bottom)); transition: transform .3s; }
.bottom-nav.hidden { transform: translateY(100%); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .35rem .5rem; color: var(--text-muted); font-size: .65rem; font-weight: 500; border-radius: 12px; transition: .2s; min-width: 56px; }
.nav-item .material-icons-round { font-size: 1.4rem; }
.nav-item.active { color: var(--primary); }
.nav-item:active { transform: scale(.92); }

/* ── Main ──────────────────────────────────────────────── */
.app-main { max-width: 640px; margin: 0 auto; padding: 1rem 1rem calc(var(--nav-h) + 1.5rem); min-height: calc(100dvh - var(--header-h)); }

/* ── Flash Messages ────────────────────────────────────── */
.flash-container { max-width: 640px; margin: 0 auto; padding: 0 1rem; }
.flash { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-radius: var(--radius-sm); margin-top: .5rem; font-size: .875rem; font-weight: 500; transition: .3s; }
.flash--success { background: var(--success-bg); color: var(--success); }
.flash--error { background: var(--error-bg); color: var(--error); }
.flash--info { background: var(--primary-glow); color: var(--primary); }

/* ── Buttons ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.25rem; border-radius: var(--radius-sm); font-family: var(--font); font-size: .9rem; font-weight: 600; border: none; cursor: pointer; transition: .2s; text-align: center; }
.btn:active { transform: scale(.96); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); box-shadow: 0 0 20px var(--primary-glow); }
.btn--success { background: var(--success); color: #fff; }
.btn--success:hover { background: #059669; }
.btn--warning { background: var(--warning); color: #1a1a1a; }
.btn--outline { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--large { padding: 1rem 2rem; font-size: 1.1rem; border-radius: var(--radius); width: 100%; }
.btn--block { width: 100%; }
.btn--sm { padding: .4rem .75rem; font-size: .8rem; }
.btn--disabled { background: var(--bg-card-hover); color: var(--text-muted); cursor: not-allowed; opacity: .6; }
.btn-icon--danger:hover { color: var(--error); }

/* ── Dashboard ─────────────────────────────────────────── */
.dashboard { display: flex; flex-direction: column; gap: 1rem; }
.welcome-card { padding: 1.5rem; background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%); border-radius: var(--radius); }
.welcome-title { font-size: 1.5rem; font-weight: 800; color: var(--text-heading); display: flex; align-items: center; gap: .5rem; }
.welcome-sub { color: var(--text-muted); margin-top: .25rem; }
.wave { display: inline-block; animation: wave 2s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%,100% { transform: rotate(0); } 10%,30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }

.alert-card { display: flex; align-items: center; gap: .75rem; padding: 1rem; border-radius: var(--radius-sm); }
.alert-card--warning { background: var(--warning-bg); color: var(--warning); }
.alert-card--success { background: var(--success-bg); color: var(--success); }
.alert-card p { font-size: .8rem; margin-top: .15rem; }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.action-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius); transition: .2s; }
.action-card:active { transform: scale(.96); }
.action-card--primary { background: linear-gradient(135deg, var(--primary), #6366f1); color: #fff; }
.action-card--secondary { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
.action-icon { font-size: 2.5rem !important; margin-bottom: .5rem; }
.action-title { font-weight: 700; font-size: 1rem; }
.action-desc { font-size: .75rem; opacity: .8; margin-top: .2rem; }

/* ── Sections & Loan Cards ─────────────────────────────── */
.section { margin-top: .5rem; }
.section-title { font-size: .9rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .75rem; }
.loan-list { display: flex; flex-direction: column; gap: .5rem; }
.loan-card { display: flex; align-items: center; gap: .75rem; padding: .85rem; background: var(--bg-card); border-radius: var(--radius-sm); transition: .2s; color: var(--text); }
.loan-card:hover { background: var(--bg-card-hover); }
.loan-card-color { width: 4px; height: 36px; border-radius: 2px; flex-shrink: 0; }
.loan-card-info { flex: 1; min-width: 0; }
.loan-card-name { display: block; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loan-card-meta { font-size: .75rem; color: var(--text-muted); }
.loan-card-arrow { color: var(--text-muted); font-size: 1.2rem !important; }
.loan-card-status { text-align: right; flex-shrink: 0; }
.loan-card-date { font-size: .7rem; color: var(--text-muted); display: block; }

/* ── Badges ────────────────────────────────────────────── */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 20px; font-size: .7rem; font-weight: 600; }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--primary { background: var(--primary-glow); color: var(--primary); }
.badge--error { background: var(--error-bg); color: var(--error); }
.badge--outline { border: 1px solid var(--border); color: var(--text-muted); }

/* ── Sign-in Page ──────────────────────────────────────── */
.sign-body { display: flex; align-items: center; justify-content: center; min-height: 100dvh; padding: 1rem; }
.sign-container { text-align: center; width: 100%; max-width: 400px; }
.sign-card { background: var(--bg-card); border-radius: var(--radius); padding: 2.5rem 2rem; border: 1px solid var(--border); }
.sign-logo { margin-bottom: 1.5rem; }
.sign-logo-icon { font-size: 3.5rem !important; color: var(--primary); background: var(--primary-glow); border-radius: 50%; padding: 1rem; }
.sign-title { font-size: 1.5rem; font-weight: 800; color: var(--text-heading); }
.sign-subtitle { color: var(--text-muted); margin: .5rem 0 1.5rem; font-size: .9rem; }
.btn-microsoft { display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; padding: .9rem; background: #fff; color: #3c4043; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; transition: .2s; border: 1px solid #dadce0; }
.btn-microsoft:hover { box-shadow: 0 2px 12px rgba(0,0,0,.15); transform: translateY(-1px); }
.sign-footer { margin-top: 2rem; font-size: .75rem; color: var(--text-muted); }

/* ── Scan Page ─────────────────────────────────────────── */
.scan-page { display: flex; flex-direction: column; gap: 1rem; }
.scan-header { text-align: center; }
.page-title { font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; color: var(--text-heading); }
.page-desc { font-size: .85rem; color: var(--text-muted); margin-top: .25rem; }
.scan-done-button { min-height: 52px; }
.scanner-container { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 1; width: 100%; max-width: 400px; margin: 0 auto; }
#qr-reader { width: 100% !important; }
#qr-reader video { border-radius: var(--radius) !important; }
.scanner-result { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2rem; border-radius: var(--radius-sm); transition: background 0.3s ease; }
.scanner-result--success { background: var(--success-bg); }
.scanner-result--success .scanner-result-icon { color: var(--success); }
.scanner-result--error { background: var(--error-bg); }
.scanner-result--error .scanner-result-icon { color: var(--error); }
.scanner-result-icon { font-size: 3rem !important; margin-bottom: .5rem; }
.scanner-error { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2rem; background: var(--bg-card); border-radius: var(--radius-sm); color: var(--text-muted); }
.scanner-error .material-icons-round { font-size: 3rem !important; margin-bottom: .5rem; }
.scan-manual { text-align: center; padding: 1rem; }
.scan-manual p { font-size: .85rem; color: var(--text-muted); margin-bottom: .75rem; }
.manual-code-form { display: flex; gap: .5rem; }
.input-field { flex: 1; padding: .7rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: .9rem; outline: none; transition: .2s; }
.input-field:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

/* ── Item Detail ───────────────────────────────────────── */
.item-detail { display: flex; flex-direction: column; gap: 1rem; }
.item-detail-header { background: var(--bg-card); padding: 1.25rem; border-radius: var(--radius); }
.item-category-badge { display: inline-block; padding: .25rem .75rem; border-radius: 20px; font-size: .75rem; font-weight: 600; margin-bottom: .5rem; }
.item-name { font-size: 1.4rem; font-weight: 800; color: var(--text-heading); }
.item-code { display: flex; align-items: center; gap: .35rem; color: var(--text-muted); font-size: .85rem; margin-top: .35rem; }
.status-card { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); }
.status-card--available { background: var(--success-bg); }
.status-card--borrowed { background: var(--warning-bg); }
.status-icon { font-size: 2rem !important; }
.status-card--available .status-icon { color: var(--success); }
.status-card--borrowed .status-icon { color: var(--warning); }
.status-label { font-weight: 700; font-size: 1rem; display: block; }
.status-desc { font-size: .8rem; color: var(--text-muted); }
.item-actions { margin: .5rem 0; }
.item-section { background: var(--bg-card); padding: 1.25rem; border-radius: var(--radius-sm); }
.item-description { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.info-grid { display: grid; gap: .75rem; }
.info-item { display: flex; justify-content: space-between; }
.info-label { font-size: .8rem; color: var(--text-muted); }
.info-value { font-weight: 600; font-size: .9rem; }

/* ── History & Empty State ─────────────────────────────── */
.history-page { display: flex; flex-direction: column; gap: 1rem; }
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-icon { font-size: 4rem !important; color: var(--text-muted); opacity: .4; }
.empty-title { font-size: 1.1rem; font-weight: 700; margin-top: 1rem; }
.empty-desc { font-size: .85rem; color: var(--text-muted); }

/* ── Admin ─────────────────────────────────────────────── */
.admin-page { display: flex; flex-direction: column; gap: 1rem; }
.page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.admin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.stat-card { background: var(--bg-card); padding: 1.25rem; border-radius: var(--radius-sm); text-align: center; }
.stat-value { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card--warning .stat-value { color: var(--warning); }
.stat-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; }

.admin-menu { display: flex; flex-direction: column; gap: .5rem; }
.admin-menu-item { display: flex; align-items: center; gap: .75rem; padding: 1rem; background: var(--bg-card); border-radius: var(--radius-sm); color: var(--text); transition: .2s; }
.admin-menu-item:hover { background: var(--bg-card-hover); }
.admin-menu-item > .material-icons-round:first-child { color: var(--primary); font-size: 1.5rem !important; }
.admin-menu-item > .material-icons-round:last-child { margin-left: auto; color: var(--text-muted); }
.admin-menu-title { font-weight: 600; display: block; }
.admin-menu-desc { font-size: .75rem; color: var(--text-muted); }

/* ── Tables ────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.data-table th { text-align: left; padding: .6rem .75rem; background: var(--bg-card); color: var(--text-muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: .6rem .75rem; border-top: 1px solid var(--border); white-space: nowrap; }
.data-table tr:hover td { background: var(--bg-card); }
.actions-cell { display: flex; gap: .25rem; }
.category-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: .35rem; }
.category-dot--large { width: 16px; height: 16px; }

/* ── Forms ─────────────────────────────────────────────── */
.form-card { background: var(--bg-card); padding: 1.25rem; border-radius: var(--radius-sm); }
.form-card label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-muted); margin-bottom: .35rem; margin-top: .75rem; }
.form-card input[type="text"], .form-card input[type="password"], .form-card textarea, .form-card select {
    width: 100%; padding: .65rem .85rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: .9rem; outline: none; transition: .2s;
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-card textarea { min-height: 80px; resize: vertical; }
.form-card input[type="submit"] { margin-top: 1rem; width: 100%; padding: .75rem; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-size: .95rem; font-weight: 600; cursor: pointer; transition: .2s; }
.form-card input[type="submit"]:hover { background: var(--primary-hover); }

/* ── QR Grid ───────────────────────────────────────────── */
.qr-grid { display: flex; flex-direction: column; gap: .5rem; }
.qr-card { display: flex; align-items: center; justify-content: space-between; padding: .85rem; background: var(--bg-card); border-radius: var(--radius-sm); }
.qr-card-info { display: flex; align-items: center; gap: .5rem; }
.qr-card-code { font-size: .75rem; color: var(--text-muted); }
.qr-bulk-form { display: flex; flex-direction: column; gap: 1rem; }
.qr-bulk-controls { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.qr-size-control { display: flex; align-items: center; gap: .5rem; color: var(--text-muted); font-size: .85rem; font-weight: 600; }
.qr-size-control .input-field { width: 90px; flex: 0 0 auto; }
.qr-bulk-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.qr-item-check { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; }
.qr-print-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.qr-label-sheet { display: flex; flex-wrap: wrap; gap: .18cm; align-items: flex-start; align-content: flex-start; }
.qr-label { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .08cm; padding: .1cm; background: #fff; color: #111827; border: 1px dashed #cbd5e1; break-inside: avoid; page-break-inside: avoid; }
.qr-label-code { object-fit: contain; display: block; }
.qr-label-text { width: 100%; text-align: center; line-height: 1.15; }
.qr-label-text strong { display: block; font-size: 8pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media print {
    @page { margin: 8mm; }
    body { background: #fff; color: #111827; }
    .app-header, .bottom-nav, .flash-container, .qr-print-toolbar, .qr-print-note { display: none !important; }
    .app-main { max-width: none; padding: 0; min-height: auto; }
    .qr-print-page { display: block; }
    .qr-label-sheet { gap: .15cm; }
}

/* ── Inventory ───────────────────────────────────────── */
.inventory-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem; }
.inventory-panel h2 { font-size: 1.1rem; color: var(--text-heading); margin-bottom: .35rem; }
.inventory-start-form { display: flex; gap: .75rem; margin-top: 1rem; align-items: center; flex-wrap: wrap; }
.inventory-start-form .filter-select { flex: 1 1 240px; }
.inventory-list { display: flex; flex-direction: column; gap: .5rem; }
.inventory-row { display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: center; padding: .85rem; background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.inventory-row strong { display: block; color: var(--text-heading); }
.inventory-row span:not(.badge):not(.material-icons-round) { display: block; color: var(--text-muted); font-size: .8rem; }
.inventory-row-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.inventory-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.inventory-message { padding: .85rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.inventory-message--success { background: var(--success-bg); color: var(--success); }
.inventory-message--error { background: var(--error-bg); color: var(--error); }
.inventory-scanner { max-width: 360px; }
.inventory-action-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.inventory-report-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.inventory-report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.inventory-report-summary > div { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .85rem; }
.inventory-report-summary strong { display: block; font-size: .75rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: .2rem; }
.inventory-report-summary span { font-weight: 700; color: var(--text-heading); }
@media (max-width: 640px) {
    .inventory-row { grid-template-columns: 1fr; }
    .inventory-row-actions { justify-content: flex-start; }
    .inventory-report-summary { grid-template-columns: 1fr 1fr; }
}
@media print {
    .inventory-report-toolbar, .app-header, .bottom-nav, .flash-container { display: none !important; }
    .inventory-report-page { color: #111827; }
    .inventory-report-summary > div, .data-table th, .data-table td { color: #111827; background: #fff; }
    .inventory-print-all { page-break-before: always; }
}

/* ── Error Page ────────────────────────────────────────── */
.error-page { text-align: center; padding: 3rem 1rem; }
.error-icon { font-size: 4rem !important; color: var(--warning); }
.error-page h1 { margin: 1rem 0 .5rem; }
.error-page p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── Responsive ────────────────────────────────────────── */
@media (min-width: 768px) {
    .app-main { padding-bottom: 2rem; }
    .bottom-nav { display: none; }
    .header-inner { max-width: 800px; }
    .app-main { max-width: 800px; }
}

/* ── Loans Filter ───────────────────────────────────────── */
.loans-filter {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: flex-end;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1 1 160px;
    min-width: 140px;
}
.filter-label {
    display: flex;
    align-items: center;
    gap: .25rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
}
.filter-label .material-icons-round { font-size: .95rem !important; }
.filter-select,
.filter-input {
    padding: .6rem .85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: .875rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}
.filter-select:focus,
.filter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.filter-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(.7);
    cursor: pointer;
}
.filter-actions {
    display: flex;
    gap: .5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}
.filter-active-info {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .75rem;
    padding: .5rem .75rem;
    background: var(--primary-glow);
    border-radius: var(--radius-sm);
    font-size: .8rem;
    color: var(--primary);
    font-weight: 500;
}
@media (min-width: 768px) {
    .filter-group { flex: 0 1 200px; }
}

/* ── IT Support Widget ────────────────────────────────── */
.it-support-fab {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.it-support-fab .material-icons-round {
    font-size: 28px;
}
.it-support-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.6);
}
.it-support-fab:active {
    transform: scale(0.95);
}

/* Pulsing effect for FAB */
.it-support-fab .fab-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.4;
    z-index: -1;
    animation: fab-pulse 2s infinite;
}
@keyframes fab-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Support Panel Glassmorphism */
.it-support-panel {
    position: fixed;
    bottom: 145px;
    right: 16px;
    width: 360px;
    max-width: calc(100% - 32px);
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    
    /* Animation base */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.it-support-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header style */
.it-support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
}
.it-support-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-heading);
}
.it-support-title .material-icons-round {
    color: var(--primary);
    font-size: 24px;
}

/* Form layout */
.it-support-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.it-support-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Checkboxes customized styling */
.it-support-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.support-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text);
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
    user-select: none;
}
.support-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.04);
}
.support-checkbox-label input[type="checkbox"] {
    display: none;
}
.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.2s;
    background: rgba(15, 23, 42, 0.5);
    margin-top: 2px;
}
.support-checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}
.checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s;
    margin-bottom: 2px;
}
.support-checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}
.checkbox-text {
    flex: 1;
    line-height: 1.3;
}

/* Textarea styling */
.it-support-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.it-support-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.it-support-field textarea {
    width: 100%;
    min-height: 90px;
    padding: 0.65rem 0.85rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    resize: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.it-support-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Desktop styles override */
@media (min-width: 768px) {
    .it-support-fab {
        bottom: 24px;
        right: 24px;
    }
    .it-support-panel {
        bottom: 90px;
        right: 24px;
    }
}

