:root {
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --code-bg: #1e1e1e; }

.card {
  max-width: 900px; }

.section-title {
  font-weight: bold;
  margin: 2em 0 1em 0;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #eee;
  display: flex;
  align-items: center;
  gap: 0.5em; }

.option-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.5em 1em;
  margin-bottom: 2em; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  font-size: 90%;
  padding: 0.75em 1em;
  border-radius: 0.5em;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s; }

.checkbox-label:hover {
  background: #f1f5f9;
  border-color: var(--primary-color); }

.helper-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: normal; }

input[type="checkbox"] {
  border: 1px solid #333;
  display: block;
  margin-top: 2px;
  position: relative;
  width: 1em;
  height: 1em; }
  input[type="checkbox"]:checked::after {
    border-right: 0.25em solid var(--primary-color);
    border-bottom: 0.25em solid var(--primary-color);
    content: '';
    display: block;
    height: 1.2em;
    margin-top: -1em;
    opacity: 1;
    position: absolute;
    top: 64%;
    left: 8%;
    transform: rotate(45deg) scale(0.7);
    transition: transform .2s ease-in-out, opacity .2s ease-in-out;
    width: 0.5em; }

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2em;
  margin-bottom: 1em; }

.btn-group {
  display: flex;
  gap: 0.5em; }

.btn {
  padding: 0.75em 1.5em;
  border-radius: 0.5em;
  font-weight: bold;
  cursor: pointer;
  font-size: 81.25%;
  border: 1px solid var(--primary-color);
  transition: 0.2s; }
  .btn:hover {
    box-shadow: 0 4px 12px rgba(13, 104, 255, 0.2); }

.btn-primary {
  background: var(--primary-color);
  color: #FFF; }
  .btn-primary:hover {
    transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--primary-color); }

pre {
  background: var(--code-bg);
  color: #d4d4d4;
  padding: 2em;
  border-radius: 1em;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 81.25%;
  line-height: 1.7;
  overflow-x: auto;
  margin: 0;
  min-height: 250px;
  border: 1px solid #333; }
