/* =========================================================
   FOODMOJO OPS – FINAL UI
   Gold × Teal | Mobile-first | ERP-safe
   ========================================================= */

/* ---------- COLOR SYSTEM ---------- */
:root {
  /* Brand */
  --teal: #0F6F6B;
  --teal-dark: #0A4F4C;
  --teal-soft: #E6F3F2;

  --gold: #C9A24D;
  --gold-dark: #A8842F;

  /* Neutrals */
  --bg: #F6F8F9;
  --card: #FFFFFF;
  --text: #1F2933;
  --muted: #6B7280;
  --border: #E5E7EB;

  /* Status */
  --ok: #16A34A;
  --warn: #D97706;
  --bad: #DC2626;

  --radius: 14px;
}

/* ---------- GLOBAL RESET ---------- */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  background: var(--bg);
  color: var(--text);
}

/* ---------- HEADER ---------- */
.header {
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  color: #fff;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--card);
  margin: 12px;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* ---------- DASHBOARD GRID ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.tile {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 10px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  cursor: pointer;
}

.tile:active {
  transform: scale(0.97);
}

/* ---------- LINKS ---------- */
a {
  text-decoration: none;
  color: inherit;
}

/* ---------- BUTTONS ---------- */
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:active {
  background: var(--teal-dark);
}

.btn-gold {
  background: var(--gold);
  color: #000;
}

.btn-gold:active {
  background: var(--gold-dark);
}

/* ---------- FORMS ---------- */
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  font-size: 14px;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
}

/* ---------- TABLES ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  background: var(--teal-soft);
  color: var(--teal-dark);
  text-align: left;
  padding: 10px;
}

td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

/* ---------- STATUS BADGES ---------- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-ok {
  background: #DCFCE7;
  color: var(--ok);
}

.badge-warn {
  background: #FEF3C7;
  color: var(--warn);
}

.badge-bad {
  background: #FEE2E2;
  color: var(--bad);
}

/* ---------- CAMERA / MEDIA ---------- */
video,
canvas,
img {
  max-width: 100%;
  border-radius: var(--radius);
}

video,
canvas {
  background: #000;
}

/* ---------- MAP ---------- */
#map {
  width: 100%;
  height: 70vh;
  border-radius: var(--radius);
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 16px;
}

.footer b {
  color: var(--gold-dark);
}

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.hidden { display: none; }

/* ---------- DESKTOP ENHANCEMENT ---------- */
@media (min-width: 768px) {
  .card {
    margin: 16px auto;
    max-width: 1100px;
  }
}
/* ---------- TOP MENU (CLEAN ERP) ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  padding: 10px 16px;
  color: #fff;
}

.brand {
  font-weight: 700;
  font-size: 16px;
  color: var(--gold);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: #e5f4f3;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
}

.nav a:hover {
  color: #fff;
  border-bottom: 2px solid var(--gold);
}

.logout a {
  background: var(--gold);
  color: #000;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
}

