/* myhub.css — Mijn Clouwn klantportal styling */
/* Win311 look, zelfde als crm.clouwn.pro en clouwn.eu */

* { box-sizing: border-box; }

body {
  margin: 0; padding: 0;
  background: var(--bg); color: #000;
  font-family: 'MS Sans Serif', Arial, sans-serif;
}

/* ── Shell ────────────────────────────────────────────────────────────────── */

.shell {
  display: flex; flex-direction: column;
  height: 100vh; width: 100vw; overflow: hidden;
}

/* ── Titlebar ─────────────────────────────────────────────────────────────── */

.titlebar {
  background: var(--title-bg); color: var(--title-fg);
  padding: 4px 8px; display: flex; align-items: center;
  justify-content: space-between; flex-shrink: 0;
  font-family: 'VT323', monospace; font-size: 18px;
}

.win-btn {
  width: 16px; height: 14px; background: var(--bg);
  border-top: 1px solid var(--highlight); border-left: 1px solid var(--highlight);
  border-right: 1px solid var(--shadow-dark); border-bottom: 1px solid var(--shadow-dark);
  font-size: 10px; line-height: 14px; text-align: center;
  cursor: pointer; color: var(--black);
}

/* ── Menubar ──────────────────────────────────────────────────────────────── */

.menubar {
  background: var(--bg); border-bottom: 1px solid var(--shadow-dark);
  padding: 2px 6px; display: flex; gap: 0; flex-shrink: 0;
  flex-wrap: wrap; align-items: center; justify-content: space-between;
}

.menubar-links { display: flex; }

.menubar a {
  padding: 2px 12px; text-decoration: none;
  color: #000; font-size: 13px; cursor: pointer; font-weight: 500;
}

.menubar a:hover { background: var(--title-bg); color: var(--title-fg); }

.lang-btn {
  padding: 1px 8px; font-size: 11px; font-weight: bold; cursor: pointer;
  background: var(--bg); color: #000;
  border-top: 1px solid var(--highlight); border-left: 1px solid var(--highlight);
  border-right: 1px solid var(--shadow-dark); border-bottom: 1px solid var(--shadow-dark);
  margin-right: 4px; font-family: 'MS Sans Serif', Arial, sans-serif;
}

.lang-btn:hover { background: var(--title-bg); color: var(--title-fg); }

/* ── Tabs ─────────────────────────────────────────────────────────────────── */

.tabs {
  background: var(--bg); border-bottom: 2px solid var(--shadow-dark);
  padding: 4px 8px; display: flex; gap: 4px; flex-shrink: 0;
  overflow-x: auto;
}

.tab {
  padding: 4px 16px; background: var(--bg); color: #000;
  cursor: pointer;
  border-top: 2px solid var(--shadow-lighter); border-left: 2px solid var(--shadow-lighter);
  border-right: 2px solid var(--shadow-dark); border-bottom: 2px solid var(--shadow-dark);
  font-size: 13px; font-weight: 500; white-space: nowrap;
}

.tab.active {
  background: var(--title-bg); color: var(--title-fg);
  font-weight: bold; border-bottom: 2px solid var(--title-bg);
}

.tab:hover:not(.active) { filter: brightness(0.95); }

/* ── Content ──────────────────────────────────────────────────────────────── */

