@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --forest: #2D4A2D;
  --moss: #4A6741;
  --sage: #7A9E6E;
  --cream: #F5F0E8;
  --warm: #E8DCC8;
  --coffee: #6B4226;
  --espresso: #2C1A0E;
  --gold:#e2bb47;
  --green: #2f6b3f;
  --gold-light: #E8C96A;
  --white: #FDFAF5;
  --text: #1A120A;
  --text-muted: #6B5E52;
  --shadow: rgba(44,26,14,0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
}

h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; line-height: 1.2; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; }
.feature-card img {
    width: 300px;
    height: auto;
    object-fit: contain;
}

/* =================== NAVBAR =================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 100px;
  background: rgba(253,250,245,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,168,75,0.2);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  height: 60px;
  box-shadow: 0 4px 20px var(--shadow);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--forest);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  height: 60px;
  width: auto;
}
.nav-logo .logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 2rem; }

.nav-links a {
  font-family:'Cinzel', 'Poppins';
  font-size: 1 rem; font-weight: 500; letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--green);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--forest); }
.nav-links a:hover::after { width: 100%; }

.nav-btn {
  padding: 8px 20px;
  background: var(--forest);
  color: var(--cream) !important;
  border-radius: 6px;
  font-size: 0.85rem !important;
  transition: background 0.2s !important;
}
.nav-btn::after { display: none !important; }
.nav-btn:hover { background: var(--moss) !important; color: var(--white) !important; }

.nav-btn-outline {
  padding: 8px 20px;
  border: 1.5px solid var(--forest);
  color: var(--forest) !important;
  border-radius: 6px;
  font-size: 0.85rem !important;
}
.nav-btn-outline::after { display: none !important; }
.nav-btn-outline:hover { background: var(--forest); color: var(--white) !important; }

/* =================== HERO =================== */
.hero {
  min-height: 100vh;
  display: flex; 
  align-items: center; 
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 2; max-width: 780px; padding: 2rem; }

.hero-badge {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.hero-logo {
  height: 250px; /* adjust mo dito */
  width: auto;
  object-fit: contain;

  /* GOLD GLOW 🔥 */
  filter: 
    drop-shadow(0 0 6px rgba(200,168,75,0.6))
    drop-shadow(0 0 12px rgba(200,168,75,0.4))
    drop-shadow(0 0 20px rgba(200,168,75,0.3));
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero h1 em { color: var(--gold); font-style: italic; }

.hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.75);
  max-width: 520px; margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/*==============Slideshow================*/
/* SLIDES */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  transform: scale(1); /* start zoom */
  
  animation: fadeSlide 20s infinite, zoomSlide 20s infinite;
  z-index: 0;
}

/* IMAGES */
.slide:nth-child(1){
  background-image:url('../images/spot1.jpg');
  animation-delay:0s;
}
.slide:nth-child(2){
  background-image:url('../images/spot2.jpg');
  animation-delay:5s;
}
.slide:nth-child(3){
  background-image:url('../images/spot3.jpg');
  animation-delay:10s;
}
.slide:nth-child(4){
  background-image:url('../images/SPOTS.jpg');
  animation-delay:15s;
}

/* FADE */
@keyframes fadeSlide {
  0% { opacity:0; }
  5% { opacity:1; }
  25% { opacity:1; }
  30% { opacity:0; }
  100% { opacity:0; }
}

/* 🔥 ZOOM EFFECT (KEN BURNS) */
@keyframes zoomSlide {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.08); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1.15); }
}

.btn-primary {
  padding: 14px 32px;
  background: var(--gold);
  color: var(--espresso);
  border-radius: 8px;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none; cursor: pointer;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(200,168,75,0.4); }

.btn-outline-light {
  padding: 14px 32px;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
  border-radius: 8px;
  font-weight: 500; font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4); font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
}

.hero-scroll span {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%,100% { height: 20px; opacity: 0.3; }
  50% { height: 40px; opacity: 0.7; }
}

/* =================== SECTIONS =================== */
section { padding: 80px 5%; }

.section-label {
  font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); font-family: 'Jost', sans-serif; font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--forest);
  margin-bottom: 1rem;
}

