@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Gujarati:wght@400;600;700&display=swap');

:root {
  --brand-red: #7a1020;
  --brand-gold: #c9a227;
  --bg: #faf7f2;
  --card: #ffffff;
  --text: #2a2a2a;
  --muted: #767676;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Noto Sans Gujarati', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header.topbar {
  background: var(--brand-red);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

header.topbar h1 {
  font-size: 18px;
  margin: 0;
}

main {
  padding: 16px;
  max-width: 720px;
  margin: 0 auto 80px auto;
}

nav.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e0d8cc;
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  z-index: 10;
}

nav.tabbar button {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
}

nav.tabbar button.active {
  color: var(--brand-red);
  font-weight: 700;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; margin-bottom: 4px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}

.row { display: flex; gap: 10px; }
.row > .field { flex: 1; }

button.primary {
  background: var(--brand-red);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
}

button.secondary {
  background: #fff;
  color: var(--brand-red);
  border: 1px solid var(--brand-red);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}

.color-swatches { display: flex; gap: 8px; margin-bottom: 14px; }
.color-swatches .swatch {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
}
.color-swatches .swatch.selected { border-color: #333; }

#posterCanvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
}

.screen { display: none; }
.screen.active { display: block; }

.hint { font-size: 12px; color: var(--muted); margin-top: -8px; margin-bottom: 12px; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 8px; border-bottom: 1px solid #eee; }
