/* Start page (upload form). */

[hidden] { display: none !important; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 16px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

h1 { margin: 0 0 6px 0; }

.subtitle { color: #666; margin-bottom: 24px; }

.features {
  margin: 0 0 20px 0;
  padding-left: 20px;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

/* File picker */
#file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-file-upload {
  display: block;
  width: 100%;
  padding: 14px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #f9fafb;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  color: #475569;
  transition: background 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.custom-file-upload:hover,
#file-input:focus-visible + .custom-file-upload {
  background: #f1f5f9;
  border-color: #64748b;
}

.custom-file-upload.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.file-status {
  font-size: 14px;
  color: #475569;
  margin-top: 8px;
  font-weight: 500;
  padding-left: 4px;
}
.file-status.ok { color: #16a34a; }
.file-status.bad { color: #dc2626; }

.hint {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
  padding-left: 4px;
  line-height: 1.5;
}

button[type="submit"] {
  margin-top: 20px;
  padding: 14px 24px;
  background: #0070f3;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 112, 243, 0.2);
}
button[type="submit"]:hover { background: #0061d5; }

/* Progress */
.progress-container {
  margin-top: 25px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  height: 24px;
  border: 1px solid #e2e8f0;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.4s ease-out;
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: #1e293b;
}

.timer-text {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

.error-msg {
  background: #fee2e2;
  color: #b91c1c;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.info-box {
  margin-top: 20px;
  padding: 14px;
  background: #f8fafc;
  border-left: 4px solid #cbd5e1;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}
.warning-box { background: #fffbeb; border-left-color: #f59e0b; }
.privacy-box { background: #f0fdf4; border-left-color: #22c55e; }

.footer {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #64748b;
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar, .custom-file-upload { transition: none; }
}
