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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.header p {
  color: #7f8c8d;
}

.tabs {
  display: flex;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.tab {
  flex: 1;
  padding: 15px 20px;
  background: #ecf0f1;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  border-right: 1px solid #bdc3c7;
}

.tab:last-child {
  border-right: none;
}

.tab.active {
  background: #3498db;
  color: white;
}

.tab:hover:not(.active) {
  background: #d5dbdb;
}

.tab-content {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-height: 500px;
}

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

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

.form-group textarea,
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #ecf0f1;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group textarea:focus,
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
  font-family: monospace;
}

.button {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-right: 10px;
  margin-bottom: 10px;
}

.button:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

.button:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
}

.button.danger {
  background: #e74c3c;
}

.button.danger:hover {
  background: #c0392b;
}

.button.success {
  background: #27ae60;
}

.button.success:hover {
  background: #229954;
}

.log-container {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 20px;
  white-space: pre-wrap;
  line-height: 1.4;
}

.status {
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 600;
}

.status.running {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

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

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

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

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

.stat-card h3 {
  color: #3498db;
  font-size: 24px;
  margin-bottom: 5px;
}

.stat-card p {
  color: #7f8c8d;
  font-size: 14px;
}

.file-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  border-left: 4px solid #3498db;
}

.file-info h4 {
  color: #2c3e50;
  margin-bottom: 5px;
}

.file-info p {
  color: #7f8c8d;
  font-size: 14px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #ecf0f1;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background: #3498db;
  transition: width 0.3s ease;
}

@media (max-width: 768px) {
  .app {
    padding: 10px;
  }
  
  .tabs {
    flex-direction: column;
  }
  
  .tab {
    border-right: none;
    border-bottom: 1px solid #bdc3c7;
  }
  
  .tab:last-child {
    border-bottom: none;
  }
  
  .tab-content {
    padding: 20px;
  }
}