:root {
  color-scheme: dark;
  --yellow: #ffe500;
  --soft: #fff09a;
  --dark: #070606;
  --panel: rgba(18, 14, 10, .94);
  --line: rgba(255, 229, 0, .25);
  --green: #21b956;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  background:
    linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, .86)),
    url("../hero-burger-fries-uhd-poster.jpg") center / cover fixed;
}

.admin-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0;
}

.hidden { display: none !important; }

.login-panel,
.dashboard,
.product-form,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .4);
}

.login-panel {
  display: grid;
  gap: 16px;
  width: min(440px, 100%);
  margin: 8vh auto 0;
  padding: 28px;
}

.login-panel img {
  width: 160px;
  justify-self: center;
}

h1,
p { margin: 0; }

p { color: rgba(255, 255, 255, .74); }

label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select,
button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  padding: 10px 12px;
  color: white;
  background: rgba(0, 0, 0, .28);
  font: inherit;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

button {
  border: 0;
  color: #140c04;
  background: var(--yellow);
  font-weight: 900;
  cursor: pointer;
}

button.secondary {
  color: white;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
}

button.danger {
  color: white;
  background: #c92822;
}

.dashboard {
  overflow: hidden;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-top strong {
  display: block;
  color: var(--yellow);
  font-size: 24px;
}

#modeBadge {
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 14px 18px 0;
}

.tabs button {
  color: white;
  background: rgba(255, 255, 255, .1);
}

.tabs button.active {
  color: #140c04;
  background: var(--yellow);
}

.tab-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.product-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.metrics-grid,
.ops-grid {
  display: grid;
  gap: 12px;
}

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.ops-card,
.staff-form {
  border: 1px solid rgba(255, 229, 0, .22);
  border-radius: 8px;
  background: rgba(0, 0, 0, .26);
}

.metric-card {
  min-height: 92px;
  padding: 14px;
}

.metric-card span,
.ops-line span {
  color: rgba(255, 255, 255, .7);
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: var(--yellow);
  font-size: 26px;
}

.ops-card {
  min-height: 170px;
  padding: 16px;
}

.ops-card h2 {
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 16px;
}

.ops-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.driver-chip {
  display: inline-flex;
  margin: 0 8px 8px 0;
  border: 1px solid rgba(255, 229, 0, .25);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--yellow);
  background: rgba(255, 229, 0, .08);
  font-weight: 900;
}

.product-form .wide { grid-column: span 4; }

.dashboard-filters,
.orders-actions {
  border: 1px solid rgba(255, 229, 0, .22);
  border-radius: 8px;
  background: rgba(0, 0, 0, .26);
}

.dashboard-filters {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: 14px;
}

.orders-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.orders-actions strong {
  color: var(--yellow);
}

.image-picker {
  grid-template-columns: minmax(180px, 260px) 1fr;
  align-items: end;
}

.image-picker__button {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 229, 0, .38);
  color: white;
  background: rgba(0, 0, 0, .34);
}

.image-picker__button img {
  width: 100%;
  height: 148px;
  display: block;
  object-fit: cover;
}

.image-picker__button span {
  position: absolute;
  inset: auto 10px 10px;
  border-radius: 8px;
  padding: 8px 10px;
  color: #120e05;
  background: rgba(255, 229, 0, .92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.image-picker input[name="image_url"] {
  min-width: 0;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
}

.check input { min-height: auto; }

.form-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

.staff-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.staff-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
}

.staff-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.staff-list li {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 229, 0, .18);
  border-radius: 999px;
  padding: 4px 4px 4px 10px;
  background: rgba(255, 255, 255, .06);
}

.staff-list button {
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  text-align: left;
  vertical-align: top;
}

td small,
td span {
  color: rgba(255, 255, 255, .72);
}

th {
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
}

.thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  vertical-align: middle;
}

.thumb-button {
  min-height: auto;
  margin-right: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  vertical-align: middle;
}

.thumb-button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.status {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
  color: #120e05;
  background: var(--yellow);
}

.status.off {
  color: white;
  background: rgba(255, 255, 255, .18);
}

.mini-link {
  display: inline-block;
  margin-top: 5px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.order-row--entregado {
  background: rgba(33, 185, 86, .18);
}

.order-row--entregado td {
  border-bottom-color: rgba(33, 185, 86, .34);
}

.order-row--cancelado {
  background: rgba(255, 59, 48, .18);
}

.order-row--cancelado td {
  border-bottom-color: rgba(255, 59, 48, .34);
}

.order-row--entregado select {
  border-color: rgba(33, 185, 86, .58);
}

.order-row--cancelado select {
  border-color: rgba(255, 59, 48, .58);
}

.order-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: grid;
  gap: 4px;
  width: min(340px, calc(100% - 40px));
  border: 1px solid rgba(255, 229, 0, .46);
  border-radius: 8px;
  padding: 14px 16px;
  color: white;
  background: rgba(13, 11, 8, .96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 22px rgba(255, 229, 0, .24);
}

.order-toast strong {
  color: var(--yellow);
}

@media (max-width: 780px) {
  .metrics-grid,
  .ops-grid,
  .dashboard-filters,
  .product-form {
    grid-template-columns: 1fr;
  }

  .product-form .wide {
    grid-column: auto;
  }

  .image-picker {
    grid-template-columns: 1fr;
  }

  .staff-tools,
  .staff-form {
    grid-template-columns: 1fr;
  }

  .orders-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.demo-disclaimer{padding:9px 14px;text-align:center;background:linear-gradient(90deg,#850b13,#e32a27);color:#fff;font-size:11px;font-weight:850;letter-spacing:.05em}
