﻿/* Modern Clean Dark UI - LSPO Edition */
:root {
  --primary: #e11d48;
  --primary-hover: #f43f5e;
  --primary-light: rgba(225, 29, 72, 0.15);
  --primary-border: #9f1239;
  
  --bg-main: #0a0d14;
  --bg-card: #111726;
  --bg-card-subtle: #172033;
  --bg-input: #1a2338;
  --bg-input-focus: #0e1422;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-label: #cbd5e1;
  --border-color: #26334d;
  --border-subtle: #1a2338;
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.15);
  --success-border: #059669;
  
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --danger-border: #dc2626;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.6);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.8);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

/* SVG Icons */
.icon {
  width: 17px;
  height: 17px;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  flex-shrink: 0;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

/* Header */
header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon-box {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #e11d48 0%, #881337 100%);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.logo-text h1 span {
  color: #fb7185;
}

.logo-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Layout */
.app-container {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 24px;
  padding: 20px 24px;
  max-width: 1750px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

@media (max-width: 1150px) {
  .app-container {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

/* Card */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

/* Section Group in Left Form */
.form-section {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fb7185;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-label);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

input[type="text"],
input[type="date"],
select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
  border-color: #fb7185;
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.2);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Result Switch (ZDANE / NIEZDANE) */
.result-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result-option {
  position: relative;
}

.result-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.result-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s;
  background: var(--bg-input);
  color: var(--text-muted);
}

.result-option input[type="radio"]:checked + .result-btn.zdane {
  border-color: var(--success);
  background: var(--success-bg);
  color: #34d399;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.25);
}

.result-option input[type="radio"]:checked + .result-btn.niezdane {
  border-color: var(--danger);
  background: var(--danger-bg);
  color: #f87171;
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.25);
}

/* Segmented Tabs */
.segmented-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s;
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
}

/* Drawing Pad */
.pad-container {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  height: 100px;
}

#signaturePad {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

/* Custom Checkbox */
.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s;
}

.checkbox-card:hover {
  border-color: var(--primary);
}

.checkbox-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.4);
}

.btn-secondary {
  background: var(--bg-input);
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}
.btn-success:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 0.8rem;
}

/* Preview Section */
.preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.preview-wrapper {
  width: 100%;
  background: #040711;
  padding: 18px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

#docCanvas {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.85);
  background: white;
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

/* History Section */
.history-section {
  grid-column: 1 / -1;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.search-input {
  max-width: 280px;
}

.table-responsive {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.history-table th,
.history-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-color);
}

.history-table th {
  background: var(--bg-card-subtle);
  color: #fb7185;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.5px;
}

.history-table tr:hover {
  background: var(--bg-card-subtle);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.74rem;
}

.badge-zdane {
  background: var(--success-bg);
  color: #34d399;
  border: 1px solid var(--success-border);
}

.badge-niezdane {
  background: var(--danger-bg);
  color: #f87171;
  border: 1px solid var(--danger-border);
}

.empty-state {
  text-align: center;
  padding: 35px;
  color: var(--text-muted);
}

/* Notification toast */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid #374151;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* Assistant Drawer & Questions Panel */
.assistant-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 99999;
  display: none;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}

.assistant-drawer-backdrop.active {
  display: flex !important;
}

.assistant-drawer {
  width: 680px;
  max-width: 95vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  animation: slideDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.assistant-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card-subtle);
}

.assistant-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.assistant-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Category selector tabs in Assistant */
.category-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.cat-pill:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.cat-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.4);
}

