:root {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color-scheme: light;
  --accent: #3f51b5;
  --bg: #f9fafc;
  --border: #d7dce5;
}

body {
  margin: 0;
  background: var(--bg);
  color: #1f2933;
  line-height: 1.6;
}

main {
  padding: 1.5rem;
}

.app-header,
.app-footer {
  background: white;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.app-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
  text-align: center;
  font-size: 0.9rem;
}

.app-header h1 {
  margin: 0 0 0.5rem 0;
  color: var(--accent);
}

.tagline {
  margin: 0;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.field-group label {
  font-weight: 600;
}

input[type="file"] {
  padding: 0.5rem;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  background: #eef1ff;
  cursor: pointer;
}

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

.summary-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.summary-list li:last-child {
  border-bottom: none;
}

.status-message {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.status-message[data-status="error"] {
  color: #c62828;
}

.status-message[data-status="success"] {
  color: #2e7d32;
}

.card-subsection {
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.xml-sync-board {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.xml-sync-slide {
  flex: 1 1 220px;
  background: #eef1ff;
  border: 1px dashed var(--accent);
  border-radius: 10px;
  padding: 0.75rem;
  min-height: 140px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.xml-sync-slide.is-drop-target {
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.xml-sync-page-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.xml-sync-page-list.is-drop-target {
  background: rgba(63, 81, 181, 0.08);
  border-radius: 8px;
  padding: 0.5rem;
}

.xml-sync-page {
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  cursor: grab;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xml-sync-page.is-dragging {
  opacity: 0.7;
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.xml-sync-empty {
  font-size: 0.9rem;
  color: #52606d;
}

.xml-sync-placeholder {
  font-size: 0.95rem;
  color: #52606d;
}

@media (max-width: 600px) {
  main,
  .app-header,
  .app-footer {
    padding: 1rem;
  }

  .card {
    padding: 1rem;
  }
}
