:root {
  --bg: #0b1220;
  --panel: #121b2e;
  --card: #0f172a;
  --text: #e8eefc;
  --muted: rgba(232, 238, 252, 0.75);
  --border: rgba(232, 238, 252, 0.14);
  --btn: #1d4ed8;
  --btn2: rgba(232, 238, 252, 0.12);
  --danger: #b91c1c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px;
}

.header h1 { margin: 0 0 6px; font-size: 22px; }
.subtle { margin: 0; color: var(--muted); font-size: 14px; }
.warning { margin-top: 10px; color: rgba(255, 220, 180, 0.9); font-size: 13px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
}

.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }

.label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.select, .input {
  width: 100%;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}
.input.small { padding: 8px 10px; border-radius: 10px; }
.textarea {
  width: 100%;
  min-height: 80px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
}

.btn {
  border: 1px solid var(--border);
  background: var(--btn);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
.btn.secondary { background: var(--btn2); color: var(--text); }
.btn.danger { background: var(--danger); color: white; padding: 8px 10px; border-radius: 10px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.fileBtn { display: inline-flex; align-items: center; gap: 8px; }
.fileBtn input { display: none; }

.status { margin: 10px 0 0; color: var(--muted); font-size: 13px; white-space: pre-wrap; }

.result.hidden { display: none; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.card h2 { margin: 0 0 6px; font-size: 20px; }
.desc { margin: 0 0 10px; color: var(--muted); }

.cardTop {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 10px;
}

.drinkImg {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: rgba(255,255,255,0.04);
}

.drinkImg.imgPlaceholder {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 10px, rgba(255,255,255,0.02) 10px 20px);
}

.metaLine {
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.list { margin: 8px 0 14px; padding-left: 18px; color: var(--text); }
.actions { margin-top: 14px; }

/* Overlay + spinning wheel */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.hidden { display: none !important; }

.wheelWrap {
  width: 240px;
  height: 240px;
  position: relative;
  display: grid;
  place-items: center;
}

.wheel {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 10px solid rgba(232, 238, 252, 0.20);
  border-top-color: rgba(232, 238, 252, 0.85);
  border-right-color: rgba(232, 238, 252, 0.55);
  animation: spin 0.6s linear infinite;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.10), transparent 55%);
}

.wheelPin {
  position: absolute;
  top: 10px;
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid rgba(232, 238, 252, 0.9);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.35));
}

.wheelText {
  position: absolute;
  bottom: 12px;
  font-weight: 700;
  color: var(--text);
  opacity: 0.9;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Admin table */
.tableWrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th, .table td {
  border-bottom: 1px solid var(--border);
  padding: 8px;
  vertical-align: top;
}
.table th { text-align: left; color: var(--muted); font-weight: 700; }

.logoWrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.logoImg {
  max-width: 240px;
  width: 60%;
  height: auto;
}

.siteFooter {
  margin-top: 40px;
  padding: 30px 20px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.footerInner {
  max-width: 900px;
  margin: 0 auto;
}

.footerLogoWrap {
  margin-bottom: 16px;
}

.footerLogo {
  width: 90px;
  height: auto;
  opacity: 0.95;
}

.siteFooter p {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.footerTagline {
  margin-top: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
}

/* Image row styling */
.table tr.imageRow td {
  background: transparent;        /* remove background */
  border-top: none;
}

/* Remove divider between main row and image row */
.table tr:not(.imageRow) td {
  border-bottom: none;
}

/* Only add divider after the image row (between drinks) */
.table tr.imageRow td {
  border-bottom: 1px solid var(--border);
}

/* Optional: remove border after last drink */
.table tr.imageRow:last-child td {
  border-bottom: none;
}

/* ===== Blue Parrot-style selected drink cell ===== */
.bp-panel-lite{
  background: transparent;
  border: none;
  padding: 0;
}

.two-col-flow{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.two-col-flow.one-col{
  grid-template-columns: 1fr;
}

.cell{
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid rgba(212, 165, 116, 0.22);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cell-inner{
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 14px;
  align-items: start;
}

.img-zoom{
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 165, 116, 0.18);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 10px, rgba(255,255,255,0.02) 10px 20px);
}

.img-zoom img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.text h3{
  margin: 0 0 6px;
  font-size: 18px;
}

.cocktail-meta{
  margin: 0 0 8px;
  color: rgba(212,165,116,0.92);
  font-weight: 600;
  font-size: 13px;
}

.ingredients{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-style: italic;
}

@media (max-width: 520px){
  .cell-inner{
    grid-template-columns: 1fr;
  }
  .img-zoom{
    width: 100%;
    height: 180px;
  }
}

.cocktail-description{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

label {
  font-size: 18px;   /* adjust to taste */
  font-weight: 600;
}

#spiritSelect {
  font-size: 18px;
  padding: 10px 14px;
}
