@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 40px 20px;
  background-color: #ffffff;
  color: #334155;
  min-height: 100vh;
  line-height: 1.6;
}

.container { max-width: 900px; margin: 0 auto; }

.header {
  margin-bottom: 45px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 24px;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.025em;
}

.header p {
  color: #64748b;
  font-size: 1.05rem;
  margin: 0;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 48px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 24px;
  margin-bottom: 12px;
}

p {
  color: #475569;
  margin-top: 0;
  margin-bottom: 16px;
}

a {
  color: #4f46e5;
  text-decoration: none;
  border-bottom: 1px dashed rgba(79, 70, 229, 0.4);
  transition: all 0.2s ease;
}

a:hover {
  color: #3730a3;
  border-bottom-style: solid;
}

ul {
  padding-left: 24px;
  margin-top: 0;
  margin-bottom: 24px;
}

li {
  color: #475569;
  margin-bottom: 8px;
}

/* Code block styles */
code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background-color: #f1f5f9;
  padding: 3px 6px;
  border-radius: 6px;
  color: #0f766e;
  font-size: 0.875rem;
  border: 1px solid #e2e8f0;
}

pre {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px;
  white-space: pre-wrap;
  word-break: break-all;
  margin-top: 0;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

pre code {
  background-color: transparent;
  padding: 0;
  border: none;
  color: #0f172a;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Sections */
.form-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.form-section h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  color: #334155;
}

/* Forms */
input[type="text"], input[type="number"], select {
  width: 100%;
  padding: 12px 16px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="text"]:focus, input[type="number"]:focus, select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background-color: #ffffff;
}

input[type="text"]::placeholder { color: #94a3b8; }

select {
  height: 46px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

textarea {
  width: 100%;
  height: 180px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 16px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f766e;
  resize: vertical;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background-color: #ffffff;
}

/* Button styles */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

button:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}

/* Custom Checkboxes */
.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: #334155;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 20px;
  width: 20px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  margin-right: 12px;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #6366f1;
  border-color: #6366f1;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

/* Tabs layout */
.tabs-container {
  margin-top: 32px;
}

.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  padding: 12px 20px !important;
  background: none !important;
  color: #64748b !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
  margin-bottom: -2px;
  box-shadow: none !important;
}

.tab-btn:hover {
  color: #4f46e5 !important;
  transform: none !important;
  box-shadow: none !important;
  background: none !important;
}

.tab-btn.active {
  color: #4f46e5 !important;
  border-bottom-color: #4f46e5 !important;
}

.tab-content {
  display: none;
  animation: tabFadeIn 0.25s ease-out;
}

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

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
