@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --primary-color: #4F46E5;
  --background-color: #F3F4F6;
  --text-color: #1F2937;
  --container-bg: #FFFFFF;
  --border-color: #D1D5DB;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 1rem;
}

.container {
  max-width: 600px;
  width: 100%;
  background-color: var(--container-bg);
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

header p {
  color: #4B5563;
  margin-bottom: 2rem;
}

.upload-wrapper {
  margin-bottom: 2rem;
}

.upload-box {
  border: 2px dashed var(--border-color);
  background-color: #f9fafb;
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-box:hover,
.upload-area.dragover {
  background-color: #eef2ff;
  border-color: var(--primary-color);
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.browse-text {
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: underline;
}

.hint {
  font-size: 0.85rem;
  color: #6B7280;
  margin-top: 0.5rem;
}

/* Front Matter Styles */
#front-matter-container {
  margin-top: 2rem;
  text-align: left;
}

#front-matter-container h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.section-description {
  text-align: center;
  color: #6B7280;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.front-matter-field {
  margin-bottom: 1.5rem;
}

.front-matter-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.front-matter-field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color 0.2s;
}

.front-matter-field textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.front-matter-field textarea::placeholder {
  color: #9CA3AF;
}

.front-matter-actions {
  text-align: center;
  margin-top: 2rem;
}

#progress-container,
#result-container {
  margin-top: 2rem;
}

#progress-log {
  background-color: #111827;
  color: #F9FAFB;
  font-family: 'Courier New', Courier, monospace;
  padding: 1rem;
  border-radius: 8px;
  text-align: left;
  height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.button {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.2s;
}

.button:hover {
  background-color: #4338CA;
}

.hidden {
  display: none;
}

footer {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #6B7280;
}
