:root {
  --bg: #111827;
  --panel: #1f2937;
  --border: #374151;
  --accent: #E268A2;
  --hover: #2a3446;
  --text: #f3f4f6;
  --panel: #1f2937;
  color-scheme: dark;
}

html {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Figtree', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
}

.container {
  width: 100%;
  padding: 20px;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 20px;
}

h2 {font-size:1.4rem; font-weight: 600;}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1.325rem;
  border-radius: 16px;
}

details {
  margin: 1.5rem 0;
}

.credits {
    border-top:1px solid #606365;
    color:#90a0ab;
    font-size:0.9rem;
    text-align:right;
    margin-top:20px;
    padding:20px;
}

.credits a {color:#589eee;text-decoration:none;}
.credits a:hover{text-decoration:underline;}

/* ---------- Inputs ---------- */

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

label {
  font-size: 1rem;
  margin-bottom: 10px;
  opacity: 0.85;
}

input,
select {
  font-size: 1.25rem;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--panel);
  color: var(--text);
  appearance: none;
}

select option {
  background-color: #1f2937;
  color: #f3f4f6;
}

button {
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: opacity 0.25s ease-in-out;
}

button:hover {
    opacity: 0.9;
}

/* ---------- Preview Rows ---------- */

#preview .preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 8px 0;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.25s ease-in-out;
}

#preview .preview-item:hover {
  background: var(--hover);
}

.preview-left {
  display: flex;
  gap: 18px;
  align-items: center;
}

.preview-style {
  font-weight: 600;
  min-width: 28px;
}

.preview-value {
  opacity: 0.95;
}

.copy-btn {
  font-size: 1.2rem;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 100%;
  cursor: pointer;
  transition: background 0.15s ease;
}

.copy-btn:hover {
  background: var(--hover);
}

/* ---------- Toast ---------- */

#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #50CFB7;
  color: black;
  padding: 16px 28px;
  border-radius: 8px;
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#toast.show {
  opacity: 1;
}

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  .layout {
    grid-template-columns: 420px 1fr;
    gap: 20px;
  }
}