* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

header {
  background: linear-gradient(135deg, #1a5f2a 0%, #2d8b3f 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

header h1 {
  font-size: 2em;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 1.1em;
  opacity: 0.9;
}

.config-section {
  background: #f8f9fa;
  padding: 25px;
  border-bottom: 3px solid #1a5f2a;
}

.config-section h2 {
  color: #1a5f2a;
  margin-bottom: 20px;
  font-size: 1.3em;
}

.form-section {
  padding: 25px;
  border-bottom: 1px solid #eee;
}

.form-section h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.2em;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a5f2a;
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.help-text {
  color: #888;
  font-size: 0.85em;
  margin-top: 5px;
}

.interval-group {
  display: flex;
  gap: 20px;
}

.interval-group .form-group {
  flex: 1;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #1a5f2a 0%, #2d8b3f 100%);
  color: white;
  width: 100%;
  margin-top: 20px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(26, 95, 42, 0.4);
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-large {
  padding: 15px 30px;
  font-size: 18px;
}

.status-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.status-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-message.info {
  background: #cce5ff;
  color: #004085;
  border: 1px solid #b8daff;
}

.status-panel {
  background: #f8f9fa;
  padding: 25px;
  margin: 20px;
  border-radius: 12px;
  border: 2px solid #ddd;
}

.status-panel h2 {
  color: #333;
  margin-bottom: 20px;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.progress-bar {
  flex: 1;
  height: 30px;
  background: #e9ecef;
  border-radius: 15px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a5f2a 0%, #2d8b3f 100%);
  width: 0%;
  transition: width 0.5s ease;
}

.progress-text {
  font-weight: bold;
  color: #333;
  min-width: 50px;
}

.stats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.stat-item {
  flex: 1;
  padding: 15px;
  background: white;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-item.success {
  border-left: 4px solid #28a745;
}

.stat-item.error {
  border-left: 4px solid #dc3545;
}

.stat-label {
  display: block;
  color: #666;
  font-size: 0.9em;
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
}

.errors-list {
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border-radius: 8px;
  padding: 10px;
}

.error-item {
  padding: 8px 12px;
  background: #fff3cd;
  border-left: 3px solid #ffc107;
  margin-bottom: 5px;
  font-size: 0.9em;
}

.file-preview {
  margin-top: 10px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.file-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 8px;
}

.file-info {
  color: #28a745;
  font-weight: 500;
}

.files-list {
  text-align: left;
  max-height: 200px;
  overflow-y: auto;
}

.file-item {
  padding: 10px 15px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.file-item:hover {
  border-color: #1a5f2a;
  background: #f8fff8;
}

input[type="file"] {
  padding: 10px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: #1a5f2a;
}

@media (max-width: 600px) {
  .interval-group {
    flex-direction: column;
  }
  
  .stats {
    flex-direction: column;
  }
  
  header h1 {
    font-size: 1.5em;
  }
}
