/* All Eyes on Us Uganda — Modern Admin Dashboard Theme */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --deep: #001712;
  --deep2: #00251c;
  --lime: #d5f34c;
  --lime-glow: rgba(213, 243, 76, 0.25);
  --ink: #102923;
  --muted: #687a72;
  --paper: #f4f7f3;
  --line: #dfe8e1;
  --white: #fff;
  --red: #b43d35;
  --shadow: 0 4px 20px rgba(0, 35, 28, 0.08);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  padding: 30px 20px;
  background: var(--deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 5;
  box-shadow: 4px 0 25px rgba(0,0,0,0.15);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 40px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--lime); border-radius: 50%; color: var(--lime); font-size: 24px; background: rgba(213,243,76,0.05); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 13px; letter-spacing: 0.3px; }
.brand small { color: var(--lime); font-size: 10px; letter-spacing: 2px; margin-top: 4px; }

.side-label { font-size: 10px; color: #8eaaa0; letter-spacing: 2px; font-weight: 700; padding: 0 12px; margin-bottom: 8px; }
.side-link { padding: 12px 14px; border-radius: 10px; color: #d7e3dc; font-weight: 600; margin: 4px 0; transition: 0.2s; }
.side-link.active, .side-link:hover { background: rgba(255,255,255,0.08); color: var(--lime); }

.side-note {
  margin-top: auto;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 16px;
  color: #e3eee7;
  font-size: 12px;
}
.side-note small { display: inline-block; color: #a7bdb2; line-height: 1.5; margin: 6px 0 0 15px; }
.status-dot { display: inline-block; width: 8px; height: 8px; background: var(--lime); border-radius: 50%; margin-right: 6px; box-shadow: 0 0 8px var(--lime); }

.main { margin-left: 260px; padding: 40px clamp(24px, 4vw, 60px) 30px; max-width: 1700px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { font-size: 10px; letter-spacing: 2.5px; color: #00563f; font-weight: 800; margin: 0 0 6px; text-transform: uppercase; }
.topbar h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.8px; margin: 0; font-weight: 800; }
.subtitle { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.view-site { background: var(--deep2); color: var(--lime); border-radius: 30px; padding: 12px 20px; font-size: 12px; font-weight: 800; white-space: nowrap; border: 1px solid rgba(213,243,76,0.3); transition: 0.2s; }
.view-site:hover { background: var(--deep); box-shadow: 0 4px 15px var(--lime-glow); }

.notice { border: 1px solid #e7dba2; background: #fffdf4; color: #655525; padding: 16px 20px; border-radius: 12px; font-size: 13px; margin-bottom: 25px; box-shadow: var(--shadow); }
.notice strong { color: #493d0b; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; background: #edf8ce; color: #315a13; display: grid; place-items: center; font-size: 20px; }
.stat-label { display: block; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat strong { font-size: 22px; line-height: 1.2; font-weight: 800; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.toolbar h2 { font-size: 20px; margin: 0; font-weight: 800; }
.toolbar p { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.search-box { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; color: var(--muted); min-width: 260px; box-shadow: var(--shadow); }
.search-box input { border: 0; outline: 0; padding: 12px 0; width: 100%; background: transparent; font-size: 13px; color: var(--ink); }

.image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.image-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; box-shadow: var(--shadow); transition: 0.2s; }
.image-card:hover { border-color: #b5c9bd; box-shadow: 0 8px 30px rgba(0,35,28,0.12); }
.preview { height: 180px; background: #e9efea; position: relative; overflow: hidden; display: grid; place-items: center; }
.preview img { width: 100%; height: 100%; object-fit: cover; display: none; }
.preview.has-image img { display: block; }
.preview.has-image .empty-state { display: none; }
.empty-state { display: flex; align-items: center; flex-direction: column; color: #829189; font-size: 12px; gap: 4px; }
.empty-state span { width: 40px; height: 40px; border: 1px dashed #9dad9f; border-radius: 50%; display: grid; place-items: center; font-size: 22px; margin-bottom: 4px; }
.empty-state b { color: #4d6257; font-size: 13px; }
.image-badge { position: absolute; top: 12px; left: 12px; border-radius: 6px; background: rgba(0, 41, 31, 0.85); color: var(--lime); padding: 5px 8px; font-size: 9px; font-weight: 800; letter-spacing: 1px; backdrop-filter: blur(4px); }

.card-body { padding: 18px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-heading h3 { font-size: 15px; margin: 0; font-weight: 700; }
.filename { font-size: 11px; color: var(--muted); margin: 6px 0 0; overflow-wrap: anywhere; }
.slot-status { flex-shrink: 0; background: #edf0ed; color: #65746b; border-radius: 20px; padding: 5px 10px; font-size: 10px; font-weight: 700; }
.slot-status.ready { background: #e9f8d1; color: #3c6818; }
.hint { font-size: 12px; color: #52655a; min-height: 38px; margin: 12px 0; }
.card-actions { display: flex; align-items: center; gap: 10px; }
.upload-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--deep2); color: white; border-radius: 8px; padding: 10px 14px; font-size: 12px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.upload-button:hover { background: #07533e; }
.file-input { display: none; }
.remove-button, .danger-button { border: 1px solid var(--line); background: #fff; color: #607168; border-radius: 8px; padding: 9px 12px; font-size: 12px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.remove-button:disabled { opacity: 0.4; cursor: not-allowed; }
.remove-button:not(:disabled):hover { border-color: #e5b6b2; color: var(--red); background: #fff9f8; }
.danger-button { color: var(--red); border-color: #e9c7c4; }
.danger-button:hover { background: #fff1ef; }

.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid var(--line); margin-top: 35px; padding-top: 20px; color: var(--muted); font-size: 12px; }
.no-results { grid-column: 1/-1; padding: 50px; text-align: center; color: var(--muted); background: #fff; border-radius: 14px; border: 1px dashed var(--line); }

@media(max-width: 1200px) {
  .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main { margin-left: 220px; padding-inline: 28px; }
  .sidebar { width: 220px; }
}
@media(max-width: 760px) {
  .sidebar { position: static; width: auto; padding: 16px 20px; display: block; }
  .brand { padding: 0; }
  .side-label, .side-link, .side-note { display: none; }
  .main { margin: 0; padding: 24px 16px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .image-grid { grid-template-columns: 1fr; gap: 14px; }
  .toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .search-box { width: 100%; }
  .page-footer { align-items: flex-start; flex-direction: column; }
}


