/* === YanaMaDigital Light UI (Unified Style) === */
:root {
  --bg: #f3f4f6;            /* soft gray background */
  --card: #ffffff;          /* white card panels */
  --muted: #6b7280;         /* muted text */
  --accent: #6366f1;        /* YanaMaDigital purple */
  --accent-hover: #4f46e5;
  --orange: #f97316;        /* Reset orange */
  --orange-hover: #ea580c;
}

/* Page */
html, body {
  height: 100%;
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: #111827;
}

/* Container */
main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
}

/* Header */
header {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}
header img.header-icon {
  width: 40px;
  height: 40px;
  vertical-align: middle;
  margin-right: 6px;
}
header h1 {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
  vertical-align: middle;
}
header p.lead {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.95rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cards */
.card {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card[style*="grid-column:1/-1"] {
  grid-column: 1 / -1;
}

/* Labels & Inputs */
label {
  font-size: 0.85rem;
  color: var(--muted);
}
input, select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  box-sizing: border-box;
}
input:focus, select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}

/* Buttons */
button {
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
}

/* Primary Buttons (Purple) */
#gen, #download, #copy {
  background: var(--accent);
}
#gen:hover, #download:hover, #copy:hover {
  background: var(--accent-hover);
}

/* Reset Button (Orange) */
#refresh.btn-muted {
  background: var(--orange);
}
#refresh.btn-muted:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(249,115,22,0.3);
}

/* Card Footer Row */
.card-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Code Preview */
pre {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 12px;
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  white-space: pre-wrap;
  color: #1f2937;
}

/* Muted text */
small, .muted {
  color: var(--muted);
  font-size: 0.85rem;
}

footer {
  margin-top: 28px;
  text-align: center;
  font-size: 0.75rem;
  color: #dc2626; /* red-600 */
  background: #fafafa;
  border-top: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
footer p {
  margin: 4px 0;
  line-height: 1.5;
}
footer p.italic {
  color: #111827;
  font-style: italic;
}

