@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg: #f1f4ef;
  --bg2: #dce8dc;
  --panel: #ffffff;
  --ink: #13231b;
  --muted: #55665e;
  --line: #d3dfd2;
  --line-strong: #adc7af;
  --brand: #0f6b52;
  --brand2: #255d92;
  --brand3: #dba640;
  --danger: #9b2438;
  --danger-bg: #fdeef1;
  --ok: #145f3f;
  --ok-bg: #e8f8ee;
  --page-accent: #0f6b52;
  --page-accent2: #255d92;
  --page-soft: #e7f4ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.85), transparent 32%),
    radial-gradient(circle at 94% 94%, rgba(37, 93, 146, 0.18), transparent 34%),
    linear-gradient(155deg, var(--bg), var(--bg2));
}

.app-page.page-product { --page-accent: #136a51; --page-accent2: #2c8662; --page-soft: #e7f6ef; }
.app-page.page-image-name { --page-accent: #255d92; --page-accent2: #367db8; --page-soft: #e6f1fb; }
.app-page.page-social { --page-accent: #7d4b9b; --page-accent2: #415fb1; --page-soft: #efe7fb; }
.app-page.page-email { --page-accent: #0f6c70; --page-accent2: #2f8892; --page-soft: #e5f6f7; }
.app-page.page-seo { --page-accent: #8f5f1b; --page-accent2: #bd7a23; --page-soft: #f9f0df; }
.app-page.page-history { --page-accent: #1f5c5b; --page-accent2: #338684; --page-soft: #e5f4f2; }
.app-page.page-result { --page-accent: #246144; --page-accent2: #317e57; --page-soft: #e7f4ea; }
.app-page.page-admin-center { --page-accent: #273f77; --page-accent2: #4760a8; --page-soft: #e8ecfa; }
.app-page.page-hr-communicatie { --page-accent: #6a3c78; --page-accent2: #8a52a2; --page-soft: #f2e8f8; }

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Manrope", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
}

p {
  margin: 0 0 12px;
  line-height: 1.62;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 15% 6%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(170deg, #0f1e31, #102e46 54%, #0e4a59);
  color: #ebf6fa;
}

.sidebar h1 {
  font-size: 40px;
  line-height: 0.96;
  margin-bottom: 10px;
}

.sidebar .muted {
  color: #bed9e5;
  margin-bottom: 16px;
}

.navlink {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e6f5ff;
  text-decoration: none;
  padding: 11px 12px;
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.nav-icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.27);
  background: rgba(255, 255, 255, 0.14);
}

.nav-text {
  flex: 1;
}

.navlink:hover {
  transform: translateX(3px);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.09);
}

.navlink.active {
  color: #102026;
  border-color: #d9ecef;
  background: linear-gradient(140deg, #e8f6ff, #d3f4ea);
}

.navlink.active .nav-icon {
  border-color: rgba(14, 72, 76, 0.32);
  background: rgba(14, 93, 85, 0.14);
}

.content {
  padding: 24px;
}

.content-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: #3a5f48;
  font-weight: 800;
}

.page-title {
  margin: 2px 0 0;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1;
}

.page-pill {
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, color-mix(in srgb, var(--page-soft) 78%, #ffffff), color-mix(in srgb, var(--page-accent2) 12%, #ffffff));
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #24493d;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98)),
    var(--panel);
  box-shadow: 0 12px 32px rgba(18, 43, 31, 0.08);
  padding: 18px;
  margin-bottom: 16px;
  animation: panel-in 260ms ease both;
}

.panel > h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  margin-bottom: 8px;
}

.panel > h3 {
  font-size: clamp(21px, 2.2vw, 28px);
  margin-bottom: 8px;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.card {
  display: block;
  border: 1px solid #cbdbc8;
  border-radius: 14px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(244, 252, 249, 0.96)),
    #f8fcff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding-top: 14px;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--mod-accent, #266e63), color-mix(in srgb, var(--mod-accent, #266e63) 70%, #ffffff));
}

.feature-card .card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid color-mix(in srgb, var(--mod-accent, #266e63) 42%, #ffffff);
  color: color-mix(in srgb, var(--mod-accent, #266e63) 74%, #0f2018);
  background: color-mix(in srgb, var(--mod-accent, #266e63) 14%, #ffffff);
}

.module-product { --mod-accent: #1f7c58; }
.module-image-name { --mod-accent: #2a6baa; }
.module-social { --mod-accent: #6b55b3; }
.module-email { --mod-accent: #1b7d8a; }
.module-seo { --mod-accent: #aa6b1e; }
.module-hr { --mod-accent: #7e4aa2; }
.module-admin-center { --mod-accent: #4258a5; }

.card:hover {
  transform: translateY(-4px);
  border-color: #8eb7b2;
  box-shadow: 0 18px 26px rgba(21, 58, 48, 0.14);
}

.cards .card:nth-child(1) { animation: card-in 260ms 40ms both; }
.cards .card:nth-child(2) { animation: card-in 260ms 80ms both; }
.cards .card:nth-child(3) { animation: card-in 260ms 120ms both; }
.cards .card:nth-child(4) { animation: card-in 260ms 160ms both; }
.cards .card:nth-child(5) { animation: card-in 260ms 200ms both; }
.cards .card:nth-child(6) { animation: card-in 260ms 240ms both; }
.cards .card:nth-child(7) { animation: card-in 260ms 280ms both; }
.cards .card:nth-child(8) { animation: card-in 260ms 320ms both; }

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

label {
  display: block;
  margin: 11px 0 6px;
  font-weight: 700;
  color: #20372b;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c2d4c1;
  border-radius: 12px;
  background: #fafdff;
  color: #172d23;
  padding: 11px 12px;
  font: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--page-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-accent) 25%, transparent);
  background: #ffffff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button,
.btn-secondary {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  margin-top: 12px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

button {
  color: #f6feff;
  background: linear-gradient(130deg, var(--page-accent), var(--page-accent2));
  box-shadow: 0 10px 18px rgba(16, 65, 51, 0.2);
}

button:hover {
  filter: brightness(1.04);
}

.btn-secondary {
  border: 1px solid #b0c7b6;
  color: #204438;
  background: linear-gradient(145deg, #f9fff4, #e3f0e8);
}

.copy-btn {
  margin-top: 14px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checks label {
  margin: 0;
  border: 1px solid #c2d6ca;
  background: #f4f9f4;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 700;
}

.checks input {
  width: auto;
  margin-right: 6px;
  accent-color: #0f6b52;
}

.alert {
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 10px;
  font-weight: 700;
}

.alert.error {
  border: 1px solid #f1bdc7;
  background: var(--danger-bg);
  color: var(--danger);
}

.alert.success {
  border: 1px solid #b5e4c4;
  background: var(--ok-bg);
  color: var(--ok);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.inline-form > div {
  min-width: 200px;
  flex: 1 1 220px;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d1dfd0;
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  border-bottom: 1px solid #dbe7da;
  text-align: left;
  padding: 10px;
  vertical-align: top;
}

thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: #ecf5ee;
  color: #305144;
}

tbody tr:nth-child(even) td {
  background: #fbfffc;
}

tbody tr:hover td {
  background: #f2fbf4;
}

td a {
  color: #175688;
  font-weight: 700;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.kpi-card {
  border: 1px solid #cad8d0;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(145deg, #fbfffd, #eef8f3);
}

.kpi-label {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: #3b6050;
  font-weight: 800;
}

.kpi-value {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.kpi-sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: #557568;
}

.module-bars {
  display: grid;
  gap: 10px;
}

.module-row {
  border: 1px solid #d4dfd5;
  border-radius: 12px;
  padding: 10px;
  background: #fbfffc;
}

.module-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-weight: 700;
}

.module-row-track {
  height: 8px;
  border-radius: 999px;
  background: #e5f0e6;
  overflow: hidden;
}

.module-row-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--page-accent), var(--page-accent2));
}

.permissions-form {
  display: grid;
  gap: 12px;
}

.permissions-user-select {
  max-width: 460px;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.permission-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #d0ddd2;
  border-radius: 12px;
  padding: 10px;
  background: #fbfffc;
}

.permission-item input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--page-accent);
}

.permission-item small {
  display: block;
  color: #5a7264;
  margin-top: 2px;
}

.permission-item.disabled {
  opacity: 0.62;
}

.text-result,
pre {
  background: linear-gradient(180deg, #f7fcf9, #f2f8fb);
  border: 1px solid #d5e3d8;
  border-radius: 12px;
  padding: 12px;
  min-height: 170px;
  white-space: pre-wrap;
}

.data-list {
  display: grid;
  gap: 10px;
}

.data-item {
  background: #fff;
  border: 1px solid #d5e4d7;
  border-radius: 10px;
  padding: 10px;
}

.data-key {
  font-weight: 800;
  margin-bottom: 6px;
  color: #244639;
}

.data-value {
  color: #2d4a3f;
}

.value-list {
  margin: 6px 0 0;
  padding-left: 18px;
}

.result-image {
  display: block;
  max-width: 100%;
  max-height: 320px;
  border-radius: 10px;
  border: 1px solid #bfd4c2;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.box {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
  border: 1px solid #ccdccb;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(19, 48, 33, 0.18);
}

.auth-brand {
  padding: 34px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(150deg, #0e3342, #11544d 55%, #2d6881);
  color: #ecfbff;
}

.auth-brand h1 {
  font-size: clamp(32px, 5vw, 50px);
  line-height: 0.96;
}

.auth-brand p {
  color: #d7edf4;
}

.auth-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 800;
}

.auth-points {
  margin: 14px 0 0;
  padding-left: 18px;
}

.auth-points li {
  margin: 7px 0;
}

.auth-card {
  padding: 34px;
}

.auth-card h2 {
  font-size: 34px;
}

.logo {
  max-width: 186px;
  width: 100%;
  display: block;
  margin-bottom: 12px;
}

.warn {
  margin: 0 0 12px;
  border: 1px solid #f1bdc7;
  background: var(--danger-bg);
  color: var(--danger);
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
}

@media (max-width: 1040px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .content {
    padding: 16px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .box {
    grid-template-columns: 1fr;
  }

  .auth-brand,
  .auth-card {
    padding: 22px 18px;
  }

  .page-title {
    font-size: 30px;
  }
}
