/* Global styles - Bee / Cosy / Forest theme (clean) */
:root {
  --brand-primary: #7da27b; /* sage green */
  --brand-secondary: #e6b800; /* warm honey */
  --brand-accent: #a3c9a8; /* soft mint */
  --brand-yellow: #fff3c6; /* creamy honey */
  --brand-bg: #fff8e6; /* uniform creamy background */
  --brand-text: #243024; /* deep forest */
  --brand-muted: #5e6a5e; /* muted sage */
  --brand-card: #ffffff;
  --brand-border: #e3eadf; /* light sage border */
  --brand-shadow: 0 8px 20px rgba(36, 48, 36, 0.08);
  --footer-height: 72px; /* used to offset content so it doesn't go under the fixed footer */
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; }
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--brand-text);
  background-color: var(--brand-bg);
  background-image: url('/images/bandeaulateral.png');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover; /* crop as needed while covering the viewport */
}
#root > div { min-height: 100vh; display: flex; flex-direction: column; }
main { padding: 16px; padding-bottom: calc(16px + var(--footer-height)); flex: 1 1 auto; }
.container { max-width: 1080px; margin: 0 auto; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; background: var(--brand-secondary); color: #3a2b00; font-size: 12px; }
/* Add spacing between label and badge in navbar buttons */
.banner-nav .navlink-btn .badge { margin-left: 6px; }
/* Status badge variants */
.badge.status { color: #fff; font-weight: 700; letter-spacing: .2px; }
.badge.pending { background: #f59e0b; }
.badge.processed { background: #16a34a; }
.badge.canceled { background: #dc2626; }

/* Toasts */
.toasts-container { position: fixed; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 9999; }
.toast { padding: 10px 12px; border-radius: 8px; color: var(--brand-text); background: #f1f5f9; box-shadow: var(--brand-shadow); cursor: pointer; border: 1px solid var(--brand-border); }
.toast.success { background: #dcfce7; color: #065f46; }
.toast.error { background: #fee2e2; color: #991b1b; }
.toast.info { background: #e0f2fe; color: #075985; }

/* Banner header */
.banner-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 320px; /* reduced to save vertical space */
  background-color: transparent; /* let page background show through PNG transparency */
  background-image: url('/images/Banner-Naming.png');
  background-repeat: no-repeat;
  background-position: center 10%; /* show ~10% below the top of the image */
  background-size: cover; /* fill banner area while keeping aspect ratio */
  color: #fff;
  /* box-shadow: 0 6px 16px rgba(0,0,0,0.2); */
}
.banner-header .banner-inner { position: relative; height: 100%; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.banner-title { display: none; }
.banner-nav { background: transparent; border-radius: 10px 10px 0 0; position: relative; z-index: 1000; display: flex; justify-content: center; width: 100%; }
.banner-nav .nav-row { display: flex; align-items: center; gap: 16px; padding: 10px 16px; width: 100%; max-width: 1080px; margin: 0 auto; }
.banner-nav .nav-row + .nav-row { padding-top: 0; }
.banner-nav .nav-row-secondary { border-top: 0; margin-top: 6px; padding-top: 6px; }

/* Greeting row above navbar */
.banner-greeting-row { width: 100%; max-width: 1080px; margin: 0 auto; display: flex; justify-content: flex-end; padding: 10px 16px 0 16px; }

/* Right-side actions: keep everything on one row (desktop) */
.banner-nav .nav-actions { display: flex; align-items: center; white-space: nowrap; }
.banner-nav .nav-actions-inner { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.banner-nav .nav-actions-row { display: flex; align-items: center; gap: 10px; }

/* Greeting chip */
.nav-greeting {
  margin-right: 6px;
  display: inline-block;
  max-width: 30vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3a2b00;
  background: #F8EAD3; /* soft warm to match Uiverse button palette */
  border: 1px dashed #DAA06D;
  border-radius: 14px;
  padding: 6px 10px;
  box-shadow: 0 0 0 2px #F8EAD3;
}
.nav-links { display: flex; gap: 12px; }
.nav-links a, .nav-links button.navlink-btn { display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; white-space: nowrap; }
.nav-links a:hover, .nav-links button.navlink-btn:hover { text-decoration: none; }
/* Navbar buttons styling */
/* remove legacy hover/skin — Uiverse styles below apply */

/* Navbar buttons: Uiverse-inspired orange dashed style */
.banner-nav .navlink-btn,
.banner-nav .nav-logout-btn {
  outline: none;
  color: #fff8e7;
  padding: 1em;
  padding-left: 3em;
  padding-right: 3em;
  border: 2px dashed #fff8e7;
  border-radius: 15px;
  background-color: #A4B494;
  box-shadow: 0 0 0 4px #A4B494, 2px 2px 4px 2px rgba(0, 0, 0, 0.5);
  transition: .1s ease-in-out, .4s color;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.banner-nav .navlink-btn:active,
.banner-nav .nav-logout-btn:active {
  transform: translateX(0.1em) translateY(0.1em);
  box-shadow: 0 0 0 4px #fff8e7, 1.5px 1.5px 2.5px 1.5px rgba(0, 0, 0, 0.5);
}

/* Icon-only logout button sizing within pill style */
.banner-nav .nav-logout-btn { padding-left: 1em; padding-right: 1em; min-width: 44px; height: 44px; }
.banner-nav .nav-logout-btn svg { pointer-events: none; }


/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--brand-card); color: #222; border: 1px solid var(--brand-border); border-radius: 8px; box-shadow: var(--brand-shadow); padding: 6px 0; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 12px; color: #222; text-decoration: none; }
.dropdown-menu a:hover { background: #f6faef; }

/* Polaroid product card */
.polaroid-card { background: var(--brand-card); border: 1px solid var(--brand-border); border-radius: 12px; box-shadow: var(--brand-shadow); overflow: hidden; display: flex; flex-direction: column; transform: rotate(calc(var(--tilt, 0deg))); position: relative; transition: transform 160ms ease, box-shadow 160ms ease; }
.polaroid-card:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14); }
.polaroid-photo { width: 100%; aspect-ratio: 1/1; background: #fff; padding: 8px 8px 0 8px; border-bottom: 1px solid var(--brand-border); display: flex; align-items: center; justify-content: center; }
.polaroid-photo img { max-width: 100%; max-height: 100%; object-fit: cover; }
.polaroid-info { background: var(--brand-card); padding: 12px 12px 16px 12px; box-shadow: inset 0 -8px 0 var(--brand-card); }
.polaroid-card::before { display: none; }
.polaroid-title { margin: 0 0 4px 0; font-size: 16px; font-weight: 800; color: var(--brand-primary); }
.polaroid-desc { margin: 0 0 8px 0; color: var(--brand-muted); font-size: 14px; min-height: 38px; }
.polaroid-meta { display: flex; justify-content: space-between; align-items: center; }
.polaroid-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; }

/* Buttons and inputs */
button, .button { border: none; background: var(--brand-primary); color: #fff; padding: 8px 12px; border-radius: 8px; font-weight: 600; cursor: pointer; box-shadow: var(--brand-shadow); transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease; }
button:hover { filter: brightness(1.05); transform: translateY(-1px); }
/* inside navbar, do not apply global hover so Uiverse style stays exact */
.banner-nav button:hover { filter: none; transform: none; }
button:active { transform: translateY(0); }
button[disabled] { background: #c7c7c7; cursor: not-allowed; box-shadow: none; }
input, select, textarea { border: 1px solid var(--brand-border); padding: 8px 10px; border-radius: 8px; background: #fff; color: var(--brand-text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-accent); outline-offset: 2px; }

@media (max-width: 640px) { .banner-header { height: 240px; } }

/* Footer */
.site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #a4b494; color: #fff8e7;
  padding: 20px 0;
  width: 100%;
  z-index: 1100;
  min-height: var(--footer-height);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}
.site-footer .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-brand { font-weight: 800; letter-spacing: 0.2px; font-family: 'Edwardian Script ITC', 'Great Vibes', 'Playfair Display', Georgia, cursive; font-size: 40px; line-height: 1.1; }
.footer-links { display: flex; gap: 10px; }
.footer-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: #fff8e7; border: 1px solid rgba(255,248,231,0.35); border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.10)); }
.footer-icon:hover { background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(0,0,0,0.16)); }

/* Simple modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 16px; }
.modal { background: var(--brand-card); color: var(--brand-text); border-radius: 12px; border: 1px solid var(--brand-border); box-shadow: var(--brand-shadow); width: 100%; max-width: 640px; max-height: 80vh; overflow: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--brand-border); }
.modal-body { padding: 12px 16px; }
.modal-footer { padding: 12px 16px; border-top: 1px solid var(--brand-border); display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 640px) {
  .footer-brand { font-size: 32px; }
}