/* manager.css — gedeelde stijl voor de Manager Tools-PWA.
 * Zelfde "liquid glass groen"-stijl als de beta-pagina's (zonder gifs).
 * Gebruikt --status-bar-h zodat platform.js de iOS-notch-positie regelt. */

:root {
  --status-bar-h: 0px;
  --groen-glas:   rgba(0, 163, 0, 0.78);
  --glas-blur:    blur(36px) saturate(2.0);
  --glas-rand:    rgba(255, 255, 255, 0.42);
  --glas-schaduw: 0 10px 28px rgba(0,90,20,0.14), 0 1px 0 rgba(255,255,255,0.18) inset, 0 -1px 0 rgba(0,0,0,0.08) inset;
  --ink:          #16301d;
  --ink-zacht:    #51694f;
  --brand:        #00c300;
  --font-ui:      'Inter Tight', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-ui); -webkit-tap-highlight-color: transparent; }
html { height: 100%; overflow: hidden; background: #eae9ec; }
body {
  height: 100%; background: #eae9ec; color: var(--ink);
  display: flex; flex-direction: column; position: relative;
  padding-top: calc(62px + var(--status-bar-h));
  padding-bottom: 0;
}

/* ===== HEADER (zwevend groen glass) ===== */
.m-header {
  position: fixed; z-index: 100;
  top: calc(-14px + var(--status-bar-h)); left: 10px; right: 10px; height: 58px;
  background: var(--groen-glas);
  backdrop-filter: var(--glas-blur); -webkit-backdrop-filter: var(--glas-blur);
  border: 1px solid var(--glas-rand); border-radius: 20px;
  box-shadow: var(--glas-schaduw); color: #fff;
  display: flex; align-items: center; padding: 0 10px; gap: 10px; overflow: hidden;
}
.m-header-center {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; z-index: 1; pointer-events: none;
}
.m-header-title { font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: -0.2px; }
.m-header-btn {
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.25); border-radius: 10px;
  width: 40px; height: 40px; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  position: relative; z-index: 2; font-size: 1.1rem;
}
.m-header-btn:active { background: rgba(255,255,255,0.30); transform: scale(0.94); }
.m-header-btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-header-right { margin-left: auto; display: flex; gap: 8px; z-index: 2; }

/* ===== INHOUD ===== */
.m-inhoud {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(28px + env(safe-area-inset-bottom));
  max-width: 720px; margin: 0 auto; width: 100%;
}
.m-sectie-titel { font-size: 0.78rem; font-weight: 800; color: var(--ink-zacht); text-transform: uppercase; letter-spacing: 0.08em; margin: 6px 4px 10px; }

/* ===== TOOL-CARDS ===== */
.m-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.m-card {
  background: #fff; border-radius: 18px; padding: 18px 14px; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06); border: 1px solid #eef0ee;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  transition: transform 0.1s, box-shadow 0.1s;
}
.m-card:active { transform: scale(0.97); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.m-card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #e7faea, #d2f3d8); font-size: 1.8rem;
}
.m-card-icon img { width: 34px; height: 34px; object-fit: contain; }
.m-card-titel { font-size: 0.92rem; font-weight: 800; color: var(--ink); }
.m-card-sub { font-size: 0.72rem; color: #8a9a88; line-height: 1.3; }

/* ===== FOOTER (zwevend groen glass pill) ===== */
.m-footer {
  position: fixed; z-index: 55;
  bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; right: 10px; height: 46px;
  background: var(--groen-glas);
  backdrop-filter: var(--glas-blur); -webkit-backdrop-filter: var(--glas-blur);
  border: 1px solid var(--glas-rand); border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,90,20,0.16), 0 1px 0 rgba(255,255,255,0.18) inset, 0 -1px 0 rgba(0,0,0,0.08) inset;
  display: flex; align-items: center; justify-content: center; padding: 0 16px;
  color: #fff; font-size: 0.8rem; font-weight: 600;
}
/* pagina's met footer reserveren ruimte onderaan in .m-inhoud */
body.heeft-footer .m-inhoud { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }

/* ===== KNOPPEN / FORMULIEREN ===== */
.m-btn {
  width: 100%; padding: 14px; border: none; border-radius: 12px; cursor: pointer;
  font-size: 1rem; font-weight: 800; font-family: inherit;
  background: var(--brand); color: #fff;
}
.m-btn:active { transform: scale(0.98); }
.m-btn[disabled] { opacity: 0.6; cursor: default; }
.m-btn-grijs { background: #eef0ee; color: var(--ink); }
.m-btn-rood { background: #cc0000; color: #fff; }
.m-link { background: none; border: none; color: var(--brand); font-weight: 700; cursor: pointer; text-decoration: underline; font-family: inherit; font-size: 0.9rem; }
.m-input {
  width: 100%; padding: 13px 14px; border: 1px solid #d7ddd6; border-radius: 12px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--ink); margin-bottom: 10px;
  -webkit-appearance: none; appearance: none;
}
.m-input:focus { outline: none; border-color: var(--brand); }
.m-fout { color: #e53; font-size: 0.82rem; font-weight: 700; min-height: 16px; }
.m-ok { color: #0a8a3a; font-size: 0.82rem; font-weight: 700; }

/* ===== LOGIN / CENTRALE KAART ===== */
.m-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 22px; }
.m-card-groot {
  background: #fff; border-radius: 22px; width: 100%; max-width: 380px; padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18); text-align: center;
}
.m-logo-badge {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; display: block;
  box-shadow: 0 6px 18px rgba(0,120,30,0.25);
}
.m-titel { font-size: 1.4rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.m-sub { font-size: 0.88rem; color: var(--ink-zacht); line-height: 1.45; margin-bottom: 20px; }

/* ===== OVERLAYS ===== */
.m-loader { position: fixed; inset: 0; background: #eae9ec; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.m-spinner { width: 44px; height: 44px; border: 5px solid #ccc; border-top-color: var(--brand); border-radius: 50%; animation: m-spin 0.8s linear infinite; }
@keyframes m-spin { to { transform: rotate(360deg); } }
.m-geentoegang { position: fixed; inset: 0; background: #eae9ec; z-index: 9998; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 30px; }

.m-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9500; display: none; align-items: center; justify-content: center; padding: 22px; }
.m-popup-overlay.open { display: flex; }
.m-popup { background: #fff; border-radius: 20px; width: 100%; max-width: 380px; padding: 24px 22px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.m-popup-titel { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.m-popup-sub { font-size: 0.84rem; color: var(--ink-zacht); line-height: 1.45; margin-bottom: 16px; }

.m-toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #16301d; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 0.86rem; font-weight: 700; z-index: 9700; opacity: 0; transition: opacity 0.2s; pointer-events: none; max-width: 90vw; text-align: center; }
.m-toast.zien { opacity: 1; }
