/* Reindriftsverktøy 2.0 — Teal/Orange Theme (kartlogg.no design) */

:root {
  --bg: #f8fafc; --bg-card: #ffffff; --bg-elevated: #ffffff;
  --bg-input: #ffffff; --bg-hover: #f1f5f9; --bg2: #f1f5f9;
  --primary: #0f766e; --primary-dark: #0d5f59; --primary-light: #ccfbf1;
  --accent: #f97316; --accent-light: #fff7ed;
  --success: #059669; --success-bg: #d1fae5;
  --warning: #d97706; --warning-bg: #fef3c7;
  --danger: #dc2626; --danger-bg: #fee2e2;
  --text: #0f172a; --text2: #475569; --text3: #94a3b8;
  --border: #e2e8f0; --border-focus: #0f766e;
  --radius: 12px; --radius-sm: 8px; --radius-full: 100px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }

/* Offline banner */
.offline-banner { background: var(--warning); color: #fff;
  padding: 8px 16px; text-align: center; font-size: .78rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Header */
.app-header { background: var(--primary); color: white;
  padding: 12px 16px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
  min-height: 56px; box-shadow: 0 2px 5px rgba(0,0,0,.2); }
.header-left { display: flex; align-items: center; gap: 12px; }
.header-title { font-size: 1.1rem; font-weight: 700; color: white; }
.header-back { background: none; border: none; color: rgba(255,255,255,.8); font-size: 1.1rem; cursor: pointer;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); transition: .15s; }
.header-back:active { background: rgba(255,255,255,.15); }
.header-right { display: flex; align-items: center; gap: 10px; }
.header-user { font-size: .75rem; color: rgba(255,255,255,.7); }
.header-icon { background: none; border: none; color: rgba(255,255,255,.8); font-size: 1.05rem; cursor: pointer;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); transition: .15s; }
.header-icon:active { background: rgba(255,255,255,.15); }

/* Tab bar */
.tab-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
  border-top: 1px solid var(--border); display: flex; z-index: 100;
  padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -1px 5px rgba(0,0,0,.05); }
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px 8px; font-size: .62rem; font-weight: 600; color: var(--text3);
  text-decoration: none; cursor: pointer; border: none; background: none; transition: .15s;
  text-transform: uppercase; letter-spacing: .3px; }
.tab-item.active { color: var(--primary); }
.tab-item .tab-icon { font-size: 1.2rem; line-height: 1; }

/* Container */
.page-content { padding: 15px; padding-bottom: 90px; max-width: 600px; margin: 0 auto; }

/* Cards */
.card { background: var(--bg-card); border-radius: var(--radius);
  padding: 15px; margin-bottom: 10px; box-shadow: var(--shadow);
  border: none; }
/* Ingen :active scale på skjemakort — bare på klikkbare listekort */

/* Simle list card — nytt design (besøk-teller venstre, badge høyre) */
.simle-list-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 14px 15px; margin-bottom: 8px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: .15s; border: none;
}
.simle-list-card:active { transform: scale(.985); }
.slc-visits {
  display: flex; flex-direction: column; align-items: center;
  min-width: 42px; text-align: center;
}
.slc-visits-num {
  font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1.1;
}
.slc-visits-lbl {
  font-size: .52rem; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .5px; margin-top: 1px;
}
.slc-info { flex: 1; min-width: 0; }
.slc-id { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.slc-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 3px; }
.slc-date { font-size: .66rem; color: var(--text3); }
.slc-badge { flex-shrink: 0; }

/* Beholdes for backward compat */
.simle-id { font-size: 1.1rem; font-weight: bold; color: var(--text); }
.simle-meta { font-size: .78rem; color: var(--text3); display: flex; align-items: center; gap: 6px; }
.simle-center { text-align: center; min-width: 50px; }
.simle-visits { font-size: 1.1rem; font-weight: 700; color: var(--primary); line-height: 1; }
.simle-visits-label { font-size: .55rem; color: var(--text3); text-transform: uppercase; }
.simle-right { display: flex; align-items: center; gap: 6px; }

/* Drag-and-drop boks */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  color: var(--text3);
  font-size: .82rem;
  cursor: pointer;
  transition: .15s;
  background: var(--bg);
  margin-top: 4px;
}
.drop-zone::before {
  content: '📂';
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.drop-zone.drop-over {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb, 16,185,129), .07);
  color: var(--primary);
}
.drop-zone.drop-over::before { content: '⬇️'; }

