:root {
  --primary-color: #2196F3;
  --success-color: #4CAF50;
  --background-color: #f5f5f5;
  --card-bg: white;
  --text-color: #333;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

main {
  max-width: 800px;
  margin: 20px auto;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

fieldset {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

legend {
  font-weight: 600;
  color: var(--primary-color);
  padding: 0 0.5rem;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

button:hover {
  background-color: #1976D2;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

button:disabled {
  background-color: #BBDEFB;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

input[type="text"], input[type="file"] {
  padding: 0.6rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  width: 100%;
  max-width: 400px;
  transition: border-color 0.2s;
}

input[type="text"]:focus, input[type="file"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

progress {
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: #eee;
  overflow: hidden;
}

progress::-webkit-progress-bar {
  background: #eee;
  border-radius: 6px;
}

progress::-webkit-progress-value {
  background: var(--primary-color);
  border-radius: 6px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.config-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.status-indicator {
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid var(--primary-color);
}

.readme-section h4 {
  margin: 0.8rem 0;
  font-weight: 500;
}

.readme-section a {
  color: var(--primary-color);
  text-decoration: none;
}

.readme-section a:hover {
  text-decoration: underline;
}

.actions-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0;
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.file-input-wrapper input[type=file] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.hidden-fieldset {
    display: none;
}
