/* ==========================================================================
   Tanári Értékelő - Mobil Teljesítmény & 5-ös Pontbeváltó Rendszer
   Hitelesítéssel és Képernyőzárral
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-light: #e0e7ff;
  --primary-dark: #3730a3;
  --primary-hover: #4338ca;
  --accent: #06b6d4;

  --gold: #d97706;
  --gold-light: #fef3c7;
  --gold-border: #fcd34d;
  --gold-glow: rgba(245, 158, 11, 0.4);

  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-focus: #818cf8;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --grade-5: #10b981;
  --grade-5-bg: #d1fae5;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --safe-bottom: env(safe-area-inset-bottom, 16px);
  --nav-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-app: #0b0f19;
    --bg-card: #131b2e;
    --bg-elevated: #1e293b;
    --bg-subtle: #192238;
    --border: #24324d;
    --border-focus: #6366f1;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;

    --primary-light: rgba(79, 70, 229, 0.2);
    --gold-light: rgba(245, 158, 11, 0.2);
    --gold-border: rgba(245, 158, 11, 0.5);
  }
}

/* Alapstílusok */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
}

/* Fejléc */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.btn-hamburger {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.btn-hamburger:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-hamburger:active {
  transform: scale(0.92);
  background: var(--primary-light);
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
  flex-shrink: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.brand-info h1 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.app-version-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #4338ca;
  background: #e0e7ff;
  border: 1px solid #c7d2fe;
  padding: 1px 6px;
  border-radius: 9999px;
  line-height: 1.25;
  white-space: nowrap;
  letter-spacing: 0.01em;
  vertical-align: middle;
}

.header-controls-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.select-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.select-pill:hover {
  background: var(--bg-card);
  border-color: var(--primary);
}

.select-pill select {
  background: transparent;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.btn-quick-add {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  color: var(--primary);
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-quick-add:active {
  transform: scale(0.94);
  background: var(--primary);
  color: white;
}

.btn-lock {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-lock:active {
  transform: scale(0.94);
  background: var(--primary-light);
  color: var(--primary);
}

/* Kereső */
.search-container {
  padding: 10px 16px 0 16px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.search-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-main);
  width: 100%;
}

.search-box input::placeholder {
  color: var(--text-light);
}

.search-clear {
  color: var(--text-light);
  cursor: pointer;
  font-size: 16px;
  display: none;
}
.search-clear.visible {
  display: block;
}

/* Osztály Szűrő Sáv */
.class-filter-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.class-filter-bar::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

/* Fő Tartalom */
.app-content {
  padding: 12px 16px;
  max-width: 800px;
  margin: 0 auto;
}

.view-section {
  display: none;
}
.view-section.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

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

/* Diák Kártyák */
.student-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.student-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.student-card.ready-glow {
  border-color: var(--gold);
  box-shadow: 0 4px 14px var(--gold-glow);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.student-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.student-details {
  display: flex;
  flex-direction: column;
}

.student-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.student-fullname {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.nickname-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
}

.student-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.meta-id {
  font-family: ui-monospace, monospace;
  background: var(--bg-subtle);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ⭐ Beváltott 5-ösök Jelvény */
.fives-badge-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.fives-badge {
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px var(--gold-glow);
  transition: transform 0.2s ease;
}

.fives-badge.pulse {
  transform: scale(1.15);
}

.active-points-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Előrehaladási Sáv */
.progress-section {
  margin: 8px 0 10px 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.progress-track {
  height: 8px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, #4f46e5, #10b981);
}

.progress-fill.ready {
  background: linear-gradient(90deg, #f59e0b, #10b981);
}

/* ⭐ Beváltási Értesítő Gomb Banner */
.redeem-banner {
  background: linear-gradient(135deg, #fef3c7, #d1fae5);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.redeem-banner-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400e;
}

.btn-redeem-action {
  background: #059669;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
  transition: transform 0.15s ease;
}

.btn-redeem-action:active {
  transform: scale(0.95);
}

/* Gyors Pontozó Gombok */
.quick-actions-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}

.quick-btn {
  flex: 1;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.quick-btn:active {
  transform: scale(0.92);
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.quick-btn.plus-1 { color: #0284c7; background: #f0f9ff; }
.quick-btn.plus-2 { color: #4f46e5; background: #eef2ff; }
.quick-btn.plus-5 { color: #16a34a; background: #f0fdf4; }
.quick-btn.minus-1 { color: #dc2626; background: #fef2f2; flex: 0 0 46px; font-weight: 800; }
.quick-btn.custom { color: var(--text-muted); background: var(--bg-subtle); flex: 0 0 40px; }

/* In-Class Quick Bar */
.class-indicator-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

/* Statisztika */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}

.distribution-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

/* Alsó Navigáció */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  background: transparent;
  flex: 1;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

/* FAB */
.fab-container {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  right: 20px;
  z-index: 45;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: none;
  font-size: 26px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fab:active {
  transform: scale(0.9);
}

/* ==========================================================================
   OSZTÁLYOK HAMBURGER MENÜ (OLDALSÓ FIÓK / DRAWER)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: var(--bg-card);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: var(--safe-bottom);
}

.drawer-overlay.active .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.drawer-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-icon {
  font-size: 1.6rem;
}

.drawer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.drawer-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.drawer-classes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-class-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--bg-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.drawer-class-item:hover {
  background: var(--primary-light);
  border-color: rgba(99, 102, 241, 0.2);
}

.drawer-class-item.active {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.15);
}

.drawer-class-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-class-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.drawer-class-item.active .drawer-class-name {
  color: var(--primary);
}

.drawer-class-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.drawer-class-item.active .drawer-class-count {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.drawer-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

/* Modális ablakok */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: var(--bg-card);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(20px + var(--safe-bottom)) 20px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-float);
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
  }
  .modal-sheet {
    border-radius: var(--radius-lg);
    max-height: 85vh;
    transform: scale(0.95);
  }
  .modal-overlay.active .modal-sheet {
    transform: scale(1);
  }
}

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

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close {
  background: var(--bg-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
}

/* Űrlapok */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-control:focus {
  border-color: var(--border-focus);
  background: var(--bg-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-primary {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transition: all 0.15s ease;
}

.btn-primary:active {
  transform: scale(0.98);
  background: var(--primary-hover);
}

.btn-secondary {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.btn-danger {
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fca5a5;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

/* Napló Tételek */
.record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.record-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.record-pts-badge {
  font-weight: 700;
  font-size: 0.88rem;
  padding: 3px 8px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
}

.record-pts-badge.negative {
  background: #fee2e2;
  color: #ef4444;
}

.record-pts-badge.redemption {
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.record-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.record-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

.record-del-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
  font-size: 16px;
}

/* Értesítések */
.toast-container {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  left: 16px;
  right: 16px;
  z-index: 90;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.toast {
  pointer-events: auto;
  background: #1e293b;
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  animation: slideUpToast 0.25s ease;
  max-width: 420px;
  width: 100%;
}

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

.toast-undo-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Üres Állapot */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

/* ==========================================================================
   TELJES KÉPERNYŐS TANÁRI PIN KÓD / JELSZÓ ZÁROLÓ (AUTH OVERLAY)
   ========================================================================== */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-app);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-lock-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: white;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pin-dots-container {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  justify-content: center;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-focus);
  background: transparent;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pin-dot.filled {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
}

.auth-card.shake {
  animation: shakeLock 0.4s ease;
}

@keyframes shakeLock {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

/* Érintőgombos Számbillentyűzet (Numpad) */
.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.num-btn {
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 1.45rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.12s ease;
}

.num-btn:active {
  transform: scale(0.9);
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.num-btn.fn {
  font-size: 1rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
}
