/* ═══════════════════════════════════════════════════
   MINI MAR CATERING — css/main.css
   Shared: variables, reset, typography, buttons,
   form elements, badges, utilities, animations
   ═══════════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --gold:        #F5A623;
  --gold-dark:   #d4891a;
  --gold-light:  rgba(245, 166, 35, 0.12);
  --green:       #1F3D2B;
  --green-mid:   #2a5239;
  --green-hover: #325e43;
  --white:       #ffffff;
  --cream:       #F8F6F0;
  --bg:          #f4f6f9;
  --text:        #1a1a1a;
  --muted:       #6b7280;
  --muted-lt:    #9ca3af;
  --border:      rgba(0, 0, 0, 0.07);
  --red:         #ef4444;
  --blue:        #3b82f6;
  --purple:      #8b5cf6;
  --success:     #10b981;
  --shadow-sm:   0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow:      0 6px 28px rgba(0, 0, 0, 0.10);
  --shadow-lg:   0 20px 60px rgba(0, 0, 0, 0.14);
  --shadow-md:   0 6px 24px rgba(0, 0, 0, 0.10);
  --r:           16px;
  --r-sm:        10px;
  --r-xs:        8px;
  --sidebar-w:   256px;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; }
button { cursor: pointer; font-family: 'Outfit', sans-serif; }
img { max-width: 100%; display: block; }

/* ── TYPOGRAPHY ── */
.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 14px;
}
.sec-title em { color: var(--gold); font-style: italic; }
.sec-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
  line-height: 1.75;
}
.text-center { text-align: center; }
.text-center .sec-sub { margin: 0 auto 48px; }

/* ── PILL LABELS ── */
.pill {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pill-green {
  background: rgba(31, 61, 43, 0.08);
  color: var(--green);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 166, 35, 0.4);
}
.btn-ghost { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-green { background: var(--green); color: white; }
.btn-green:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(31,61,43,0.35);
}
.btn-outline-green { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline-green:hover { background: var(--green); color: white; }
.btn-sm  { padding: 9px 18px;  font-size: 13px; border-radius: var(--r-xs); }
.btn-xs  { padding: 6px 12px;  font-size: 12px; border-radius: 6px; }

/* ── ICON BUTTONS ── */
.icon-btn {
  width: 32px; height: 32px;
  border-radius: 7px;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
  cursor: pointer;
}
.ib-edit  { background: var(--gold-light); color: var(--gold-dark); }
.ib-edit:hover  { background: rgba(245, 166, 35, 0.25); }
.ib-del   { background: rgba(239,68,68,0.08); color: var(--red); }
.ib-del:hover   { background: rgba(239,68,68,0.18); }
.ib-view  { background: rgba(59,130,246,0.1); color: var(--blue); }
.ib-view:hover  { background: rgba(59,130,246,0.2); }
.action-group { display: flex; gap: 6px; }

/* ── FORM ELEMENTS ── */
.f-group { margin-bottom: 16px; }
.f-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.f-group input,
.f-group select,
.f-group textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg);
  transition: border 0.2s, background 0.2s;
}
.f-group input:focus,
.f-group select:focus,
.f-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: white;
}
.f-group textarea { resize: vertical; min-height: 80px; }
.f-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.f-row  { display: grid; grid-template-columns: 1fr 1fr;       gap: 14px; }
.f-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr;   gap: 14px; }

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}
.b-pending   { background: rgba(245,166,35,0.15);  color: #b07710; }
.b-confirmed { background: rgba(31,61,43,0.10);    color: var(--green); }
.b-completed { background: rgba(59,130,246,0.10);  color: var(--blue); }
.b-cancelled { background: rgba(239,68,68,0.10);   color: var(--red); }
.cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(31,61,43,0.08);
  color: var(--green);
  text-transform: capitalize;
}

/* ── TOGGLE SWITCH ── */
.toggle-row { display: flex; align-items: center; gap: 12px; }
.toggle {
  width: 44px; height: 24px;
  background: var(--border);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle.on { background: var(--gold); }
.toggle::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: left 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle.on::after { left: 23px; }
.toggle-lbl { font-size: 13px; font-weight: 500; color: var(--text); }

/* ── ALERT BOXES ── */
.alert-ok {
  background: #f0fdf4; border: 1px solid #86efac;
  border-radius: var(--r-xs); padding: 12px 16px;
  font-size: 13px; color: #16a34a; text-align: center; display: none;
}
.alert-err {
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: var(--r-xs); padding: 12px 16px;
  font-size: 13px; color: var(--red); text-align: center; display: none;
}

/* ── INFO ROWS ── */
.info-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-row .il { color: var(--muted); font-weight: 500; }
.info-row .iv { font-weight: 600; color: var(--text); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}
@keyframes tgPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(34,158,217,0.5); }
  50%       { box-shadow: 0 4px 40px rgba(34,158,217,0.8); }
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}
@keyframes loaderBar {
  0%   { width: 0%;  margin-left: 0; }
  50%  { width: 60%; margin-left: 20%; }
  100% { width: 0%;  margin-left: 100%; }
}

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 900px) {
  .f-row, .f-row3 { grid-template-columns: 1fr; }
}
