/* WeddingGuide Listing Bot — light, clean, professional */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f5f2;
  --border: #e6e1d8;
  --text: #2a2a2a;
  --muted: #888;
  --accent: #a07c5b;
  --accent-dark: #7d5e42;
  --error: #b13434;
  --success: #2f7a4f;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-alt);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; margin: 1.2em 0 0.6em; }
h1 { font-size: 28px; margin-top: 0; }
h2 { font-size: 20px; }
.lead { color: #555; font-size: 16px; margin-top: 0; }
.muted { color: var(--muted); }
.muted.small, small.muted { font-size: 12px; font-weight: 400; }
code { background: #f0ece4; padding: 2px 6px; border-radius: 3px; font-size: 13px; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.brand a { font-size: 18px; font-weight: 600; color: var(--text); }
.brand span { color: var(--accent); font-weight: 400; }
nav { display: flex; gap: 12px; align-items: center; }
nav a { padding: 6px 12px; }

/* Container */
.container { max-width: 1080px; margin: 28px auto; padding: 0 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }

/* Buttons */
.btn-primary, button.btn-primary, button {
  background: var(--accent);
  color: white;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
  transition: background 0.15s;
}
.btn-primary:hover, button:hover { background: var(--accent-dark); text-decoration: none; }
.btn-primary.big, button.big { padding: 12px 24px; font-size: 16px; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: var(--radius);
  display: inline-block;
}
.btn-ghost:hover { background: var(--bg-alt); text-decoration: none; }

/* Login */
.login-box {
  max-width: 380px;
  margin: 40px auto;
}
.login-box form { display: flex; flex-direction: column; gap: 14px; }

/* Forms */
.listing-form label { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.listing-form label.full { grid-column: 1 / -1; }
.listing-form label > span { font-weight: 500; font-size: 13px; color: #555; }
.listing-form input, .listing-form select, .listing-form textarea {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: white;
  color: var(--text);
}
.listing-form input:focus, .listing-form select:focus, .listing-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(160,124,91,0.15);
}
.listing-form input:disabled { background: var(--bg-alt); color: var(--muted); }
.listing-form textarea { resize: vertical; min-height: 200px; line-height: 1.6; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.cta-row { margin: 20px 0 30px; }

/* Image grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 12px 0 20px;
}
.image-tile {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: white;
  display: block;
  margin: 0;
}
.image-tile input[type=checkbox] {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 18px;
  height: 18px;
}
.image-tile img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}
.image-tile:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(160,124,91,0.2);
}
.image-tile .source {
  display: block;
  padding: 5px 8px;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-alt);
  text-align: center;
}

/* Audit table */
table.audit {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}
table.audit th { text-align: left; padding: 8px 10px; background: var(--bg-alt); border-bottom: 1px solid var(--border); font-weight: 600; }
table.audit td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.audit tr.action-publish_success td code { background: #def0e3; color: var(--success); }
table.audit tr.action-scan_fail td code, table.audit tr.action-publish_fail td code { background: #fce0e0; color: var(--error); }

/* Notices */
.error {
  background: #fce0e0;
  border: 1px solid #e8a8a8;
  color: var(--error);
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.success-card { text-align: center; padding: 30px 20px; }
.success-card h1 { color: var(--success); }
.success-card .actions { justify-content: center; }

footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 12px;
}
/* ===== APPEND THIS TO /opt/weddingguide-bot/app/static/style.css ===== */

.queue-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  gap: 12px;
  flex-wrap: wrap;
}
.queue-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.queue-tabs a {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  font-size: 13px;
}
.queue-tabs a:hover { background: var(--bg-alt); text-decoration: none; }
.queue-tabs a.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.queue-tabs .count {
  display: inline-block;
  background: rgba(0,0,0,0.08);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 4px;
}
.queue-tabs a.active .count { background: rgba(255,255,255,0.25); }

.prospector-controls { display: flex; gap: 8px; align-items: center; }
.running-badge {
  background: #fff3cd;
  color: #856404;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  border: 1px solid #ffeaa7;
}
button.small, .btn-primary.small, .btn-ghost.small {
  padding: 6px 12px;
  font-size: 13px;
}
button.tiny, .btn-primary.tiny, .btn-ghost.tiny {
  padding: 4px 10px;
  font-size: 12px;
}

.last-run {
  background: var(--bg-alt);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  border-left: 3px solid var(--accent);
}
.info-msg {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}

.queue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: white;
}
.queue-table th {
  text-align: left;
  padding: 10px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.queue-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.queue-table tr:hover { background: var(--bg-alt); }
.queue-table form { margin-right: 4px; }
.inline-form { display: inline-block; margin: 0; }
