* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #74ebd5, #9face6);
  padding: 15px;
}

.container {
  max-width: 900px;
  margin: auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

label {
  font-weight: 600;
  margin-top: 15px;
  display: block;
}

textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  margin-top: 8px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: vertical;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #4f46e5;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

button.clear {
  background: #ef4444;
}

button:hover {
  opacity: 0.9;
}

#output {
  background: #0f172a;
  color: #e5e7eb;
  padding: 15px;
  border-radius: 8px;
  min-height: 120px;
  margin-top: 10px;
  white-space: pre-wrap;
  font-size: 14px;
}

.copy {
  margin-top: 10px;
  background: #16a34a;
  width: 100%;
}

.hidden {
  display: none;
}

/* Loader */
.loader {
  border: 5px solid #e5e7eb;
  border-top: 5px solid #4f46e5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 20px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 📱 Mobile Optimizations */
@media (max-width: 600px) {
  h1 {
    font-size: 20px;
  }

  textarea {
    font-size: 13px;
  }

  button {
    font-size: 13px;
  }
}

#runCodeContainer {
  display: none;
}