:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #059669;
  --danger: #dc2626;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

h1, h2, h3 {
  margin-top: 0;
}

.badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #e5e7eb;
  color: var(--text);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.file-item:last-child {
  border-bottom: none;
}

.file-name {
  font-weight: 600;
  word-break: break-all;
}

.file-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.qr-box {
  text-align: center;
}

.qr-box img {
  max-width: 260px;
  width: 100%;
  border: 8px solid white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.code-display {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-align: center;
  margin: 12px 0;
}

.hint-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px;
}

.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 12px;
  padding: 16px;
}

.success-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 12px;
  padding: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.station-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hotkey-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
}

.dropzone {
  border: 2px dashed #93c5fd;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  background: #f8fbff;
  cursor: pointer;
}

.dropzone.dragover {
  background: #dbeafe;
  border-color: var(--primary);
}

input[type="file"] {
  display: none;
}

input[type="text"],
select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group {
  margin-bottom: 16px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 32px 16px;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 24px;
}
