:root {
  --gold: #d4af37;
  --gold-dark: #b38e1f;
  --bg-light: #fef9f3;
  --bg-dark: #1f1f1f;
  --text: #2c2c2c;
  --white: #fff;
  --max-width: 1200px;
  --transition: 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

/* Header & Navbar */
header {
  background: var(--bg-dark);
  width: 100%;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}
nav .logo {
  height: 50px;
  margin-right: auto;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-left: auto;
  align-items: center;
}
nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 5px;
  transition: var(--transition);
}
nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--gold);
  bottom: 0;
  left: 0;
  transition: var(--transition);
}
nav ul li a:hover::after {
  width: 100%;
}
.btn-login {
  background-color: #7289da;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.btn-login:hover {
  background-color: #5a6cb2;
}
.user-tag {
  background: #1c1c1c;
  color: #fff;
  font-weight: bold;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
}
nav .toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--white);
  cursor: pointer;
}
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: var(--bg-dark);
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }
  nav.open ul {
    display: flex;
  }
  nav .toggle {
    display: block;
  }
}

/* Main & Footer Layout */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
}
footer {
  background: var(--bg-dark);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
}
.hero h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: var(--gold);
}
.hero p {
  margin: 1rem 0;
  font-size: 1.2rem;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color var(--transition);
  text-decoration: none;
}
.btn-gold:hover {
  background: var(--gold-dark);
}

/* Forms */
.form-section {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.form-section input,
.form-section select,
.form-section button {
  width: 100%;
  padding: 0.6rem;
  margin: 0.7rem 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Staff Dashboard Cards */
.menu-admin {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 600px;
}
.menu-admin-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: background var(--transition);
}
.menu-admin-card:hover {
  background: #f9f9f9;
}
.menu-admin-info h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
}
.menu-admin-info .category {
  font-size: 0.9rem;
  color: #555;
}
.menu-admin-info .price {
  font-weight: bold;
  color: var(--gold-dark);
}
.menu-admin-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-small {
  background: var(--gold);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background var(--transition);
}
.btn-small:hover {
  background: var(--gold-dark);
}
.btn-danger {
  background: transparent;
  border: 1px solid #d9534f;
  color: #d9534f;
}
.btn-danger:hover {
  background: #d9534f;
  color: var(--white);
}

/* Double Page Menu */
.menu-book {
  background: #fdf8f3;
  padding: 4rem 2rem;
}
.menu-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
}
.menu-page {
  background: #fff;
  border: 2px solid #d8b565;
  border-radius: 10px;
  padding: 2rem;
  width: 500px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.menu-category {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: #b38e1f;
  text-align: center;
  margin-bottom: 1.5rem;
}
.menu-page ul {
  list-style: none;
  padding: 0;
}
.menu-page li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed #ccc;
}
.menu-page li:last-child {
  border-bottom: none;
}
.item-name {
  font-weight: 500;
  color: #333;
}
.item-price {
  font-weight: bold;
  color: #b38e1f;
}
@media (max-width: 768px) {
  .menu-inner {
    flex-direction: column;
    align-items: center;
  }
}

/* Modal (positioned right) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  right: 20px;
  top: 20px;
  width: auto;
  max-width: 300px;
  background: rgba(0,0,0,0.8);
  padding: 1rem;
  border-radius: 8px;
  color: #fff;
}
.modal-content {
  text-align: center;
}
.modal-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.btn-cancel {
  background: transparent;
  border: 1px solid #aaa;
  padding: 0.5rem 1rem;
  color: #aaa;
  cursor: pointer;
  border-radius: 6px;
}
.btn-cancel:hover {
  color: white;
  border-color: white;
}

/* Success Card */
.success-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 2rem;
}
.success-card {
  background: #1a1a1a;
  border: 2px solid #b38e1f;
  border-radius: 12px;
  padding: 2rem 3rem;
  max-width: 600px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}
.success-card h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.success-card p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Sales / Reservations Cards */
.reservation-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.reservation-controls input,
.reservation-controls select {
  padding: 0.5rem;
  font-size: 1rem;
}
.reservations-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.reservation-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  width: 260px;
  padding: 1rem;
  position: relative;
  transition: transform var(--transition);
}
.reservation-card:hover {
  transform: translateY(-5px);
}
.reservation-card.upcoming {
  border-top: 4px solid var(--gold);
}
.reservation-card.past {
  opacity: 0.6;
}
.reservation-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.reservation-card p {
  margin-bottom: 0.5rem;
}
.reservation-card .timestamp {
  font-size: 0.8rem;
  color: #666;
  text-align: right;
}
.reservation-card .btn-gold {
  position: absolute;
  bottom: 10px;
  right: 10px;
}
.staff-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.staff-actions a {
  display: inline-block;
}


