/* ============================================================
   EduVanta Global - Admin Panel Stylesheet
   File: admin/css/admin.css
   ============================================================ */

:root {
  --bg:         #0d1117;
  --surface:    #161b22;
  --surface2:   #1c2230;
  --border:     #30363d;
  --gold:       #c9973a;
  --gold2:      #e8b96a;
  --green:      #3fb950;
  --red:        #f85149;
  --blue:       #58a6ff;
  --text:       #e6edf3;
  --muted:      #8b949e;
  --radius:     12px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  --shadow:     0 4px 20px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── LOGIN SCREEN ── */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
#login-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(201,151,58,0.12), transparent),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(88,166,255,0.07), transparent);
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.login-logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-logo-icon i { font-size: 22px; color: #0d1117; }
.login-logo-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.login-logo-name span { color: var(--gold); }
.login-logo-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}
.login-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.login-sub { font-size: 14px; color: var(--muted); margin-bottom: 32px; }

.login-error {
  background: rgba(248,81,73,0.1);
  border: 1px solid rgba(248,81,73,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 8px;
}
.login-hint {
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(201,151,58,0.07);
  border: 1px solid rgba(201,151,58,0.15);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
}
.login-hint strong { color: var(--gold); }

.btn-login {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius);
  background: var(--gold);
  color: #0d1117;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-login:hover {
  background: var(--gold2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,151,58,0.35);
}

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  transition: var(--transition);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,151,58,0.1);
}
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.input-wrap { position: relative; }
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
}
.input-wrap .form-input { padding-left: 40px; }

/* ── ADMIN APP LAYOUT ── */
#admin-app { display: none; min-height: 100vh; }

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 256px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: var(--transition);
}
.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; }
.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-logo-icon i { font-size: 17px; color: #0d1117; }
.sidebar-logo-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.sidebar-logo-name span { color: var(--gold); }
.sidebar-badge {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 8px 6px;
  margin-top: 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
}
.sidebar-link i { width: 18px; font-size: 15px; }
.sidebar-link:hover { background: var(--surface2); color: var(--text); }
.sidebar-link.active { background: rgba(201,151,58,0.12); color: var(--gold); }
.sidebar-link .badge {
  margin-left: auto;
  background: var(--gold);
  color: #0d1117;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface2);
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #0d1117;
  font-weight: 700;
  flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 600; }
.user-role { font-size: 11px; color: var(--muted); }
.logout-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}
.logout-btn:hover { color: var(--red); }

/* Main Content */
.main-content {
  margin-left: 256px;
  min-height: 100vh;
  background: var(--bg);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Sans', sans-serif;
}
.topbar-btn.primary { background: var(--gold); color: #0d1117; }
.topbar-btn.primary:hover { background: var(--gold2); }
.topbar-btn.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.topbar-btn.outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── PANELS ── */
.panel { display: none; padding: 28px; }
.panel.active { display: block; }

/* ── DASHBOARD STATS ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.stat-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.stat-card-icon.gold  { background: rgba(201,151,58,0.12); color: var(--gold); }
.stat-card-icon.green { background: rgba(63,185,80,0.12); color: var(--green); }
.stat-card-icon.blue  { background: rgba(88,166,255,0.12); color: var(--blue); }
.stat-card-icon.red   { background: rgba(248,81,73,0.12); color: var(--red); }
.stat-card-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 30px;
  font-weight: 700;
}
.stat-card-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dash-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-card-header h3 { font-size: 15px; font-weight: 700; }
.dash-card-body { padding: 16px 20px; }

.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 10px;
}
.quick-action:hover { border-color: var(--gold); background: rgba(201,151,58,0.05); }
.quick-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(201,151,58,0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.quick-action-text strong { display: block; font-size: 13px; }
.quick-action-text span { font-size: 12px; color: var(--muted); }
.quick-action-arrow { margin-left: auto; color: var(--muted); font-size: 12px; }

/* ── TABLE ── */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.table-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.table-header h2 { font-size: 17px; font-weight: 700; }
.search-wrap { position: relative; }
.search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
}
.search-input {
  padding: 8px 14px 8px 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
  width: 220px;
}
.search-input:focus { border-color: var(--gold); }

table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
tbody tr { transition: var(--transition); }
tbody tr:hover { background: var(--surface2); }
tbody td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(48,54,61,0.5);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
.td-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.td-name { font-weight: 600; font-size: 13px; }
.td-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── BADGES ── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 600; }
.badge.active   { background: rgba(63,185,80,0.15); color: var(--green); }
.badge.inactive { background: rgba(248,81,73,0.12); color: var(--red); }
.badge.subject  { background: rgba(201,151,58,0.12); color: var(--gold); }