.section-title em { color: var(--gold); font-style: italic; }

.section-desc {
  color: var(--text-muted); max-width: 560px;
  font-size: 1rem; line-height: 1.7;
}

/* =================== FEATURES =================== */
.features { background: var(--cream); }

.features-grid {
  display: grid; 
  gap: 2rem; margin-top: 3rem;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(200, 168, 75, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(to right, var(--forest), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow); }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--forest), var(--moss));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.25rem;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--espresso); }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* =================== CABINS =================== */
.cabins-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; margin-top: 3rem;
}

.cabin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(44,26,14,0.08);
  transition: all 0.3s ease;
}

.cabin-card:hover { transform: translateY(-6px); box-shadow: 0 16px 50px var(--shadow); }

.cabin-img {
  height: 200px;
  background: linear-gradient(135deg, var(--forest), var(--moss));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; overflow: hidden; position: relative;
}

.cabin-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: var(--espresso);
  font-size: 0.75rem; font-weight: 600; padding: 4px 10px;
  border-radius: 20px;
}

.cabin-body { padding: 1.5rem; }
.cabin-body h3 { font-size: 1.2rem; margin-bottom: 0.4rem; color: var(--espresso); }
.cabin-body .desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }

.cabin-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cabin-meta span {
  font-size: 0.78rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}

.cabin-features {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 1.2rem;
}

.tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  background: var(--cream);
  border: 1px solid var(--warm);
  border-radius: 20px;
  color: var(--coffee);
}

.cabin-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--warm);
}

.price { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--forest); }
.price small { font-family: 'Jost', sans-serif; font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }

/* =================== MENU CARDS =================== */
.menu-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--warm);
  background: transparent;
  border-radius: 30px;
  font-family: 'Jost', sans-serif; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; color: var(--text-muted);
  transition: all 0.2s;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--forest); border-color: var(--forest);
  color: var(--white);
}

.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(44,26,14,0.08);
  transition: all 0.25s ease;
  cursor: pointer;
}

.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px var(--shadow); }

.product-img {
  height: 160px;
  background: linear-gradient(135deg, var(--coffee), var(--espresso));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}

.product-body { padding: 1rem; }
.product-body h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.product-body p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 0.75rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-weight: 700; color: var(--forest); font-size: 1rem; }

.add-btn {
  width: 32px; height: 32px;
  background: var(--forest); color: var(--white);
  border: none; border-radius: 8px;
  cursor: pointer; font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.add-btn:hover { background: var(--moss); }

/* =================== VIRTUAL TOUR =================== */
.virtual-tour {
  background: var(--espresso);
  color: var(--white);
  text-align: center;
}

.virtual-tour .section-title { color: var(--white); }

.tour-container {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(200,168,75,0.3);
}

.tour-viewer {
  background: linear-gradient(135deg, #1a2e1a 0%, #2d4a2d 100%);
  height: 500px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  cursor: grab;
}

.tour-viewer:active { cursor: grabbing; }

.tour-placeholder {
  text-align: center; z-index: 1;
}

.tour-placeholder .big-icon { font-size: 5rem; display: block; margin-bottom: 1rem; opacity: 0.5; }
.tour-placeholder h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--gold); }
.tour-placeholder p { font-size: 0.9rem; opacity: 0.6; max-width: 400px; }

.tour-spots {
  background: rgba(0,0,0,0.4);
  padding: 1rem 2rem;
  display: flex; gap: 1rem; overflow-x: auto; align-items: center;
}

.tour-spot {
  flex-shrink: 0;
  padding: 8px 18px;
  background: rgba(200,168,75,0.15);
  border: 1px solid rgba(200,168,75,0.3);
  border-radius: 20px;
  font-size: 0.8rem; color: rgba(255,255,255,0.7);
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}

.tour-spot:hover, .tour-spot.active {
  background: var(--gold); border-color: var(--gold);
  color: var(--espresso); font-weight: 600;
}

/* =================== FORMS =================== */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--warm);
  border-radius: 8px;
  font-family: 'Jost', sans-serif; font-size: 0.95rem;
  color: var(--text); background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(74,103,65,0.1);
}