.content {
  flex: 1; overflow-y: auto; padding: 14px 16px;
  background: var(--bg); width: 100%; color: #000;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Sectie ───────────────────────────────────────────────────────────────── */

.sectie { margin-bottom: 14px; width: 100%; }

.sec-kop {
  font-size: 13px; font-weight: bold; color: #000;
  border-bottom: 2px solid #1a0d30;
  padding-bottom: 3px; margin: 0 0 8px 0;
}

/* ── Gegevens grid ────────────────────────────────────────────────────────── */

.gegevens-grid {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 5px 12px; font-size: 13px;
}

.gegevens-grid .lbl { color: #000; font-weight: bold; }
.gegevens-grid .val { color: #1a1a1a; font-weight: 500; }

/* ── Badges ───────────────────────────────────────────────────────────────── */

.pakket-badge {
  display: inline-block; padding: 1px 6px; margin: 0 2px 2px 0;
  background: var(--title-bg); color: var(--title-fg);
  font-family: 'VT323', monospace; font-size: 14px;
}

.status-badge { display: inline-block; padding: 1px 8px; font-size: 11px; font-weight: bold; }
.badge-actief   { background: #006600; color: #fff; }
.badge-demo     { background: #000080; color: #fff; }
.badge-inactief { background: #800000; color: #fff; }

/* ── Knoppen ──────────────────────────────────────────────────────────────── */

.win-knop {
  display: inline-block; padding: 3px 14px;
  background: var(--bg); color: #000;
  border-top: 2px solid var(--shadow-lighter); border-left: 2px solid var(--shadow-lighter);
  border-right: 2px solid var(--shadow-dark); border-bottom: 2px solid var(--shadow-dark);
  font-family: 'MS Sans Serif', Arial, sans-serif; font-size: 12px;
  cursor: pointer; text-decoration: none; font-weight: 500;
}

.win-knop:hover { background: var(--title-bg); color: var(--title-fg); }

.win-knop.primair {
  background: var(--title-bg); color: var(--title-fg); font-weight: bold;
}

.win-knop.primair:hover { filter: brightness(1.2); }

/* ── Diensten knoppen ─────────────────────────────────────────────────────── */

.diensten-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-top: 8px; margin-bottom: 14px;
  align-items: start;
}

.dienst-kolom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dienst-blok {
  border-top: 2px solid var(--shadow-lighter); border-left: 2px solid var(--shadow-lighter);
  border-right: 2px solid var(--shadow-dark); border-bottom: 2px solid var(--shadow-dark);
  background: var(--win-bg); padding: 12px 10px;
  display: flex; flex-direction: column; gap: 4px;
}

.dienst-blok.inactief { opacity: 0.7; }

.dienst-titel {
  font-family: 'VT323', monospace; font-size: 20px;
  color: #000; margin-bottom: 4px;
}

.dienst-info {
  font-size: 11px; color: #333; flex: 1;
}

.dienst-info span {
  display: block; margin-bottom: 2px;
}

.dienst-info .lbl { font-weight: bold; color: #000; }

.dienst-cta {
  font-size: 11px; color: #555; font-style: italic; flex: 1;
  margin-bottom: 6px;
}

.dienst-knop-rij { margin-top: 8px; }

/* ── Facturen tabel ───────────────────────────────────────────────────────── */

.facturen-tabel {
  width: 100%; border-collapse: collapse; font-size: 12px;
}

.facturen-tabel th {
  background: var(--title-bg); color: var(--title-fg);
  padding: 4px 8px; text-align: left; font-weight: bold;
  border: 1px solid var(--shadow-dark);
}

.facturen-tabel td {
  padding: 4px 8px; border: 1px solid var(--shadow-dark);
  background: var(--win-bg);
}

.facturen-tabel tr:nth-child(even) td { background: var(--bg); }

/* ── Credentials ──────────────────────────────────────────────────────────── */

.cred-omschr {
  font-size: 12px; color: #555; margin-bottom: 12px;
}

.cred-rij {
  display: grid; grid-template-columns: 160px 1fr auto;
  align-items: center; margin-bottom: 8px; gap: 0 8px;
}

.cred-rij label { font-size: 12px; font-weight: bold; color: #000; }

.win-input {
  padding: 3px 5px; font-family: 'Share Tech Mono', monospace;
  font-size: 12px; color: #000; background: var(--white);
  border-top: 2px solid var(--shadow-dark); border-left: 2px solid var(--shadow-dark);
  border-right: 2px solid var(--shadow-lighter); border-bottom: 2px solid var(--shadow-lighter);
  outline: none; width: 100%;
}

/* ── Subgebruikers ────────────────────────────────────────────────────────── */

.sub-blok {
  margin-bottom: 14px; padding: 12px 14px;
  border-top: 2px solid var(--shadow-lighter); border-left: 2px solid var(--shadow-lighter);
  border-right: 2px solid var(--shadow-dark); border-bottom: 2px solid var(--shadow-dark);
  background: var(--win-bg);
}

.sub-naam {
  font-family: 'VT323', monospace; font-size: 18px; color: #000;
  margin-bottom: 8px; display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap;
}

.rol-badge {
  font-size: 11px; font-weight: bold; padding: 1px 8px;
  background: var(--title-bg); color: var(--title-fg);
  font-family: 'MS Sans Serif', Arial, sans-serif;
}

.veld-rij {
  display: grid; grid-template-columns: 160px 1fr;
  align-items: center; margin-bottom: 8px; gap: 0 8px;
}

.veld-rij label { font-size: 12px; color: #333; text-align: right; padding-right: 6px; }

.knop-rij { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }

/* ── Meldingen ────────────────────────────────────────────────────────────── */

.melding {
  padding: 5px 8px; font-size: 12px; margin-top: 8px; display: none;
  border-top: 1px solid var(--shadow-lighter); border-left: 1px solid var(--shadow-lighter);
  border-right: 1px solid var(--shadow-dark); border-bottom: 1px solid var(--shadow-dark);
}

.melding.ok   { color: #006600; background: #e8ffe8; }
.melding.fout { color: #880000; background: #ffe8e8; }

/* ── Laden ────────────────────────────────────────────────────────────────── */

#laden { padding: 30px; font-size: 14px; color: #000; font-weight: bold; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .diensten-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .content { padding: 8px; }
  .gegevens-grid { grid-template-columns: 110px 1fr; font-size: 12px; }
  .veld-rij { grid-template-columns: 110px 1fr; }
  .diensten-grid { grid-template-columns: 1fr; }
  .cred-rij { grid-template-columns: 1fr; }
  .menubar a { padding: 2px 7px; font-size: 12px; }
  .win-input { width: 100% !important; }
  .knop-rij { flex-direction: column; align-items: flex-start; }
  .tabs { overflow-x: auto; }
}