/* Badges */
.badge { padding: 5px 10px; border-radius: var(--radius-full); font-size: .75rem; font-weight: bold; }
.badge-ok { background: var(--success-bg); color: var(--success); }
.badge-warn { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--accent-light); color: var(--accent); }
.badge-neutral { background: #f0f0f0; color: var(--text3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border: none; border-radius: var(--radius-sm); font-family: inherit;
  font-size: .9rem; font-weight: bold; cursor: pointer; transition: .15s; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: #f0f0f0; color: var(--text2); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: transparent; color: var(--text3); }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .78rem; }
.btn-fab { position: fixed; bottom: 80px; right: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(249,115,22,.35); z-index: 150; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.btn-fab:active { transform: scale(.9); }

/* Form elements */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .8rem; font-weight: 600; color: var(--text2);
  margin-bottom: 6px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 14px; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text);
  font-family: inherit; font-size: .9rem; outline: none; transition: .2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.form-input::placeholder { color: #aaa; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23777' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-file { padding: 12px; background: #fff; border: 2px dashed #ccc;
  border-radius: var(--radius-sm); color: var(--text3); font-size: .82rem; width: 100%; cursor: pointer; }
.form-file::-webkit-file-upload-button { background: var(--primary); color: #fff; border: none;
  padding: 6px 14px; border-radius: 6px; font-weight: 600; cursor: pointer; margin-right: 10px; }

/* Radio group */
.radio-group { display: flex; gap: 10px; }
.radio-option { flex: 1; position: relative; }
.radio-option input { position: absolute; opacity: 0; pointer-events: none; }
.radio-option span { display: block; padding: 15px; text-align: center; background: #eee;
  border-radius: var(--radius-sm); font-weight: bold;
  cursor: pointer; transition: .15s; color: var(--text); border: none; }
.radio-option input:checked + span { background: var(--primary); color: white; }

/* Search */
.search-row { display: flex; gap: 8px; margin-bottom: 14px; }
.search-box { flex: 1; position: relative; }
.search-box input { width: 100%; padding: 12px 14px 12px 40px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text);
  font-family: inherit; font-size: .88rem; outline: none; box-shadow: var(--shadow); }
.search-box input:focus { border-color: var(--primary); }
.search-box::before { content: '🔍'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: .85rem; pointer-events: none; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 14px 8px;
  text-align: center; box-shadow: var(--shadow); }
