/* ═══════════════════════════════════════════════════════
   ProStudios Image — Admin Panel Styles
   Aligned with public site: Nunito + warm palette + dark sidebar
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Warm light palette — matches public site */
  --bg:          #faf9f7;
  --surface:     #ffffff;
  --surface2:    #f4f0ea;
  --border:      #e8e1d8;
  --text:        #1e1b18;
  --text-muted:  #8c8078;

  /* Accent hierarchy */
  --accent:      #a67c5b;   /* caramel — links, decorative */
  --accent-dark: #8a6445;
  --salmon:      #E8927A;   /* salmon — primary actions */
  --salmon-dark: #d47a63;

  /* Status */
  --danger:      #c0392b;
  --success:     #4a9e6f;
  --warn:        #c97d2a;

  /* Sidebar dark theme */
  --sidebar-bg:      #1a1a1a;
  --sidebar-bg2:     #222018;
  --sidebar-border:  rgba(255,255,255,.08);
  --sidebar-text:    rgba(255,255,255,.72);
  --sidebar-text-hv: #ffffff;
  --sidebar-w:   220px;

  --font:        'Nunito', system-ui, sans-serif;
  --radius:      4px;
  --transition:  .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--salmon); }
img { display: block; max-width: 100%; }

/* ── Login page ──────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1a1a1a 0%, #2a2520 100%);
}
.login-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 48px;
  width: 100%; max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
}
.login-logo { text-align: center; margin-bottom: 36px; }
.login-logo img { height: 48px; width: auto; margin: 0 auto 12px; filter: invert(1) sepia(1) saturate(2) hue-rotate(340deg) brightness(.85); }
.login-logo h1 { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: .5px; }
.login-logo p  { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.login-form .field { margin-bottom: 16px; }
.login-form label { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.login-form input {
  width: 100%; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 15px; font-family: var(--font);
  transition: border-color var(--transition);
}
.login-form input:focus { outline: none; border-color: var(--salmon); box-shadow: 0 0 0 3px rgba(232,146,122,.15); }
.login-back { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.login-back a { color: var(--accent); }
.login-back a:hover { color: var(--salmon); }

/* ── Layout ──────────────────────────────────────────────── */
.admin-body { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────── */
.admin-sidebar {
  width: var(--sidebar-w); min-height: 100vh;
  background: linear-gradient(180deg, #1a1a1a 0%, #222018 100%);
  border-right: 1px solid rgba(255,255,255,.05);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 20px 18px 18px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.sidebar-brand img {
  height: 32px; width: auto; display: block;
}
.sidebar-brand-sub {
  font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,.35); font-weight: 600;
}
.brand-name {
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,.9);
  letter-spacing: .5px;
}
.sidebar-nav { padding: 12px 0; flex: 1; }
.nav-item {
  display: block; padding: 11px 18px;
  color: var(--sidebar-text); font-size: 13px; font-weight: 500;
  transition: background var(--transition), color var(--transition), border-left-color var(--transition);
  border-left: 3px solid transparent;
  letter-spacing: .2px;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: var(--sidebar-text-hv); }
.nav-item.active {
  border-left-color: var(--salmon);
  color: var(--salmon);
  background: rgba(232,146,122,.1);
}
.nav-divider { border: none; border-top: 1px solid var(--sidebar-border); margin: 10px 0; }
.nav-section-label {
  display: block; padding: 8px 18px 2px;
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.3); font-weight: 600;
}
.nav-logout { color: rgba(255,255,255,.4); }
.nav-logout:hover { color: #f08080; background: rgba(192,57,43,.12); }

/* ── Main area ───────────────────────────────────────────── */
.admin-main { margin-left: var(--sidebar-w); flex: 1; }
.admin-content { padding: 32px; max-width: 1280px; }
.page-title {
  font-size: 1.6rem; font-weight: 700; color: var(--text);
  margin-bottom: 24px; letter-spacing: -.3px;
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 20px; font-weight: 500;
}
.alert-success { background: rgba(74,158,111,.1); border: 1px solid rgba(74,158,111,.3); color: #3a8a5a; }
.alert-error   { background: rgba(192,57,43,.1);  border: 1px solid rgba(192,57,43,.3);  color: #c0392b; }
.alert-warn    { background: rgba(201,125,42,.1);  border: 1px solid rgba(201,125,42,.3);  color: #9a6020; }

/* ── Stats ───────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 1px 4px rgba(30,27,24,.04);
}
.stat-alert { border-left: 3px solid var(--warn); }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--salmon); }
.stat-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }

/* ── Dashboard grid ──────────────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.dash-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: 0 1px 4px rgba(30,27,24,.04);
}

/* ── Section header ──────────────────────────────────────── */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header h3 { font-size: 11px; color: var(--text-muted); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }

/* ── Tables ──────────────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { padding: 10px 12px; border-bottom: 2px solid var(--border); color: var(--text-muted); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; text-align: left; font-weight: 700; }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface2); }
.muted { color: var(--text-muted); font-size: 12px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 10px; letter-spacing: .5px; text-transform: uppercase; font-weight: 700;
}
.badge-new       { background: rgba(201,125,42,.15); color: #9a6020; }
.badge-contacted { background: rgba(52,152,219,.15);  color: #2980b9; }
.badge-booked    { background: rgba(74,158,111,.15);  color: #2e8b57; }
.badge-declined  { background: rgba(192,57,43,.15);   color: #c0392b; }
.badge-completed { background: rgba(127,140,141,.15); color: #7f8c8d; }
.badge-active    { background: rgba(74,158,111,.15);  color: #2e8b57; }
.badge-inactive  { background: rgba(127,140,141,.15); color: #7f8c8d; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius);
  font-size: 13px; cursor: pointer; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  font-family: var(--font); font-weight: 600; letter-spacing: .2px;
}
.btn:hover { background: var(--border); border-color: var(--text-muted); }
.btn-primary { background: var(--salmon); border-color: var(--salmon); color: #fff; }
.btn-primary:hover { background: var(--salmon-dark); border-color: var(--salmon-dark); color: #fff; }
.btn-accent { background: rgba(232,146,122,.1); border-color: var(--salmon); color: var(--salmon); }
.btn-accent:hover { background: var(--salmon); color: #fff; }
.btn-danger { background: rgba(192,57,43,.1); border-color: rgba(192,57,43,.35); color: #c0392b; }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 11px; }
.btn-block { width: 100%; }
.btn-outline-secondary {
  background: transparent; border-color: var(--border); color: var(--text-muted);
}
.btn-outline-secondary:hover { background: var(--surface2); border-color: var(--text-muted); color: var(--text); }

/* ── Forms ───────────────────────────────────────────────── */
.admin-form, .email-form, .upload-form { max-width: 700px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.field input, .field select, .field textarea {
  padding: 10px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 14px; font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--salmon);
  box-shadow: 0 0 0 3px rgba(232,146,122,.15);
}
.field select option { background: var(--surface); }
.field small { font-size: 12px; color: var(--text-muted); }
.field-checkbox { flex-direction: row; align-items: center; gap: 10px; }
.field-checkbox input { width: auto; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }

/* ── Gallery view ────────────────────────────────────────── */
.gallery-meta-bar {
  display: flex; gap: 24px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  margin-bottom: 24px; font-size: 14px;
  box-shadow: 0 1px 4px rgba(30,27,24,.04);
}
.collapsible-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 24px; padding: 0;
  box-shadow: 0 1px 4px rgba(30,27,24,.04);
}
.collapsible-panel summary {
  padding: 16px 20px; cursor: pointer; font-size: 13px;
  font-weight: 700; color: var(--text-muted); letter-spacing: 1px;
  text-transform: uppercase; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  user-select: none;
}
.collapsible-panel summary::-webkit-details-marker { display: none; }
.collapsible-panel summary::after {
  content: '▶';
  font-size: 18px;
  opacity: .8;
  flex-shrink: 0;
  transition: transform .22s ease;
  transform: rotate(0deg);
  line-height: 1;
  display: inline-block;
  width: 28px; height: 28px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.collapsible-panel[open] summary::after { transform: rotate(90deg); opacity: 1; }
.collapsible-panel[open] summary { color: var(--salmon); border-bottom: 1px solid var(--border); }
.email-form { padding: 20px; }
.lists-section, .list-view-section, .photos-section { margin-bottom: 32px; }
.lists-section h3, .list-view-section h3, .photos-section h3 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-muted); margin-bottom: 16px; font-weight: 700;
}

/* ── Photo grids ─────────────────────────────────────────── */
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.photo-item {
  position: relative; aspect-ratio: 1;
  overflow: hidden; border-radius: var(--radius);
  background: var(--surface2);
}
.photo-item img { width: 100%; height: 100%; object-fit: contain; }
.photo-actions {
  position: absolute; top: 6px; right: 6px;
  display: flex; gap: 4px;
}
.photo-actions .btn-danger {
  width: 28px; height: 28px;
  padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1;
  background: rgba(192,57,43,.85) !important;
  border-color: transparent !important;
  color: #fff !important;
  opacity: 0; transition: opacity var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.photo-item:hover .photo-actions .btn-danger { opacity: 1; }
.photo-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.7); font-size: 11px; color: #ccc;
  padding: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: none;
}
.photo-item:hover .photo-name { display: block; }

/* ── Upload panel ────────────────────────────────────────── */
.upload-panel { max-width: 1280px; }
.upload-drop-zone {
  border: 2px dashed var(--border); border-radius: 8px;
  padding: 60px 32px; text-align: center;
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer; background: var(--surface);
}
.upload-drop-zone.drag-over { border-color: var(--salmon); background: rgba(232,146,122,.05); }
.drop-icon { font-size: 48px; margin-bottom: 16px; }
.upload-drop-zone p { color: var(--text-muted); margin-bottom: 16px; }
.upload-hint { font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.upload-stats { margin-top: 24px; }
.stat-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.progress-bar-wrap { background: var(--border); border-radius: 4px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--salmon); transition: width .3s ease; border-radius: 4px; }

/* ── Compact drag-drop upload field with progress bar ─────────────
   Reusable pattern for single-file upload fields (mirrors the
   portfolio uploader's look & feel). Use for all future upload
   fields: .upload-field-dropzone (container), .upload-field-icon,
   .upload-field-choose (label wrapping <input type="file">),
   .upload-field-hint, .upload-field-stats / .upload-field-stats-row
   for the progress readout, and .progress-outer / .progress-inner
   for the bar itself. ───────────────────────────────────────────── */
.upload-field-dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
  background: var(--surface);
}
.upload-field-dropzone.drag-over { border-color: var(--accent); background: rgba(166,124,91,.05); }
.upload-field-icon { font-size: 1.8rem; margin-bottom: 8px; }
.upload-field-dropzone p { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); }
.upload-field-choose { cursor: pointer; }
.upload-field-hint { font-size: 12px !important; color: var(--text-muted); margin: 8px 0 0 !important; }
.upload-field-stats { margin-top: 10px; }
.upload-field-stats-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.progress-outer { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-inner { height: 100%; width: 0%; background: var(--accent); border-radius: 4px; transition: width .2s ease; }

/* Queue card grid */
.upload-queue {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 6px;
}
.queue-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 10px;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 12px; min-width: 0; position: relative;
  transition: background .25s ease, border-color .25s ease;
}
.qc-ext {
  display: inline-block; padding: 2px 6px; border-radius: 3px;
  background: rgba(232,146,122,.15); color: var(--salmon);
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  align-self: flex-start;
}
.qc-name {
  color: var(--text); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; font-size: 11px;
}
.qc-status { color: var(--text-muted); font-size: 11px; }
.qc-bar-wrap { background: var(--border); border-radius: 3px; height: 7px; overflow: hidden; margin-top: 4px; }
.qc-bar { height: 100%; background: var(--salmon); width: 0; transition: width .25s ease; border-radius: 3px; }
.qc-retry {
  margin-top: 4px; padding: 3px 8px; font-size: 11px;
  background: rgba(192,57,43,.1); border: 1px solid rgba(192,57,43,.35);
  color: #c0392b; border-radius: var(--radius); cursor: pointer;
  font-family: var(--font); align-self: flex-start; font-weight: 600;
}
.qc-retry:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* Card state classes */
.queue-card.qc-done    { background: rgba(74,158,111,.08); border-color: rgba(74,158,111,.3); }
.queue-card.qc-done    .qc-status { color: var(--success); font-weight: 700; }
.queue-card.qc-done    .qc-bar    { background: var(--success); }
.queue-card.qc-error   { background: rgba(192,57,43,.08); border-color: rgba(192,57,43,.3); }
.queue-card.qc-error   .qc-status { color: #c0392b; font-weight: 700; }
.queue-card.qc-error   .qc-bar    { background: var(--danger); }
.queue-card.qc-skip    .qc-status { color: var(--text-muted); }
.queue-card.qc-skip    .qc-bar    { background: var(--text-muted); }
.queue-card.qc-uploading .qc-status { color: var(--salmon); font-weight: 600; }

/* Hide-done filter */
.upload-queue.hide-done .queue-card.qc-done,
.upload-queue.hide-done .queue-card.qc-skip { display: none; }

/* Legacy single-item status classes */
.status-done      { color: var(--success); }
.status-error     { color: var(--danger); }
.status-skip      { color: var(--text-muted); }
.status-uploading { color: var(--salmon); }

/* ── Bookings ────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.booking-list { display: flex; flex-direction: column; gap: 16px; }
.booking-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; border-left: 3px solid var(--border);
  box-shadow: 0 1px 4px rgba(30,27,24,.04);
}
.booking-card.status-new       { border-left-color: var(--warn); }
.booking-card.status-booked    { border-left-color: var(--success); }
.booking-card.status-declined  { border-left-color: var(--danger); }
.booking-header { display: flex; justify-content: space-between; margin-bottom: 16px; }
.booking-details {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; font-size: 13px; margin-bottom: 16px;
}
.booking-details label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); display: block; margin-bottom: 2px; font-weight: 700; }
.booking-message { grid-column: 1/-1; }
.status-form { display: flex; gap: 8px; align-items: center; }
.status-form select {
  padding: 8px 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 13px;
  font-family: var(--font);
}

/* ── Portfolio category ──────────────────────────────────── */
.portfolio-category { margin-bottom: 32px; }
.portfolio-cat-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.portfolio-cat-header h3 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-muted); margin: 0; font-weight: 700;
}
.cat-count { font-weight: 400; }
.dnd-hint {
  font-size: 11px; color: var(--text-muted); letter-spacing: .3px;
  opacity: .6;
}

