/* PandorQueue theme — PandorApp "Elegant Sage & Warm Brown" design language.
   Source tokens: PandorApp frontend/src/constants/colors.ts */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  /* palette */
  --primary: #DAE6E7;
  --primary-light: #E8F0F1;
  --primary-dark: #B8CCCE;
  --accent: #4B403C;
  --accent-light: #6B5D58;
  --accent-dark: #3A322E;
  /* status */
  --st-preparing: #6A8A9A;
  --st-ready: #5A8A7A;
  --st-completed: #7A6A60;
  --st-cancelled: #9A9590;
  --warning: #C9A86A;
  --error: #B85C5C;
  /* text */
  --text: #4B403C;
  --text-2: #6B5D58;
  --text-3: #8A7F7A;
  --text-disabled: #B5ADA8;
  --text-inverse: #FFFFFF;
  /* surfaces */
  --bg: #F5F8F8;
  --bg-2: #EDF2F2;
  --card: #FFFFFF;
  --border: #E0E8E8;
  --border-2: #CCD6D6;
  /* shape & shadow */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px;
  --shadow-sm: 0 1px 3px rgba(75, 64, 60, 0.06);
  --shadow-md: 0 2px 8px rgba(75, 64, 60, 0.12);
  --shadow-lg: 0 4px 16px rgba(75, 64, 60, 0.12);
  --font: 'Work Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
/* Atribut `hidden` harus selalu menang atas aturan display author
   (mis. .modal-overlay { display: flex }) — tanpa ini modal tampil terus. */
[hidden] { display: none !important; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background: var(--bg); font-size: 15px; line-height: 1.5;
}
h1, h2, h3 { font-weight: 600; margin: 0 0 8px; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 20px;
}
.btn {
  font-family: var(--font); font-weight: 600; font-size: 15px;
  border: none; border-radius: var(--r-md); padding: 10px 18px;
  cursor: pointer; background: var(--primary); color: var(--accent);
  transition: filter .15s;
}
.btn:hover { filter: brightness(0.96); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-accent { background: var(--accent); color: var(--text-inverse); }
.btn-ready { background: var(--st-ready); color: var(--text-inverse); }
.btn-danger { background: var(--error); color: var(--text-inverse); }
.btn-ghost { background: transparent; border: 1px solid var(--border-2); }

.input, select.input, textarea.input {
  font-family: var(--font); font-size: 15px; color: var(--text);
  border: 1px solid var(--border-2); border-radius: var(--r-md);
  padding: 9px 12px; background: var(--card); width: 100%;
}
.input:focus { outline: 2px solid var(--primary-dark); border-color: var(--primary-dark); }
.label { font-size: 13px; font-weight: 500; color: var(--text-2); display: block; margin: 0 0 4px; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--text-inverse);
}
.badge-preparing { background: var(--st-preparing); }
.badge-ready { background: var(--st-ready); }
.badge-completed { background: var(--st-completed); }
.badge-cancelled { background: var(--st-cancelled); }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--text-inverse);
  padding: 12px 20px; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  z-index: 1000; font-size: 14px;
}
.toast.error { background: var(--error); }
