/* Zaytouna custom overrides — layered on top of the original theme (style.css).
   Colors, fonts and layout classes are untouched; this file only adds the
   logo treatment and the few new components (sold-out badge, admin tables,
   AJAX feedback) needed for the dynamic build. */

/* ---- Logo in navbar ---- */
.zaytouna-brand {
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.zaytouna-brand img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: .3s all ease;
}
@media (max-width: 767.98px) {
  .zaytouna-brand img {
    height: 42px;
  }
}

/* ---- Logo in footer ---- */
.footer-logo {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

/* ---- Sold out badge on menu images ---- */
.menu-img.img {
  position: relative;
}
.sold-out-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 20, 20, 0.85);
  color: #c8a97e;
  border: 1px solid #c8a97e;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.menu-item.is-unavailable .menu-img.img {
  filter: grayscale(60%) brightness(0.7);
}

/* ---- AJAX form feedback ---- */
.form-feedback {
  margin-top: 15px;
  font-size: 15px;
  text-align: center;
  min-height: 24px;
}
.form-feedback.success {
  color: #3fae4e;
}
.form-feedback.error {
  color: #e2574c;
}
.small-feedback {
  margin-top: 8px;
  font-size: 13px;
}
.small-feedback.success {
  color: #c8a97e;
}
.small-feedback.error {
  color: #e2574c;
}

/* ---- Live status dot on admin dashboard ---- */
.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  margin-right: 6px;
  transition: background .3s ease;
}
.live-dot.connected {
  background: #3fae4e;
  box-shadow: 0 0 0 0 rgba(63, 174, 78, 0.6);
  animation: live-pulse 1.6s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 174, 78, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(63, 174, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 174, 78, 0); }
}

/* ---- Admin tables ---- */
.admin-table-wrap {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 5px 25px 0 rgba(0, 0, 0, 0.08);
  padding: 10px;
}
.admin-table th {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  color: #b3b3b3;
  border-top: none;
}
.admin-table td {
  vertical-align: middle;
  font-size: 14px;
}
.admin-table tr.row-flash {
  animation: flash-new 2s ease;
}
@keyframes flash-new {
  0% { background-color: #f7ecd9; }
  100% { background-color: transparent; }
}
.badge {
  padding: 5px 10px;
  border-radius: 3px;
  text-transform: capitalize;
  font-size: 12px;
}
.badge.status-pending { background: #fdf1d6; color: #a9791d; }
.badge.status-confirmed { background: #e4f6e6; color: #2f8a3d; }
.badge.status-cancelled { background: #fbe4e2; color: #b3382c; }

/* ---- Admin menu availability cards ---- */
.admin-menu-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 25px 0 rgba(0, 0, 0, 0.06);
  transition: .3s all ease;
}
.admin-menu-card h4 {
  font-size: 17px;
  margin-bottom: 4px;
}
.admin-menu-card.is-unavailable {
  opacity: .6;
}
