/* Navstar Server Beheer — uniforme huisstijl, gelijk aan portal.navstar.nl:
   Inter voor tekst, Outfit voor koppen; blauw #0088ca, licht #f0f5fa.
   Fonts staan lokaal (fonts/), want de pagina laadt niets van buitenaf. */

@import url("fonts/fonts.css");

* { box-sizing: border-box; margin: 0; }
:root {
  --blauw: #0088ca; --blauw-donker: #006a9a;
  --achtergrond: #f0f5fa; --rand: #e2e8f0; --inkt: #1e293b;
  --inkt-zacht: #64748b; --wit: #ffffff;
  --goed: #2ecc71; --let-op: #f39c12; --fout: #ef4444;
  --zijbalk: #1b2733;
  --kop: "Outfit", "Segoe UI", sans-serif;
  --tekst: "Inter", "Segoe UI", sans-serif;
}
body {
  font-family: var(--tekst); background: var(--achtergrond);
  color: var(--inkt); min-height: 100vh;
  display: flex; flex-direction: column; line-height: 1.5;
}
h1, h2, h3 { font-family: var(--kop); }
.logo-img { height: 30px; width: auto; display: block; }

/* ==== Loginpagina (exact naar portal.navstar.nl) ==== */
.login-pagina { justify-content: center; align-items: center;
  padding: 2rem; overflow: hidden; position: relative; }
.merken-achtergrond { position: fixed; inset: 0; display: flex;
  flex-wrap: wrap; align-items: center; justify-content: space-around;
  gap: 4rem; padding: 4rem; pointer-events: none; z-index: 0; }
.merken-achtergrond img { width: 110px; opacity: .07;
  filter: grayscale(100%); }

.login-container { display: flex; background: var(--wit);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .05);
  width: 100%; max-width: 1100px; min-height: 650px;
  position: relative; z-index: 10; }

.login-formzijde { flex: 1; padding: 4rem 3.5rem; display: flex;
  flex-direction: column; justify-content: center; max-width: 520px;
  margin: 0 auto; width: 100%; }
.login-formzijde h1 { font-size: 2.3rem; font-weight: 800;
  color: var(--inkt); margin-bottom: .5rem; }
.intro-tekst { color: var(--inkt-zacht); margin-bottom: 2rem; }
.melding-fout { background: var(--fout); color: var(--wit);
  border-radius: 8px; padding: .7rem 1rem; font-size: .9rem;
  font-weight: 600; margin-bottom: 1.2rem; text-align: center; }

.veld { margin-bottom: 1.5rem; }
.veld label { display: block; font-size: .9rem; font-weight: 600;
  margin-bottom: .5rem; color: var(--inkt); }
.invoer-met-icoon { position: relative; }
.invoer-met-icoon svg { position: absolute; left: .9rem; top: 50%;
  transform: translateY(-50%); width: 18px; height: 18px;
  color: var(--inkt-zacht); }
input[type=text] { width: 100%; padding: .8rem 1rem; font-size: 1rem;
  font-family: var(--tekst); border: 2px solid var(--rand);
  border-radius: 10px; background: #f8fafc; outline: none;
  transition: border-color .2s, box-shadow .2s; }
.invoer-met-icoon input { padding-left: 2.7rem; }
input[type=text]:focus { border-color: var(--blauw); background: var(--wit);
  box-shadow: 0 0 0 3px rgba(0, 136, 202, .2); }
.code-invoer { letter-spacing: .5em; text-align: center;
  font-size: 1.4rem; }

button, .knop-primair, .knop-google, .knop-terug {
  font-family: var(--tekst); cursor: pointer; }
.knop-primair { display: flex; align-items: center; justify-content: center;
  gap: .5rem; width: 100%; padding: .85rem 1.5rem; font-size: 1rem;
  font-weight: 600; color: var(--wit); background: var(--blauw);
  border: 0; border-radius: 10px; transition: all .25s; }
.knop-primair:hover { background: var(--blauw-donker);
  transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0, 0, 0, .1); }
.pijl { font-size: 1.1rem; line-height: 1; }

