@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* ── Material Symbols ── */
.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24;
}

/* ── Accent Colors ── */
:root {
  --accent-success: #31cb00;
  --accent-warning: #f1d302;
  --accent-error: #e53e3e;
}

/* ── QR Spinner ── */
.qr-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(128, 128, 128, 0.15);
  border-top-color: var(--accent-warning);
  border-radius: 50%;
  animation: qrSpin 0.8s linear infinite;
}

@keyframes qrSpin {
  to { transform: rotate(360deg); }
}

.qr-spinner-inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(128, 128, 128, 0.2);
  border-top-color: var(--accent-warning);
  border-radius: 50%;
  animation: qrSpin 0.8s linear infinite;
  vertical-align: middle;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 3px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #404040;
}

::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #525252;
}

/* ── QR Overlay ── */
.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.qr-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.qr-overlay.visible > div {
  opacity: 1;
  pointer-events: auto;
}

.qr-card-anim {
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
}

.toast.success {
  background: #171717;
  color: var(--accent-success);
  border: 1px solid #262626;
}

.toast.error {
  background: #171717;
  color: var(--accent-error);
  border: 1px solid #262626;
}

.toast.info {
  background: #171717;
  color: var(--accent-warning);
  border: 1px solid #262626;
}

/* Light mode toast overrides */
html:not(.dark) .toast.success {
  background: #fafafa;
  color: #1a7a00;
  border: 1px solid #e5e5e5;
}

html:not(.dark) .toast.error {
  background: #fafafa;
  color: #991b1b;
  border: 1px solid #e5e5e5;
}

html:not(.dark) .toast.info {
  background: #fafafa;
  color: #8a7a00;
  border: 1px solid #e5e5e5;
}

@keyframes toastIn {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ── Tab system ── */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}
