* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #F2E9E4;
  color: #333;
}

.app {
  max-width: 800px;
  margin: 40px auto;
  padding: 24px;
  background: #F2E9E4;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

h1 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 24px;
}

.subtitle {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 14px;
  color: #666;
}

.drop-zone {
  border: 2px dashed #999;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.drop-zone p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.drop-zone.dragover {
  border-color: #007bff;
  background-color: #f0f7ff;
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.messages {
  margin-top: 16px;
  min-height: 20px;
}

.message {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.message.info {
  background: #e7f1ff;
  color: #084298;
}

.message.success {
  background: #eaf7ea;
  color: #0a6b1f;
}

.message.error {
  background: #fde4e4;
  color: #b02020;
}

.summary {
  margin-top: 24px;
}

.summary h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

#file-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  font-size: 13px;
}

#file-list li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

#file-list li:last-child {
  border-bottom: none;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background: #007bff;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover:not(:disabled) {
  background: #0064cc;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.hidden {
  display: none;
}