/* Portfolio drag-and-drop tile states */
.photo-item[draggable="true"] { cursor: grab; }
.photo-item[draggable="true"]:active { cursor: grabbing; }
.photo-item.dnd-dragging { opacity: .2; }
@keyframes dnd-saved-flash {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  40%       { box-shadow: 0 0 0 3px var(--salmon); }
}
.photo-item.dnd-saved { animation: dnd-saved-flash .65s ease; }

/* Gallery admin drag-drop */
.photo-item.dragging { opacity: .25; }
.photo-item.drag-over { outline: 2px solid var(--salmon); outline-offset: 2px; }

/* Bulk select */
.photo-item.bulk-selected { outline: 2px solid var(--salmon); outline-offset: 2px; }
.photo-bulk-cb {
  position: absolute; top: 6px; left: 6px;
  width: 16px; height: 16px; cursor: pointer;
  accent-color: var(--salmon);
}
.bulk-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; flex-wrap: wrap;
}
.bulk-select-all-label { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.bulk-select-all-label input { cursor: pointer; accent-color: var(--salmon); }

/* Drag hint */
.drag-hint { font-size: 12px; color: var(--text-muted); letter-spacing: .3px; }

/* ── Quick actions ───────────────────────────────────────── */
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.quick-action-btn {
  padding: 12px 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--accent); font-size: 14px; font-weight: 600;
  transition: background var(--transition), border-color var(--transition); cursor: pointer;
  font-family: var(--font);
}
.quick-action-btn:hover { background: var(--surface2); border-color: var(--salmon); color: var(--salmon); }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 32px; }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; }
.empty-msg { color: var(--text-muted); font-size: 13px; padding: 20px; }