.pos-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.pos-items, .pos-cart {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  flex: 1;
  min-width: 280px;
}
.pos-items h3, .pos-cart h3 {
  margin-bottom: 1rem;
  text-align: center;
}
.item-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.pos-item-card {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  width: 140px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.pos-item-card:hover {
  background: #f9f9f2;
}
.pos-item-card .item-name {
  font-weight: bold;
  margin-bottom: 0.3rem;
}
.pos-item-card .item-category {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}
.pos-item-card .item-price {
  margin-bottom: 0.5rem;
  color: var(--gold-dark);
}
.pos-item-card button {
  width: 100%;
}
.pos-cart table {
  width: 100%;
  border-collapse: collapse;
}
.pos-cart th, .pos-cart td {
  padding: 0.5rem;
  text-align: center;
}
.pos-cart th {
  background: var(--bg-light);
}
.grand-total {
  text-align: right;
  margin-top: 1rem;
  font-weight: bold;
}
.btn-wide {
  width: 100%;
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .pos-container {
    flex-direction: column;
  }
}
.form-inline {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.small-form {
  margin: 0.5rem 0 0 0;
}

.employees-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.employee-card {
  background: var(--white);
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  width: 240px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.employee-card p {
  margin: 0.3rem 0;
}

.btn-small {
  background: var(--gold);
  color: var(--white);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-small:hover {
  background: var(--gold-dark);
}

.btn-danger {
  background: transparent;
  border: 1px solid #d9534f;
  color: #d9534f;
}

.btn-danger:hover {
  background: #d9534f;
  color: var(--white);
}
.cards-list { display:flex; flex-wrap:wrap; gap:1rem; }
.card {
  background: var(--white); padding:1rem; border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,0.05); width:200px;
}
.btn-small { background: var(--gold); padding:0.4rem; border:none; border-radius:4px; color:white; cursor:pointer; }
.btn-small:hover { background: var(--gold-dark); }
.cards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  width: 220px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  margin-top: 0.7rem;
}
.btn-small {
  background: var(--gold);
  color: var(--white);
  padding: 0.4rem 0.6rem;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color var(--transition);
}
.btn-small:hover {
  background: var(--gold-dark);
}

.loyalty-stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  justify-items: center;
  margin: 1rem 0;
}
.stamp {
  width: 48px;
  height: 48px;
  filter: grayscale(100%) opacity(0.3);
}
.stamp.filled {
  filter: none;
}
.stamp-icon {
  width: 100%;
  height: 100%;
}
.pos-cart td button {
  padding: 0.2rem 0.6rem;
  margin: 0 0.2rem;
  font-size: 1rem;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition);
}
.pos-cart td button:hover {
  background: var(--gold-dark);
}

.grand-total {
  text-align: right;
  margin-top: 1rem;
  font-weight: bold;
  font-size: 1.2rem;
}

.btn-wide {
  width: 100%;
  margin-top: 1rem;
}
.sale-overview {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.sale-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.sale-items-table th,
.sale-items-table td {
  padding: 0.8rem;
  border: 1px solid #ccc;
  text-align: left;
}

.sale-items-table th {
  background-color: var(--bg-light);
}

.sale-items-table .total-row td {
  border-top: 2px solid var(--gold);
  background: var(--bg-light);
}

.btn-small {
  background-color: var(--gold);
  color: var(--white);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
}

.btn-small:hover {
  background-color: var(--gold-dark);
}
.sales-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.sale-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1.2rem;
  width: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sale-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.sale-card .timestamp {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

.btn-small {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  color: var(--white);
  background: var(--gold);
  transition: background var(--transition);
}

.btn-small:hover {
  background: var(--gold-dark);
}

.events {
  text-align: center;
  padding: 40px 20px;
}

.event-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.event-item {
  width: 350px;
  font-size: 14px;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s;
}
.event-item:hover {
  transform: scale(1.03);
  opacity: 1;
}

.event-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