/* =================== CART =================== */
.cart-btn {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  background: var(--forest); color: var(--white);
  border: none; border-radius: 50px;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 10px;
  font-family: 'Jost', sans-serif; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; box-shadow: 0 6px 25px rgba(45,74,45,0.5);
  transition: all 0.3s ease;
}

.cart-btn:hover { background: var(--moss); transform: scale(1.05); }
.cart-btn .cart-count {
  background: var(--gold); color: var(--espresso);
  border-radius: 50%; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}

/* Modal */
/*.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  border-radius: var(--radius-lg);
  width: 100%; max-width: 540px;
  max-height: 88vh; overflow-y: auto;
  transform: translateY(20px); transition: transform 0.3s;
}

.modal-overlay.open .modal { transform: translateY(0); }*/

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--warm);
  display: flex; align-items: center; justify-content: space-between;
}

.modal-header h3 { font-size: 1.3rem; color: var(--espresso); }

.modal-close {
  width: 32px; height: 32px;
  background: var(--cream); border: none; border-radius: 8px;
  cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--warm); }

.modal-body { padding: 1.5rem 1.75rem; }
.modal-footer { padding: 1.25rem 1.75rem; border-top: 1px solid var(--warm); }

/* Cart items */
.cart-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--warm);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-name { flex: 1; font-size: 0.9rem; font-weight: 500; }
.cart-item-price { font-size: 0.85rem; color: var(--text-muted); }

.qty-ctrl {
  display: flex; align-items: center; gap: 8px;
}

.qty-btn {
  width: 26px; height: 26px;
  background: var(--cream); border: 1px solid var(--warm);
  border-radius: 6px; cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.qty-btn:hover { background: var(--warm); }

.qty-num { font-size: 0.9rem; font-weight: 600; min-width: 18px; text-align: center; }

/* =================== ALERTS =================== */
.alert {
  padding: 12px 16px; border-radius: 8px;
  font-size: 0.9rem; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* =================== FOOTER =================== */
footer {
  background: var(--espresso);
  color: rgba(255,255,255,0.7);
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.4rem; color: var(--white); margin-bottom: 0.75rem;
  font-family: 'Playfair Display', serif;
}

.footer-brand h3 span { color: var(--gold); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }

.footer-col h4 {
  font-family: 'Jost', sans-serif; font-size: 0.78rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; font-weight: 600;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
}

/* =================== DASHBOARD =================== */
.dashboard-layout {
  display: flex; min-height: 100vh;
}

.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--espresso);
  padding: 2rem 0;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--white); letter-spacing: 2px;
}

.sidebar-logo span { color: var(--gold); }
.sidebar-logo small { display: block; font-family: 'Jost', sans-serif; font-size: 0.7rem; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-top: 3px; text-transform: uppercase; }

.sidebar-nav { padding: 1.5rem 0; }

.sidebar-section-label {
  padding: 0.5rem 1.5rem;
  font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.3); font-weight: 600;
  margin-top: 1rem;
}

.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 1.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem; font-weight: 400;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-left-color: var(--gold);
}

.sidebar-nav a .icon { font-size: 1rem; width: 20px; text-align: center; }

.main-content {
  flex: 1; margin-left: 260px;
  background: #F7F4F0; min-height: 100vh;
}

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--warm);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}

.topbar-title { font-size: 1.1rem; font-weight: 600; color: var(--espresso); }

.topbar-right { display: flex; align-items: center; gap: 1rem; }

.admin-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem;
}

.admin-avatar {
  width: 34px; height: 34px;
  background: var(--forest); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.85rem; font-weight: 600;
}

.page-body { padding: 2rem; }

/* Stat cards */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem; margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(44,26,14,0.08);
  transition: box-shadow 0.2s;
}

.stat-card:hover { box-shadow: 0 6px 20px var(--shadow); }

.stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 0.75rem;
}