/* ── Download status bar (gallery-view) ──────────────────── */
.dl-status-bar {
  position: sticky; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--text); color: #fff;
  padding: 0 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease, background .3s ease;
  font-size: 13px;
}
.dl-status-bar.dl-visible { max-height: 68px; padding: 12px 20px; }
.dl-status-bar.dl-done  { background: var(--success); }
.dl-status-bar.dl-error { background: var(--danger); }
.dl-status-top  { display: flex; align-items: center; gap: 10px; }
.dl-status-icon { font-size: 1.1rem; flex-shrink: 0; }
.dl-status-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-status-msg  { font-size: 13px; font-weight: 600; color: #fff; }
.dl-status-sub  { font-size: 11px; color: rgba(255,255,255,.75); min-height: 1em; }
.dl-status-timer { font-size: 12px; color: rgba(255,255,255,.75); white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.dl-status-track { height: 3px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
.dl-status-fill {
  height: 100%; width: 35%; background: #fff; border-radius: 2px;
  animation: admin-dl-slide 1.6s ease-in-out infinite;
  transition: width .5s ease;
}
@keyframes admin-dl-slide {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}
.dl-status-bar.dl-pct .dl-status-fill { animation: none; width: var(--dl-pct, 0%); }
.dl-status-bar.dl-done  .dl-status-fill,
.dl-status-bar.dl-error .dl-status-fill { animation: none; width: 100%; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .booking-details { grid-template-columns: repeat(2,1fr); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-content { padding: 16px; }
}