/* Exam Card & Questions */
.exam-summary-box {
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.exam-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exam-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.exam-stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.exam-rule-banner {
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid var(--primary-border);
  color: #fecdd3;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.q-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.15s;
}

.q-card:hover {
  border-color: #3b82f6;
}

.q-card.status-correct {
  border-color: var(--success-border);
  background: rgba(16, 185, 129, 0.08);
}

.q-card.status-wrong {
  border-color: var(--danger-border);
  background: rgba(239, 68, 68, 0.08);
}

.q-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.q-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.q-key-box {
  background: var(--bg-input);
  border-left: 3px solid #3b82f6;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.q-key-label {
  font-weight: 700;
  color: #60a5fa;
  font-size: 0.74rem;
  text-transform: uppercase;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.q-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 4px;
}

.btn-q-eval {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.btn-q-eval.correct.active {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.btn-q-eval.wrong.active {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.btn-q-copy {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
}

.btn-q-copy:hover {
  background: var(--border-color);
  color: white;
}
/* Batch Action Buttons */
.assistant-batch-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 0 14px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.btn-batch-yes {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
  transition: all 0.15s ease;
}
.btn-batch-yes:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

.btn-batch-no {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(185, 28, 28, 0.35);
  transition: all 0.15s ease;
}
.btn-batch-no:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
}

/* Question Choice Cards */
.q-eval-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.q-choice-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.q-choice-indicator {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  transition: all 0.15s ease;
}

.q-choice-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}

/* Yes Choice */
.q-choice-card.choice-yes:hover {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.08);
}
.q-choice-card.choice-yes.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.16);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}
.q-choice-card.choice-yes.active .q-choice-indicator {
  background: #10b981;
  border-color: #10b981;
  color: white;
}
.q-choice-card.choice-yes.active .q-choice-text {
  color: #34d399;
  font-weight: 700;
}

/* No Choice */
.q-choice-card.choice-no:hover {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.08);
}
.q-choice-card.choice-no.active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.16);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}
.q-choice-card.choice-no.active .q-choice-indicator {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}
.q-choice-card.choice-no.active .q-choice-text {
  color: #f87171;
  font-weight: 700;
}

/* Card highlight states */
.q-card.q-card-passed {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.04);
}
.q-card.q-card-failed {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.05);
}

/* Answer key toggle & dropdown */
.q-answer-key {
  margin-top: 8px;
}
.q-answer-key-toggle {
  font-size: 0.76rem;
  color: #60a5fa;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  user-select: none;
  font-weight: 600;
}
.q-answer-key-toggle:hover {
  text-decoration: underline;
}
.q-answer-key-content {
  display: none;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.7);
  border-left: 3px solid #3b82f6;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.45;
}
.q-answer-key-content.visible {
  display: block;
}


/* Explicit Question Evaluation Choice Buttons */
.q-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.q-btn-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border-color);
  background: #0f172a;
  color: #94a3b8;
  transition: all 0.15s ease;
  user-select: none;
}

.q-btn-choice:hover {
  transform: translateY(-1px);
}

.q-btn-choice.choice-yes:hover {
  border-color: #10b981;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
}

.q-btn-choice.choice-yes.active {
  background: #059669 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.45);
}

.q-btn-choice.choice-no:hover {
  border-color: #ef4444;
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}

.q-btn-choice.choice-no.active {
  background: #dc2626 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
}

/* Full Questions Database View */
.all-q-search-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  background: #0f172a;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.all-q-search-input {
  width: 100%;
  padding: 10px 14px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: white;
  font-size: 0.88rem;
  box-sizing: border-box;
}
.all-q-search-input:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.all-q-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.all-q-filter-chip {
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.all-q-filter-chip:hover {
  color: white;
  border-color: #3b82f6;
}

.all-q-filter-chip.active {
  background: #2563eb;
  color: white;
  border-color: #3b82f6;
}


/* Smooth fade-in animation for table rows */
@keyframes rowFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.history-table tbody tr {
  animation: rowFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.history-table tbody tr.new-record {
  background: rgba(16, 185, 129, 0.12) !important;
  transition: background 1.5s ease;
}


/* Centered titles & clean alignment requested by user */
.card-title {
  justify-content: center !important;
  text-align: center !important;
}

.form-section-title {
  justify-content: center !important;
  text-align: center !important;
}

.result-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 100%;
}

.result-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: var(--bg-input);
  color: var(--text-muted);
}