.of-scheiding { display: flex; align-items: center; margin: 1.5rem 0;
  color: #94a3b8; font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; }
.of-scheiding::before, .of-scheiding::after { content: ""; flex: 1;
  border-bottom: 1px solid var(--rand); }
.of-scheiding span { padding: 0 12px; }

.knop-google, .knop-terug { display: flex; align-items: center;
  justify-content: center; gap: .7rem; width: 100%; padding: .8rem;
  border: 1px solid var(--rand); border-radius: 10px;
  text-decoration: none; color: var(--inkt); font-size: .95rem;
  font-weight: 600; background: var(--wit); transition: all .2s; }
.knop-google:hover, .knop-terug:hover { background: #f8fafc;
  border-color: #cbd5e1; }

.login-fotozijde { flex: 1.1; position: relative; overflow: hidden;
  background: url("login-achtergrond.jpg") center/cover no-repeat; }
.login-fotozijde video { position: absolute; inset: 0; width: 100%;
  height: 100%; object-fit: cover; }
.foto-overlay { position: absolute; inset: 0; display: flex;
  flex-direction: column; justify-content: center; padding: 3.5rem;
  background: linear-gradient(135deg, rgba(0, 136, 202, .68),
                                      rgba(0, 82, 122, .62)); }
.overlay-logo { height: 50px; width: auto; align-self: flex-start;
  margin-bottom: 1.5rem; }
.foto-overlay h2 { color: var(--wit); font-size: 2.5rem; font-weight: 700;
  line-height: 1.15; margin-bottom: 1rem; }
.foto-overlay p { color: rgba(255, 255, 255, .88); font-size: .95rem;
  max-width: 26rem; }
@media (max-width: 900px) { .login-fotozijde { display: none; }
  .login-container { min-height: 0; } }

/* ==== Dashboard-raamwerk ==== */
:root { --navy: #101a2b; --navy-licht: #1a2740; --topbalk: #0d2740; }
.topbalk { background: linear-gradient(90deg, var(--topbalk), #0e3355);
  color: var(--wit); display: flex; align-items: center;
  justify-content: space-between; padding: 0 1.6rem; height: 58px;
  flex-shrink: 0; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.merk { display: flex; align-items: center; gap: .9rem; }
.merk .logo-img { height: 26px; }
.topbalk-titel { font-family: var(--kop); font-weight: 500;
  font-size: 1rem; color: var(--wit); letter-spacing: .02em; }
.topbalk-rechts { display: flex; align-items: center; gap: 1rem;
  font-size: .9rem; }
.topbalk-rechts > span { opacity: .9; font-weight: 500; }
.kopstatus { display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; padding: .35rem .8rem;
  border-radius: 99px; }
.kopstatus .bol { width: .62rem; height: .62rem; border-radius: 50%; }
.kopstatus-groen { background: rgba(46, 204, 113, .18); color: #a8f0c8; }
.kopstatus-groen .bol { background: #2ecc71;
  animation: hartslag 2.4s ease-in-out infinite; }
.kopstatus-oranje { background: rgba(243, 156, 18, .2); color: #ffd89a; }
.kopstatus-oranje .bol { background: #f39c12; }
.kopstatus-rood { background: rgba(239, 68, 68, .22); color: #ffb4b4; }
.kopstatus-rood .bol { background: #ef4444;
  animation: hartslag 1.2s ease-in-out infinite; }
.scheider { width: 1px; height: 22px; background: rgba(255, 255, 255, .18); }
.knop-licht { margin: 0; width: auto; padding: .4rem .9rem;
  font-size: .82rem; font-weight: 600; color: var(--wit);
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px;
  background: rgba(255, 255, 255, .08); transition: background .2s; }
.knop-licht:hover { background: rgba(255, 255, 255, .2); }

.indeling { display: flex; flex: 1; align-items: stretch; min-height: 0; }
.zijbalk { width: 236px; background: var(--navy); padding: 1.1rem .8rem;
  flex-shrink: 0; display: flex; flex-direction: column; gap: .15rem; }
.nav-groep { color: #5b6b85; font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .9rem .8rem .35rem; }
.zijbalk a { display: flex; align-items: center; gap: .75rem;
  color: #aab6cb; text-decoration: none; padding: .62rem .8rem;
  font-size: .9rem; font-weight: 500; border-radius: 10px;
  transition: background .15s, color .15s; }
.zijbalk a:hover { color: var(--wit); background: var(--navy-licht); }
.zijbalk a.actief { color: var(--wit);
  background: linear-gradient(90deg, rgba(0, 136, 202, .28),
                                     rgba(0, 136, 202, .1));
  box-shadow: inset 3px 0 0 var(--blauw); }
.nav-icoon { width: 19px; height: 19px; flex-shrink: 0; opacity: .85; }
.zijbalk a.actief .nav-icoon { color: #3db0ea; opacity: 1; }
.zijbalk a.onder { margin-top: auto; }
@media (max-width: 800px) { .zijbalk { width: 62px; padding: 1rem .5rem; }
  .zijbalk a span, .nav-groep { display: none; }
  .zijbalk a { justify-content: center; padding: .7rem; } }

.inhoud { flex: 1; padding: 1.6rem 2rem 2.4rem; width: 100%;
  overflow-x: hidden; background: var(--achtergrond); }
.voet { background: var(--wit); color: var(--inkt-zacht);
  text-align: center; font-size: .74rem; padding: .7rem;
  border-top: 1px solid var(--rand); }

/* ==== Werkbalk ==== */
.werkbalk { display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap;
  gap: .6rem; }
.bereik button { margin: 0; width: auto; padding: .35rem .8rem;
  font-size: .8rem; font-weight: 600; color: var(--inkt-zacht);
  background: var(--wit); border: 1px solid var(--rand);
  border-radius: 8px; }
.bereik button + button { margin-left: .3rem; }
.bereik button.actief { color: var(--wit); background: var(--blauw);
  border-color: var(--blauw); }
.ververst { color: var(--inkt-zacht); font-size: .78rem; }

/* ==== Kaarten ==== */
.kaarten { display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 1rem; }
.kaart { background: var(--wit); border-radius: 14px; padding: 1.1rem 1.3rem;
  border: 1px solid var(--rand);
  box-shadow: 0 1px 3px rgba(16, 26, 43, .06); }
.kaart-kop { display: flex; align-items: center;
  justify-content: space-between; margin-bottom: .6rem; }
.kaart-kop h3 { font-size: .98rem; font-weight: 700; }
.kaart-kop .domein { font-size: .75rem; color: var(--inkt-zacht);
  font-weight: 400; font-family: var(--tekst); }
.status { display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 700; }
.status .bol { width: .6rem; height: .6rem; border-radius: 50%; }
.status.online { color: #1d9f55; }
.status.online .bol { background: #1d9f55; }
.status.offline { color: var(--fout); }
.status.offline .bol { background: var(--fout); }
.meters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .8rem; }
.meter .getal { font-family: var(--kop); font-size: 1.5rem;
  font-weight: 700; }
.meter .label { font-size: .72rem; color: var(--inkt-zacht); }
.meter .balkje { height: 5px; border-radius: 3px; background: var(--rand);
  margin-top: .3rem; overflow: hidden; }
.meter .balkje i { display: block; height: 100%;
  background: var(--blauw); transition: width .7s ease; }
.status.online .bol { animation: hartslag 2.4s ease-in-out infinite; }
@keyframes hartslag {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29, 159, 85, .4); }
  50% { box-shadow: 0 0 0 5px rgba(29, 159, 85, 0); } }
.kaart-voet { display: flex; align-items: center; gap: .9rem;
  margin-top: .8rem; border-top: 1px solid var(--rand); padding-top: .6rem; }
.kaart-live .sparkline { width: 120px; height: 28px; display: block; }
.sparkstip { animation: stipknipper 2s ease-in-out infinite; }
@keyframes stipknipper { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.kaart-info { color: var(--inkt-zacht); font-size: .74rem; }
.meter .balkje i.let-op { background: var(--let-op); }
.meter .balkje i.fout { background: var(--fout); }

/* ==== Panelen, aandacht, grafieken, tabel ==== */
.paneel { background: var(--wit); border-radius: 14px;
  padding: 1.2rem 1.4rem; border: 1px solid var(--rand);
  box-shadow: 0 1px 3px rgba(16, 26, 43, .06); margin-bottom: 1.2rem; }
.paneel h2 { font-size: 1.02rem; font-weight: 700; margin-bottom: .7rem;
  letter-spacing: -.01em; }
.paneel-kop { display: flex; align-items: baseline;
  justify-content: space-between; }
.export-link { color: var(--inkt-zacht); font-size: .78rem;
  text-decoration: none; }
.export-link:hover { color: var(--blauw); }
.kaarten-drie { grid-template-columns: repeat(auto-fit,
  minmax(300px, 1fr)); }
.statregel { display: flex; justify-content: space-between; gap: .6rem;
  padding: .3rem 0; font-size: .86rem;
  border-bottom: 1px solid var(--achtergrond); }
.statregel:last-child { border-bottom: 0; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; }
.filterbalk { display: flex; gap: .5rem; flex-wrap: wrap;
  margin-bottom: .8rem; }
.filterbalk select, .filterbalk input { padding: .4rem .6rem;
  font-size: .84rem; font-family: var(--tekst); border: 1px solid
  var(--rand); border-radius: 8px; background: var(--wit); }
.filterbalk input { flex: 1; min-width: 180px; }
.soort { font-size: .7rem; font-weight: 700; padding: .1rem .5rem;
  border-radius: 99px; background: var(--achtergrond);
  color: var(--inkt-zacht); white-space: nowrap; }
.soort-inlog, .soort-portaalinlog { background: #e8f6ee; color: #1d9f55; }
.soort-inlogmislukt, .soort-portaalmislukt, .soort-ban {
  background: #fdeaea; color: var(--fout); }
.soort-sudo { background: #fff3e0; color: #b26a00; }
.melding { color: var(--blauw-donker); font-size: .9rem;
  font-weight: 600; }
.uitleg { color: var(--inkt-zacht); font-size: .88rem;
  margin-bottom: 1rem; }
.aandacht { list-style: none; padding: 0; }
.aandacht li { padding: .35rem 0; font-size: .88rem; display: flex;
  gap: .5rem; align-items: baseline; }
.aandacht .ernst { font-size: .68rem; font-weight: 800;
  padding: .1rem .5rem; border-radius: 99px; color: var(--wit);
  flex-shrink: 0; }
.ernst.rood { background: var(--fout); }
.ernst.oranje { background: var(--let-op); }
.ernst.groen { background: #1d9f55; }
.aandacht .leeg { color: var(--inkt-zacht); }

.grafieken { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .grafieken { grid-template-columns: 1fr 1fr; }
  .grafieken .paneel-breed { grid-column: 1 / -1; }
}
.grafiek { position: relative; }
.grafiek svg { display: block; width: 100%; height: 180px; }
.legenda { display: flex; gap: 1rem; margin-top: .4rem; flex-wrap: wrap; }
.legenda span { display: inline-flex; align-items: center; gap: .35rem;
  font-size: .76rem; color: var(--inkt-zacht); }
.legenda i { width: .85rem; height: 3px; border-radius: 2px; }
.zweef { position: absolute; pointer-events: none; background: var(--wit);
  border: 1px solid var(--rand); border-radius: 8px; padding: .4rem .6rem;
  font-size: .75rem; box-shadow: 0 4px 14px rgba(0, 102, 151, .15);
  display: none; z-index: 5; white-space: nowrap; }
.zweef .rij { display: flex; align-items: center; gap: .35rem; }
.zweef i { width: .6rem; height: .6rem; border-radius: 50%; }

/* ---- Beveiliging-pagina ---- */
.bev-server { padding: 0; overflow: hidden; }
.bev-serverkop { display: flex; align-items: center;
  justify-content: space-between; padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--rand);
  background: linear-gradient(90deg, #f7fafc, #fff); }
.bev-serverkop h2 { display: flex; align-items: center; gap: .7rem;
  margin: 0; font-size: 1.05rem; }
.bev-serverkop .domein { font-family: ui-monospace, Consolas, monospace;
  font-size: .82rem; color: var(--inkt-zacht); }
.bev-raster { display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.bev-blok { padding: 1.1rem 1.4rem;
  border-right: 1px solid var(--rand);
  border-bottom: 1px solid var(--rand); }
.bev-blok h3 { font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--inkt-zacht);
  margin-bottom: .7rem; }
.bev-blok .mini { margin-top: .5rem; }
.mini th, .mini td { padding: .3rem .4rem; font-size: .8rem;
  white-space: normal; }
.mini td.mono { white-space: nowrap; }
.poort-rij { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.poort-chip { font-family: ui-monospace, Consolas, monospace;
  font-size: .82rem; font-weight: 700; padding: .25rem .65rem;
  border-radius: 8px; }
.poort-ok { background: #e8f6ee; color: #178048; }
.poort-let { background: #fdeaea; color: var(--fout); }
.bev-status-groot { display: flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.actie-knoppen { display: flex; flex-direction: column; gap: .5rem;
  margin-top: 1rem; }
.actie-knoppen .knop-klein { padding: .6rem .9rem; font-size: .82rem;
  display: flex; align-items: center; justify-content: center; gap: .4rem; }
.pin-veld { display: flex; flex-direction: column; gap: .3rem;
  font-size: .76rem; color: var(--inkt-zacht); font-weight: 600; }
.pin-invoer { width: 100%; padding: .5rem .7rem; font-size: .95rem;
  letter-spacing: .3em; text-align: center; border: 1px solid var(--rand);
  border-radius: 8px; font-family: var(--tekst); }
.pin-invoer:focus { outline: none; border-color: var(--blauw);
  box-shadow: 0 0 0 3px rgba(0, 136, 202, .15); }
.melding.melding-fout { color: var(--fout); }
.pagineren { display: flex; align-items: center;
  justify-content: space-between; margin-top: 1rem; }
.blad-nr { font-size: .82rem; color: var(--inkt-zacht); font-weight: 600; }
.login-container.smal { max-width: 26rem; }
.login-container.smal .login-formzijde { max-width: none; }
.slot-icoon { font-size: 2rem; text-align: center; margin-bottom: .5rem; }

/* ---- Installatiebalk (Chrome-app) ---- */
.installatiebalk { position: fixed; right: 1.2rem; bottom: 1.2rem;
  z-index: 50; background: var(--wit); border: 1px solid var(--rand);
  border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 82, 122, .18);
  padding: .9rem 1.1rem; display: flex; align-items: center; gap: .8rem;
  max-width: 34rem; font-size: .88rem; flex-wrap: wrap;
  animation: opkomen .4s ease; }
@keyframes opkomen { from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; } }
.knop-installeer { padding: .5rem .9rem; font-size: .84rem;
  font-weight: 600; color: var(--wit); background: var(--blauw);
  border: 0; border-radius: 8px; }
.knop-installeer:hover { background: var(--blauw-donker); }
.knop-installeer-nee { padding: .5rem .7rem; font-size: .84rem;
  color: var(--inkt-zacht); background: none; border: 0; }

.tabel-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th { text-align: left; color: var(--inkt-zacht); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .05em; }
th, td { padding: .5rem .6rem; border-bottom: 1px solid var(--rand);
  white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.stil { color: var(--fout); font-weight: 700; }
.ok-vinkje { color: #1d9f55; }

/* ==== Gebruikerspagina ==== */
.formulier-rij { display: flex; gap: .8rem; flex-wrap: wrap;
  align-items: flex-end; }
.formulier-rij > div { flex: 1 1 160px; }
.formulier-rij button { width: 100%; padding: .7rem; font-weight: 600;
  color: var(--wit); background: var(--blauw); border: 0;
  border-radius: 10px; }
.formulier-rij button:hover { background: var(--blauw-donker); }
.vinkveld { flex: 0 0 auto !important; }
.vinkveld label { display: flex; align-items: center; gap: .35rem;
  font-size: .85rem; margin-bottom: .55rem; }
.acties { display: flex; gap: .4rem; }
.knop-klein { margin: 0; width: auto; padding: .3rem .6rem;
  font-size: .74rem; font-weight: 600; background: var(--wit);
  color: var(--blauw); border: 1px solid var(--rand);
  border-radius: 8px; }
.knop-klein:hover { background: var(--achtergrond); }
.knop-klein.rood { color: var(--fout); }
