/* ═══════════════════════════════════════════════════
   Zuloro Vendor Portal — Shared Stylesheet
   ═══════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────── */
:root {
  --orange:       #f05c22;
  --orange-h:     #d94e18;
  --orange-l:     #ff7340;
  --orange-pale:  #fff4ef;
  --orange-glow:  rgba(240,92,34,.18);

  --blue:         #1a56db;
  --blue-pale:    #eff6ff;

  --dark:         #0f172a;
  --slate:        #1e293b;
  --text:         #334155;
  --muted:        #64748b;
  --border:       #e2e8f0;
  --bg:           #f8faff;
  --white:        #ffffff;

  --green:        #059669;
  --red:          #dc2626;
  --amber:        #d97706;

  --font:         'Inter', 'Segoe UI', sans-serif;

  --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --shadow:       0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.13);
  --shadow-xl:    0 24px 64px rgba(0,0,0,.18);

  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --radius-full:  9999px;
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* ── TYPOGRAPHY ──────────────────────────────────── */
h1 { font-size: 1.75rem; font-weight: 800; color: var(--dark); line-height: 1.2; }
h2 { font-size: 1.35rem; font-weight: 700; color: var(--dark); }
h3 { font-size: 1.1rem;  font-weight: 700; color: var(--slate); }
p  { color: var(--text); }
.text-sm   { font-size: .8rem; }
.text-muted{ color: var(--muted); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 11px 22px; border-radius: var(--radius-sm);
  border: none; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all .2s; white-space: nowrap; line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-h); box-shadow: 0 6px 20px var(--orange-glow); }
.btn-secondary { background: var(--white); color: var(--slate); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--bg); border-color: #c8d0dc; }
.btn-ghost { background: transparent; color: var(--orange); border: 1.5px solid var(--orange); }
.btn-ghost:hover { background: var(--orange-pale); }
.btn-success { background: var(--green); color: #fff; }
.btn-danger  { background: var(--red);   color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; border-radius: 10px; }
.btn-full { width: 100%; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ── FORMS ───────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-weight: 600; font-size: .82rem;
  color: var(--slate); margin-bottom: 6px; letter-spacing: .2px;
}
.form-group .req { color: var(--red); margin-left: 2px; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .9rem; color: var(--dark);
  background: #fff; transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.form-control::placeholder { color: #b0bec5; }
textarea.form-control { resize: vertical; min-height: 88px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 580px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}
.form-hint { font-size: .76rem; color: var(--muted); margin-top: 5px; }

/* Checkbox group */
.check-group { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.check-group label {
  display: flex; align-items: center; gap: 7px;
  font-weight: 500; font-size: .82rem; color: var(--text);
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-full); padding: 6px 14px;
  cursor: pointer; transition: all .18s;
}
.check-group label:hover { border-color: var(--orange); color: var(--orange); }
.check-group input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--orange); }
.check-group input[type=checkbox]:checked + span,
.check-group label:has(input:checked) {
  border-color: var(--orange); background: var(--orange-pale); color: var(--orange);
}

/* ── UPLOAD ZONE ─────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 28px 20px; text-align: center; cursor: pointer;
  transition: all .2s; position: relative; background: #fafbfe;
}
.upload-zone:hover { border-color: var(--orange); background: var(--orange-pale); }
.upload-zone input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%;
}
.upload-zone .uz-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-zone p { color: var(--muted); font-size: .83rem; line-height: 1.5; }
.upload-zone strong { color: var(--orange); }
.preview-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.preview-item {
  position: relative; width: 88px; height: 88px;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid var(--border);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .remove-btn {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(220,38,38,.85); color: #fff;
  border: none; font-size: .65rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ── BADGES ──────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; display: block; }
.badge-draft     { background: #f1f5f9; color: #64748b; }
.badge-draft::before     { background: #94a3b8; }
.badge-submitted { background: #dbeafe; color: #1e40af; }
.badge-submitted::before { background: #3b82f6; }
.badge-approved  { background: #d1fae5; color: #065f46; }
.badge-approved::before  { background: var(--green); }
.badge-published { background: #fef3c7; color: #92400e; }
.badge-published::before { background: var(--amber); }
.badge-rejected  { background: #fee2e2; color: #991b1b; }
.badge-rejected::before  { background: var(--red); }

/* ── CARDS ───────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 24px;
}
.card-hover { transition: box-shadow .2s, transform .2s; }
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* ── ALERTS ──────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warn    { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ── TOP NAV ─────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--dark); font-size: 1.05rem; }
.nav-brand img { height: 34px; }
.nav-brand .pipe { color: var(--border); font-weight: 300; margin: 0 4px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── UTILS ───────────────────────────────────────── */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