/* ── ACTION BUTTONS ── */
.action-btns { display: flex; gap: 6px; }
.action-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.action-btn.edit:hover { border-color: var(--blue); color: var(--blue); }
.action-btn.del:hover  { border-color: var(--red); color: var(--red); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state i { font-size: 48px; color: var(--border); margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 16px; margin-bottom: 6px; color: var(--muted); }
.empty-state p  { font-size: 13px; color: var(--border); }

/* ── SERVICE ADMIN CARDS ── */
.service-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px;
}
.service-admin-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.service-admin-card:hover { border-color: var(--gold); }
.service-admin-card-img { height: 140px; overflow: hidden; background: var(--bg); }
.service-admin-card-img img { width: 100%; height: 100%; object-fit: cover; }
.no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--border);
}
.service-admin-card-body { padding: 16px; }
.service-admin-card-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.service-admin-card-body p { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.service-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.service-card-actions { display: flex; gap: 8px; }
.sca-btn {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: 'DM Sans', sans-serif;
}
.sca-btn.edit:hover { border-color: var(--blue); color: var(--blue); }
.sca-btn.del:hover  { border-color: var(--red); color: var(--red); }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-title { font-size: 20px; font-weight: 700; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { border-color: var(--red); color: var(--red); }

.form-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.btn-cancel {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-cancel:hover { border-color: var(--red); color: var(--red); }
.btn-save {
  padding: 10px 24px;
  border-radius: 8px;
  background: var(--gold);
  color: #0d1117;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}
.btn-save:hover { background: var(--gold2); }

/* ── IMAGE UPLOAD WIDGET ── */
.img-upload-wrap {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  background: var(--bg);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.img-upload-wrap:hover { border-color: var(--gold); background: rgba(201,151,58,0.03); }
.img-upload-preview { width: 100%; max-height: 180px; object-fit: cover; display: block; }
.img-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
}
.img-upload-placeholder i { font-size: 28px; color: var(--border); margin-bottom: 4px; }
.img-upload-placeholder span { font-size: 13px; font-weight: 600; }
.img-upload-placeholder small { font-size: 11px; color: var(--border); }
.img-upload-change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: rgba(201,151,58,0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.img-upload-change:hover { background: rgba(201,151,58,0.2); }

/* ── PRICING ROW ── */
.pricing-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.pricing-tier-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; }
.pricing-tier-label.popular { color: var(--gold); }

/* ── CONFIRM MODAL ── */
.confirm-modal { max-width: 380px; text-align: center; }
.confirm-icon  { font-size: 48px; color: var(--red); margin-bottom: 16px; }
.confirm-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.confirm-msg   { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

/* ── TOAST ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  min-width: 260px;
}
@keyframes toastIn { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
.toast.success { border-left: 3px solid var(--green); }
.toast.success i { color: var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.error   i { color: var(--red); }

/* ── SETTINGS ── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.settings-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-card h3 i { color: var(--gold); font-size: 14px; }

/* ── MOBILE HAMBURGER ── */
.hamburger-admin {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .hamburger-admin { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .pricing-row { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .topbar { padding: 0 16px; }
}

/* ── Image Filename Input Styles ── */
.img-filename-hint {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(201,151,58,0.07);
  border: 1px solid rgba(201,151,58,0.18);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
}
.img-filename-hint i { color: var(--gold); margin-top: 1px; flex-shrink: 0; }
.img-filename-hint code {
  background: rgba(255,255,255,0.07);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--gold);
  font-size: 11px;
}
.img-filename-preview {
  display: none;
  margin-top: 10px;
  max-height: 120px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  width: 100%;
}

/* ══════════════════════════════════════════════
   IMAGE UPLOAD WIDGET — Supabase Storage
══════════════════════════════════════════════ */
.img-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}
.img-upload-zone:hover {
  border-color: var(--gold);
  background: rgba(201,151,58,0.03);
}

/* Empty state (no image yet) */
.img-upload-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  text-align: center;
  flex: 1;
}
.img-upload-icon { font-size: 32px; color: var(--border); }
.img-upload-text { font-size: 13px; font-weight: 600; color: var(--muted); }
.img-upload-hint { font-size: 11px; color: var(--border); }

/* Preview (image uploaded) */
.img-upload-preview-wrap {
  position: relative;
  flex: 1;
}
.img-upload-preview-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}
.img-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
}
.img-upload-zone:hover .img-upload-overlay {
  background: rgba(0,0,0,0.45);
  opacity: 1;
}

/* Progress bar */
.img-upload-progress {
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0;
}
.img-upload-progress-inner {
  height: 100%;
  background: var(--gold);
  animation: uploadPulse 1.2s ease-in-out infinite;
  border-radius: 2px;
  width: 60%;
}
@keyframes uploadPulse {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* Status messages */
.img-upload-status {
  font-size: 11px;
  padding: 6px 12px;
  min-height: 24px;
  text-align: center;
}
.img-upload-status-success { color: var(--green); }
.img-upload-status-error   { color: var(--red); }
.img-upload-status-info    { color: var(--muted); }