.stat-icon.green { background: #d4edda; }
.stat-icon.blue { background: #d1ecf1; }
.stat-icon.amber { background: #fff3cd; }
.stat-icon.red { background: #f8d7da; }

.stat-val { font-size: 1.8rem; font-weight: 700; color: var(--espresso); font-family: 'Playfair Display', serif; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* Tables */
.table-wrap { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(44,26,14,0.08); }

.table-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--warm);
  display: flex; align-items: center; justify-content: space-between;
}

.table-header h3 { font-size: 1rem; color: var(--espresso); }

table { width: 100%; border-collapse: collapse; }

th {
  background: var(--cream);
  padding: 11px 16px;
  text-align: left; font-size: 0.75rem;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--warm);
}

td {
  padding: 12px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(44,26,14,0.05);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #faf8f4; }

.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.badge-pending { background: #fff3cd; color: #856404; }
.badge-confirmed { background: #d4edda; color: #155724; }
.badge-completed { background: #d1ecf1; color: #0c5460; }
.badge-cancelled { background: #f8d7da; color: #721c24; }
.badge-preparing { background: #e8d5f5; color: #4a1a7a; }
.badge-ready { background: #d4edda; color: #155724; }

/* Action buttons */
.action-btns { display: flex; gap: 6px; }

.btn-sm {
  padding: 5px 12px; font-size: 0.78rem;
  border-radius: 6px; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-weight: 500;
  transition: all 0.2s; display: inline-block;
}

.btn-success { background: #28a745; color: white; }
.btn-success:hover { background: #218838; }
.btn-danger { background: #dc3545; color: white; }
.btn-danger:hover { background: #c82333; }
.btn-info { background: #17a2b8; color: white; }
.btn-info:hover { background: #138496; }
.btn-warning { background: #ffc107; color: #212529; }
.btn-warning:hover { background: #e0a800; }
.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover { background: #545b62; }
.btn-forest { background: var(--forest); color: white; }
.btn-forest:hover { background: var(--moss); }

.btn-lg {
  padding: 12px 28px; font-size: 0.95rem;
  border-radius: 8px; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-weight: 600;
  transition: all 0.3s; display: inline-block;
  text-align: center;
}

/* =================== AUTH PAGES =================== */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--forest) 0%, var(--espresso) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-card-logo {
  text-align: center; margin-bottom: 2rem;
}

.auth-card-logo h2 {
  font-size: 1.8rem; color: var(--forest);
  letter-spacing: 2px;
}

.auth-card-logo h2 span { color: var(--gold); }
.auth-card-logo p { font-size: 0.88rem; color: var(--text-muted); margin-top: 4px; }

/* =================== PAGE HEADER =================== */
.page-header {
  background: linear-gradient(135deg, var(--forest), var(--espresso));
  padding: 350px 5% 220px;
  text-align: center;
  color: var(--white);
}

.page-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1rem; }

/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
  section { padding: 60px 5%; }

  .hero h1 { font-size: 2.2rem; }
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
.fw-600 { font-weight: 600; }
.color-forest { color: var(--forest); }
.color-gold { color: var(--gold); }
.color-muted { color: var(--text-muted); }
.fs-sm { font-size: 0.85rem; }

/* Admin form styling */
.admin-form {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; border: 1px solid rgba(44,26,14,0.08);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Tabs */
.report-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }

.report-tab {
  padding: 8px 20px;
  background: var(--white); border: 1.5px solid var(--warm);
  border-radius: 8px; cursor: pointer; font-family: 'Jost', sans-serif;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  transition: all 0.2s;
}

.report-tab.active, .report-tab:hover {
  background: var(--forest); color: var(--white); border-color: var(--forest);
}

/* Product availability toggle */
.toggle {
  width: 42px; height: 22px; background: #ccc;
  border-radius: 11px; position: relative;
  cursor: pointer; transition: background 0.2s;
}
.toggle.on { background: var(--forest); }
.toggle::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: white; border-radius: 50%;
  transition: left 0.2s;
}
.toggle.on::after { left: 23px; }

/* Summary total box */
.total-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 2px solid var(--warm);
  text-align: right;
}
.total-box .total-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.total-box .total-amount { font-size: 2rem; font-weight: 700; color: var(--forest); font-family: 'Playfair Display', serif; }

/* =================== NO SIDEBAR PAGES =================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* Better Modal Fix for Admin Dashboard */
.modal {
    z-index: 1070;
}
.modal-backdrop {
    z-index: 1060;
}
.modal-dialog {
    z-index: 1080;
}
