:root {
  --primary: #2ecc71;
  --dark: #27ae60;
  --light: #fff;
  --grey: #f5f6fa;
  --error: #e74c3c;
}

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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--grey);
  color: #2c3e50;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--light);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
}

h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--grey);
  padding-bottom: 1rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: var(--grey);
  color: #2c3e50;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: var(--primary);
  color: var(--light);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--light);
}

.tab-content {
  display: none;
  padding: 1rem;
}

.tab-content.active {
  display: block;
}

.action-btn {
  position: relative;
  padding: 1rem 2rem;
  background: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.action-btn:hover {
  background: var(--dark);
}

.action-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--light);
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.hidden {
  display: none;
}

.output {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 5px;
  white-space: pre-wrap;
  font-family: monospace;
  max-height: 300px;
  overflow-y: auto;
}

.status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
}

.status.success {
  background: #d4edda;
  color: #155724;
}

.status.error {
  background: #f8d7da;
  color: #721c24;
}

.admin-warning {
  background: #fff3cd;
  color: #856404;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  display: none;
}

.admin-warning.show {
  display: block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}