@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --green-deep: #00703C;
  --green-mid: #2d9b5a;
  --green-light: #54b666;
  --green-pale: #e6f5ec;
  --bg: #f2f5f3;
  --white: #ffffff;
  --ink: #0f1f14;
  --ink-soft: #3a4a40;
  --muted: #7a8c80;
  --border: #d8e8dc;
  --container-bg: #dce8df;
  --card-bg: #e8f2ea;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,0.07);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
}

/* ── NAVBAR ── */
.navbar {
  background: #1a2e22;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 66px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #54b666, #00703C);
  flex-shrink: 0;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  margin: 0 16px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.stall-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 9px 20px;
  border-radius: 25px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.stall-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* ── CONTAINER ── */
.container {
  width: 88%;
  margin: 36px auto;
  background: var(--container-bg);
  padding: 30px 32px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}

/* ── RESTAURANT HEADER ── */
.restaurant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.restaurant-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.restaurant-img {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  background: linear-gradient(135deg, #b8e0c5, #54b666);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,112,60,0.2);
}

.restaurant-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.price-range {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-deep);
}

/* ── BUTTONS ── */
.btn {
  padding: 10px 22px;
  border: none;
  border-radius: 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.add-btn {
  background: var(--green-deep);
  color: white;
  box-shadow: 0 4px 14px rgba(0,112,60,0.25);
}

.add-btn:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,112,60,0.3);
}

.delete-btn {
  background: #f9ecec;
  color: #b94a4a;
  border: 1.5px solid #f0c4c4;
}

.delete-btn:hover {
  background: #fde0e0;
  box-shadow: 0 4px 12px rgba(185,74,74,0.15);
}

hr {
  margin: 26px 0;
  border: none;
  border-top: 1.5px solid var(--border);
}

/* ── FOOD GRID ── */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.food-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.food-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,112,60,0.12);
}

.food-img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c8ecd2, #54b666);
  position: absolute;
  right: 16px;
  top: 16px;
  box-shadow: 0 4px 12px rgba(0,112,60,0.18);
}

.food-card h3 {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 6px;
  padding-right: 90px;
}

.food-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
  padding-right: 90px;
}

.price {
  font-weight: 700;
  color: var(--green-deep);
  font-size: 1.05rem;
  margin-top: 14px;
  letter-spacing: 1px;
}

/* ── EDIT BUTTON ── */
.edit-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-deep);
  color: white;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 3px 10px rgba(0,112,60,0.3);
}

.edit-btn:hover {
  background: var(--green-mid);
  transform: scale(1.1);
}

/* ── NAV RIGHT ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-right a {
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 7px 14px;
  border-radius: 20px;
  transition: all 0.2s;
}

.nav-right a:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}

.signup {
  background: rgba(84,182,102,0.3) !important;
  color: white !important;
  border: 1px solid rgba(84,182,102,0.5) !important;
}

.signup:hover {
  background: var(--green-light) !important;
}