/* Reset & Base */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f8f9fa;
  color: #333;
}

/* Wrapper Card */
.wrapper {
  max-width: 800px;
  margin: 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Headings */
h1 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 10px;
}

p.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.tab-button {
  background: none;
  border: none;
  padding: 15px 20px;
  font-size: 16px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
}

.tab-button.active {
  color: #2e7d32;
  font-weight: bold;
  border-bottom: 2px solid #2e7d32;
}

.tab-content {
  display: none;
}

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

/* Textarea */
textarea {
  width: 100%;
  height: 200px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary {
  background: #2e7d32;
  color: #fff;
}
.btn-primary:hover {
  background: #256428;
}

.btn-danger {
  background: #c62828;
  color: #fff;
}
.btn-danger:hover {
  background: #a61b1b;
}

/* Status Messages */
.status {
  display: none;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

.status.success { background: #e6f4ea; color: #2e7d32; }
.status.error { background: #fdecea; color: #c62828; }
.status.info { background: #e8f0fe; color: #1565c0; }

/* Progress Bar */
.progress-wrapper {
  width: 100%;
  background: #eee;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  height: 20px;
  display: none;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: #2e7d32;
  transition: width 0.3s;
}

/* Examples */
.example-code {
  background: #f1f3f4;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: monospace;
  cursor: pointer;
  margin: 5px 0;
  display: inline-block;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}
.faq-question {
  cursor: pointer;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  display: none;
  margin-top: 10px;
  color: #555;
}
.faq-question.active + .faq-answer {
  display: block;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 14px;
  color: #777;
  margin-top: 40px;
}
.footer a {
  color: #2e7d32;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* Legal sections */
.legal {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.legal h2 {
  margin-bottom: 15px;
}
.legal ul {
  padding-left: 20px;
}
.legal li {
  margin-bottom: 10px;
}
/* Highlight active top nav tab */
.tab-button.active {
  background: #4CAF50;
  color: #fff !important;
  font-weight: bold;
  border-radius: 6px;
}
