:root {
  --bg: #0f1115;
  --card: #171923;
  --text: #e6e8ef;
  --muted: #a2a7b7;
  --primary: #4f46e5;
  --accent: #22d3ee;
}

:root[data-theme="light"] {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --accent: #06b6d4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
  background: linear-gradient(180deg, #0e0f14, #0b0c10);
  color: var(--text);
}

:root[data-theme="light"] body {
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  color: var(--text);
}

.container {
  max-width: 960px;
  margin: 24px auto;
  padding: 20px 16px 40px;
}

h1 {
  font-weight: 700;
  letter-spacing: 0.3px;
}

form {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

:root[data-theme="light"] form,
:root[data-theme="light"] .status-area,
:root[data-theme="light"] .output-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--card);
}

.field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

label {
  min-width: 160px;
  color: var(--muted);
}

input[type="text"],
input[type="url"],
input[type="password"],
select {
  flex: 1;
  padding: 10px 12px;
  background: #0e1017;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 8px;
}

:root[data-theme="light"] input[type="text"],
:root[data-theme="light"] input[type="url"],
:root[data-theme="light"] input[type="password"],
:root[data-theme="light"] select {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

button {
  appearance: none;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  cursor: pointer;
  font-weight: 600;
}

button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 14px 0;
}

:root[data-theme="light"] .divider {
  background: rgba(0, 0, 0, 0.08);
}

.status-area {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  height: 120px;
  overflow: auto;
  margin-top: 16px;
  font-size: 13px;
}

.status-line {
  color: var(--muted);
}

.output-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-top: 16px;
}

.output-header {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] .output-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.output {
  padding: 12px;
  margin: 0;
  height: 80vh;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 18px;
  line-height: 1.8;
}

a {
  color: #7dd3fc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

:root[data-theme="light"] a {
  color: #2563eb;
}

.output-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.paste-btn {
  padding: 8px 12px;
  min-width: auto;
  flex-shrink: 0;
  background: rgba(79, 70, 229, 0.8);
  font-size: 18px;
  line-height: 1;
}

.paste-btn:hover {
  background: rgba(79, 70, 229, 1);
}

:root[data-theme="light"] .paste-btn {
  background: rgba(37, 99, 235, 0.8);
}

:root[data-theme="light"] .paste-btn:hover {
  background: rgba(37, 99, 235, 1);
}