.stat-card.primary { background: var(--primary); }
.stat-card.primary .stat-val, .stat-card.primary .stat-lbl { color: #fff; }
.stat-val { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-lbl { font-size: .6rem; color: var(--text3); text-transform: uppercase; letter-spacing: .5px;
  font-weight: 600; margin-top: 3px; }

/* Info panel */
.info-panel { background: #fff; border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.panel-title { font-size: .9rem; font-weight: bold; margin-bottom: 10px; display: flex;
  align-items: center; gap: 8px; }

/* Gallery */
.gallery { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery-item { flex-shrink: 0; width: 120px; height: 120px; border-radius: var(--radius-sm);
  overflow: hidden; position: relative; cursor: pointer; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-tag { position: absolute; bottom: 6px; left: 6px; font-size: .55rem; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff;
  text-transform: uppercase; }

/* Map */
.map-container { height: 300px; border-radius: var(--radius); overflow: hidden;
  border: 2px solid #ddd; margin-bottom: 14px; }
.map-container.small { height: 180px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 200; display: flex; align-items: center;
  justify-content: center; padding: 20px; animation: fadeIn .15s; }
.modal-box { background: #fff; border-radius: var(--radius); padding: 24px;
  width: 100%; max-width: 400px; animation: slideUp .2s; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* Image modal */
.img-modal { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 300;
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.img-modal img { max-width: 95%; max-height: 90vh; object-fit: contain; border-radius: 8px; }

/* Modal (generell) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9000;
  display: flex; align-items: flex-end; justify-content: center; padding: 0 0 20px;
}
.modal-box {
  background: var(--bg-card); border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 20px 16px; width: 100%; max-width: 480px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.2); animation: slideInUp .22s ease;
}
.modal-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
@keyframes slideInUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* badge-danger (rødt) */
.badge-danger { background: var(--danger-bg,#fee2e2); color: var(--danger,#ef4444); }

/* history img caption */
.history-img-caption { font-size:.68rem; color:var(--text3); margin-top:3px; font-style:italic; }


/* Toast */
#toast-container { position: fixed; top: 70px; right: 16px; z-index: 500; display: flex;
  flex-direction: column; gap: 8px; }
.toast { padding: 12px 18px; border-radius: var(--radius-sm); font-size: .82rem; font-weight: 500;
  color: #fff; animation: slideIn .2s; min-width: 200px; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--accent); }
@keyframes slideIn { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:translateX(0)} }

/* Login page — exact kartlogg.no design */
.login-page { display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100dvh; padding: 20px; }
.login-card.card { width: 100%; max-width: 340px; background: var(--bg-card);
  border: 1px solid var(--border); padding: 28px 22px; border-radius: 20px;
  text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.03); }
.login-logo { width: 90px; height: 90px; margin: 0 auto 12px; display: block; }
.login-title { text-align: center; font-size: 1.2rem; font-weight: 700;
  color: var(--text); margin-bottom: 2px; }
.login-subtitle { text-align: center; color: var(--text3); font-size: .8rem; margin-bottom: 20px; }
.login-form { display: flex; flex-direction: column; gap: 10px; }
.input-group { position: relative; }
.input-group i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text3); font-size: .85rem; }
.input-group input { width: 100%; padding: 12px 12px 12px 40px; background: #f1f5f9;
  border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  font-size: 16px; font-family: inherit; height: 48px; outline: none; transition: .2s; }
.input-group input:focus { border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(15,118,110,.1); }
.input-group:focus-within i { color: var(--primary); }
.input-group input::placeholder { color: var(--text3); }
.login-btn { margin-top: 6px; height: 48px; width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #14b8a6 100%);
  color: white; border: none; border-radius: 12px; font-size: .95rem;
  font-weight: 600; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.login-btn:active { opacity: .9; }
.brand-footer { margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border); color: var(--text3); font-size: .7rem; }
.brand-footer p { margin: 0; }

/* Section headers */
.section-title { font-size: .8rem; font-weight: bold; color: var(--text3); text-transform: uppercase;
  letter-spacing: .5px; margin: 20px 0 10px; padding-left: 2px; }

/* Status display */
.status-display { display: flex; align-items: center; gap: 14px; }
.status-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.status-icon.ok { background: var(--success-bg); color: var(--success); }
.status-icon.warn { background: var(--warning-bg); color: var(--warning); }
.status-icon.danger { background: var(--danger-bg); color: var(--danger); }

/* Kalvemerking specific */
.km-event-card { border-left: 4px solid var(--accent); }
.km-nummer-input { display: flex; gap: 8px; margin-bottom: 12px; }
.km-nummer-input input { flex: 1; font-size: 1.2rem; text-align: center; font-weight: 700;
  letter-spacing: 2px; }
.km-claim-list { display: flex; flex-direction: column; gap: 6px; }
.km-claim { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px;
  background: #f9f9f9; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.km-conflict { border-color: var(--warning) !important; background: var(--warning-bg); }
.km-claim-nr { font-weight: 700; font-size: 1rem; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text3); }
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; opacity: .4; }
.empty-state-text { font-size: .9rem; }

/* Responsive */
@media (min-width: 768px) {
  .page-content { max-width: 600px; }
  .stats-grid { grid-template-columns: repeat(4,1fr); }
}

/* Sync indicator */
.sync-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .65rem;
  color: var(--warning); padding: 2px 8px; border-radius: var(--radius-full);
  background: var(--warning-bg); }

/* Loading spinner */
.spinner { width: 24px; height: 24px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%; animation: spin .6s linear infinite;
  margin: 0 auto; }
@keyframes spin { to{transform:rotate(360deg)} }

/* Detail page */
.panel-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.panel-header-row .panel-title { margin-bottom: 0; }

.status-row { display: flex; align-items: flex-start; gap: 14px; }
.status-icon-lg { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; font-weight: 800; flex-shrink: 0; }
.status-icon-lg.ok { background: var(--success-bg); color: var(--success); }
.status-icon-lg.warn { background: var(--warning-bg); color: var(--warning); }
.status-icon-lg.danger { background: var(--danger-bg); color: var(--danger); }
.status-details { flex: 1; }
.status-main-label { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.status-merknad { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--text2); }

.kalv-desc-box { background: #f9f9f9; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; }
.kalv-desc-title { font-size: .62rem; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.kalv-desc-color { font-size: .85rem; font-weight: 600; color: var(--text); }
.kalv-desc-traits { font-size: .78rem; color: var(--text2); font-style: italic; margin-top: 2px; }

/* History cards */
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-card { background: #fff; border-left: 4px solid var(--accent);
  border-radius: 4px; padding: 15px; box-shadow: var(--shadow); }
.history-card.history-original { border-left-color: var(--success); }
.history-card.history-warn { border-left-color: var(--warning); }
.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.history-date { font-size: .82rem; font-weight: bold; color: var(--text2); }
.history-user { font-size: .75rem; color: var(--text3); margin-bottom: 6px; }
.history-detail { font-size: .82rem; color: var(--text2); margin-bottom: 2px; }
.history-img { margin-top: 8px; border-radius: 5px; overflow: hidden;
  max-height: 200px; cursor: pointer; }
.history-img img { width: 100%; height: auto; max-height: 200px; object-fit: cover;
  display: block; border-radius: 5px; }

/* ── Lightbox (fullskjerm bildevisning) ── */
.media-lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.92); z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  animation: lbFadeIn .2s ease;
  cursor: pointer; /* klikk utenfor lukker */
}
.lb-inner {
  display: flex; flex-direction: column; align-items: center;
  max-width: 95vw; max-height: 95vh;
  cursor: default;
  position: relative;
}
.lb-media {
  max-width: 100%; max-height: 72vh; object-fit: contain;
  border-radius: 4px; box-shadow: 0 8px 40px rgba(0,0,0,.5);
  display: block;
}
.lb-caption-bar {
  width: 100%; background: rgba(0,0,0,.7); color: #fff;
  padding: 10px 14px; display: flex; align-items: center; gap: 10px;
  min-height: 44px; border-radius: 0 0 4px 4px;
  flex-wrap: wrap;
}
.lb-caption-text {
  flex: 1; font-size: .88rem; opacity: .9;
  font-style: italic;
}
.lb-edit-btn {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 6px; padding: 4px 10px;
  font-size: .78rem; cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.lb-edit-btn:hover { background: rgba(255,255,255,.28); }
.lb-caption-input {
  flex: 1; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; border-radius: 6px; padding: 6px 10px; font-size: .88rem;
  outline: none; min-width: 0;
}
.lb-caption-input::placeholder { color: rgba(255,255,255,.5); }
.lb-caption-save {
  background: var(--primary); border: none; color: #fff;
  border-radius: 6px; padding: 5px 12px; font-size: .78rem; cursor: pointer;
}
.lb-caption-cancel {
  background: none; border: 1px solid rgba(255,255,255,.3); color: #fff;
  border-radius: 6px; padding: 5px 10px; font-size: .78rem; cursor: pointer;
}
.media-lightbox .lb-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 1.6rem; color: #fff; cursor: pointer;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4); border-radius: 50%; border: none;
  z-index: 2; transition: background .2s;
}
.media-lightbox .lb-close:hover { background: rgba(255,255,255,.2); }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Bildetekst i lightbox ── */
.lb-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.7); color: #fff;
  padding: 10px 16px; font-size: .88rem; text-align: center;
  pointer-events: auto;
}
.lb-edit-caption {
  position: absolute; bottom: 46px; right: 16px;
  background: rgba(255,255,255,.2); border: none; border-radius: 8px;
  color: #fff; font-size: 1rem; padding: 6px 10px; cursor: pointer;
  transition: background .2s;
}
.lb-edit-caption:hover { background: rgba(255,255,255,.35); }

/* ── Gallery bildetekst (liten visning) ── */
.gallery-caption {
  display: block; font-size: .6rem; color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.5); padding: 2px 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; position: absolute; bottom: 22px; left: 0; right: 0;
}

/* ── Klikkbare stat-kort ── */
.stat-card { transition: transform .15s, box-shadow .15s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.stat-card:active { transform: scale(.97); }

/* ── Drag & Drop zone ── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  color: var(--text3);
  font-size: .82rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--bg2);
}
.drop-zone:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.drop-zone.drop-over { border-color: var(--accent); background: var(--accent-light); color: var(--accent);
  transform: scale(1.01); }

