:root {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  padding: 1.2rem 1.5rem;
  background: linear-gradient(90deg, #1d4ed8, #0f172a);
  color: #fff;
}

.topbar h1 {
  margin: 0;
}

.topbar-title-link,
.topbar-title-link:visited,
.topbar-title-link:hover,
.topbar-title-link:active {
  color: #ffffff;
  text-decoration: none;
}

.version-tag {
  font-size: 0.7em;
  font-weight: 600;
  opacity: 0.9;
}

.layout {
  width: 100%;
  max-width: 900px;
  margin: 1rem auto;
  padding: 0 0.75rem 1rem;
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

h1 {
  margin-top: 0;
}

p {
  color: #475569;
}

.privacy-note {
  color: #1e3a8a;
  font-weight: 600;
}

.warning-note,
.limit-note {
  margin-top: 0.4rem;
  font-size: 0.95rem;
}


.report-bug-hint {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.report-bug-hint a,
.report-bug-hint a:visited {
  color: inherit;
  text-decoration: none;
}

.report-bug-hint a:hover,
.report-bug-hint a:active {
  text-decoration: underline;
}

.dropzone {
  border: 2px dashed #94a3b8;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-top: 1rem;
  text-align: center;
  background: #f8fafc;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.dropzone.is-dragover {
  border-color: #2563eb;
  background: #dbeafe;
}

.upload-button {
  display: inline-flex;
  margin-top: 0.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #2563eb;
  color: #fff;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

#fileInput {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.error-message {
  margin-top: 0.75rem;
  color: #b91c1c;
  font-weight: 600;
}

.size-warning {
  margin-top: 0.75rem;
  color: #92400e;
  font-weight: 600;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.file-item {
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  padding: 0.75rem;
  background: #fff;
  cursor: grab;
}

.file-item.dragging {
  opacity: 0.5;
}

.file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.file-name {
  font-weight: 600;
  color: #0f172a;
}

.file-meta {
  font-size: 0.9rem;
  color: #64748b;
}

.remove-button {
  border: 0;
  border-radius: 0.45rem;
  background: #fee2e2;
  color: #991b1b;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

button {
  border: 0;
  border-radius: 0.5rem;
  background: #2563eb;
  color: #fff;
  padding: 0.7rem 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

button.secondary {
  background: #475569;
}

button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.progress-container {
  margin-top: 1rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  transition: width 0.2s ease;
}

.is-hidden {
  display: none;
}
