h1 {
  text-align: center;
  color: rgb(0, 0, 0);
  font-size: 60px;
}

.main {
  padding-left: 80px;
  padding-right: 100px;
  text-align: left;
  height: 100%;
}

/* Navbar Styling - Slowmill huisstijl */
nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  box-sizing: border-box;
}

nav img {
  height: 40px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}

nav ul li {
  display: flex;
  align-items: center;
  overflow: visible;
}

nav ul li a {
  text-decoration: none;
  color: #1a1a2e;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #0077b6;
}

nav ul li a.active {
  color: #0077b6;
}

/* wrapper */
.add-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* knop */
.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #FEFB7B;
  color: #1a1a2e;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(254, 251, 123, 0.28);
  transition: all 0.22s ease;
  position: relative;
  z-index: 1001;
}

.add-btn:hover {
  background: #f7f36b;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 16px rgba(254, 251, 123, 0.34);
}

/* optionele tooltip */
.add-btn::after {
  content: "Select Slowmill";
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #fff;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.add-btn:hover::after {
  opacity: 1;
  visibility: visible;
}

/* dropdown */
.add-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px); /* sit just below the button */
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff4cf 0%, #ffd88f 100%);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(11,23,48,0.18);
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  min-width: 170px;
  z-index: 1100;
}

/* open state */
.add-dropdown.open .add-dropdown-menu {
  display: block;
}

/* small view toggle in navbar */
.view-toggle { display: flex; align-items: center; }
.view-toggle { display: flex; align-items: center; }
.view-toggle-inner { display:flex; gap:8px; align-items:center; }
.view-label { font-size: 13px; color: #234a63; }

/* pill selector */
.view-pill {
  display: inline-flex;
  gap: 6px;
  background: #f4f6f8;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.04);
}
.view-pill-btn {
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: #234a63;
  cursor: pointer;
}
.view-pill-btn:hover { background: rgba(0,0,0,0.03); }
.view-pill-btn[aria-pressed="true"], .view-pill-btn.active {
  background: linear-gradient(90deg,#0077b6 0%, #00a6ea 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,119,182,0.12);
}

/* switch */
.switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch input { display: none; }
.slider-round { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .2s; border-radius: 24px; }
.slider-round:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .2s; border-radius: 50%; }
.switch input:checked + .slider-round { background-color: #0077b6; }
.switch input:checked + .slider-round:before { transform: translateX(22px); }


/* Ensure cards position context for ::before */
.dashboard-card { position: relative; }

.add-dropdown-menu li a {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  color: #1a1a2e;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.add-dropdown-menu li a:hover {
  background-color: #f7f9fc;
  color: #0077b6;
}

.add-dropdown-empty {
  padding: 12px 18px;
  font-size: 13px;
  color: #666666;
}

/* visually center each menu row and make them stack neatly */
.add-dropdown-menu li {
  padding: 4px 0;
}
.add-dropdown-menu li a {
  padding: 6px 10px;
  text-align: center;
  color: #0b1730;
  display: inline-block;
  width: 100%;
}

/* emphasize the top item: light background pill */
.add-dropdown-menu li:first-child a {
  background: rgba(255,255,255,0.95);
  border-radius: 6px;
  font-weight: 700;
  color: #183047;
}

/* subtle hover for items */
.add-dropdown-menu li a:hover {
  background: rgba(255,255,255,0.7);
  color: #0b1730;
}

/* only when the menu is hovered, make the top item the Borssele yellow */
.add-dropdown-menu:hover li:first-child a {
  background: linear-gradient(180deg, #fff4cf 0%, #ffd88f 100%);
  color: #0b1730;
}

input {
  width: 60%;
}

button {
  background-color:#ffffff;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

table {
  width: 100%;
}

td.fitwidth {
  width: 1px;
  white-space: nowrap;
}

html {
  height: 100%;
  background-color: #E5F7FF;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  color: rgb(0, 0, 0);
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
}

/* Smooth scroll for anchor navigation */
html {
  scroll-behavior: smooth;
}

/* Hero section */
.hero {
  background: linear-gradient(180deg, rgba(229,247,255,0.96) 0%, rgba(229,247,255,0.92) 100%);
  padding: 64px 100px;
  text-align: left;
  border-radius: 12px;
  margin: 18px 0;
  min-height: 480px;
}

.hero-clean .container { padding-left: 0px; }


.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  text-align: left;
}

.hero-clean {
  padding: 64px 0;
}

.hero-clean {
  padding: 64px 0;
}

.hero-title {
  font-size: 36px;
  line-height: 1.04;
  margin: 0 0 12px 0;
  color: #0b3d5b;
  font-weight: 700;
  letter-spacing: -0.4px;
  text-align: left;
}

.hero-title .accent {
  color: #487BC1;
}

.hero-sub {
  color: #234a63;
  margin: 0 0 18px 0;
  font-size: 16px;
  opacity: 0.95;
  max-width: 520px;
}

.hero-media img {
  width: 110%;
  max-width: none;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dashboard center placeholder for slowmill */
.dashboard-center {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0 40px 0;
}

.slowmill-wrapper {
  width: 480px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding: 8px;
}

.slowmill-center {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  image-rendering: auto;
  transform: translateZ(0);
}

@media (max-width: 992px) {
  .slowmill-wrapper { width: 90%; height: auto; max-width: 360px; }
  .slowmill-center { width: 100%; }
}

.slowmill-center[alt] {
  background: transparent;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  margin-top: 28px;
  align-items: center;
}

.btn {
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(180deg,#0096d6 0%,#0077b6 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(0,119,182,0.12);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.95);
  padding: 16px 36px;
  border-radius: 40px;
  font-size: 18px;
  box-shadow: none;
}

.hero-clean .btn-primary {
  padding: 16px 36px;
  border-radius: 40px;
}

.hero-clean .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}


.section-title {
  color: #0b3d5b;
  margin: 0 0 12px 0;
  font-size: 28px;
}

.section-lead {
  color: #234a63;
  margin: 0 0 8px 0;
}


.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.benefit-card {
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(11,61,91,0.04);
}

.benefit-card h3 {
  margin: 0 0 12px 0;
  color: #0b3d5b;
}

.benefit-card ul {
  margin: 0;
  padding-left: 18px;
  color: #234a63;
}

@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 1; width: auto; }
  .hero-media { order: 2; }
  .hero-buttons { justify-content: center; }
  .benefits-grid { grid-template-columns: 1fr; }
  .hero-clean .container { padding-left: 0px; }
  .hero-media img { width: 100%; }
}

.hero .lead {
  font-size: 18px;
  color: #234a63;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 18px;
}

.btn {
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-primary {
  background-color: #0077b6;
  color: #ffffff;
  border: 2px solid rgba(0,0,0,0.05);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,119,182,0.15);
}

.btn-secondary {
  background-color: transparent;
  color: #0077b6;
  border: 2px solid #0077b6;
}

.btn-secondary:hover {
  background-color: rgba(0,119,182,0.06);
  transform: translateY(-2px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-media .img-frame {
  padding: 20px;
  border-radius: 14px;
  overflow: hidden;
  max-width: 400px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}


.hero-media img {
  width: 105%;
  max-width: none;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  display: block;
  transform-origin: center;
}

.hero-content {
  text-align: left;
  padding: 20px 0;
}

.btn-primary {
  background: linear-gradient(180deg, #0096d6 0%, #0077b6 100%);
  color: #fff;
  padding: 14px 26px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,119,182,0.12);
  border: none;
}

.btn-primary::after {
  content: "\2192";
  margin-left: 10px;
}

.btn-secondary {
  background: transparent;
  color: #0077b6;
  border: 2px solid #0077b6;
  padding: 12px 20px;
  border-radius: 10px;
}

.btn-secondary::after {
  content: "\25B6";
  margin-left: 8px;
}

.hero-buttons .btn-primary {
  color: #ffffff;
  padding: 14px 36px;
  border-radius: 32px;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(0,119,182,0.12);
  background: linear-gradient(90deg, #00b4ff 0%, #0077b6 100%);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 40px rgba(0,119,182,0.16);
}

.hero-buttons .btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #0b3d5b;
  border: 2px solid rgba(11,61,91,0.10);
  padding: 12px 28px;
  border-radius: 32px;
  font-size: 15px;
  backdrop-filter: blur(3px);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.14s ease;
}

.hero-buttons .btn-secondary:hover {
  background-color: #0077b6;
  color: #ffffff;
  border-color: #0077b6;
  transform: translateY(-4px);
}

.btn-secondary {
  background: transparent;
  color: #0077b6;
  border: 2px solid rgba(0,119,182,0.18);
}

.btn {
  transition: all 0.18s ease;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    text-align: center;
    padding-top: 6px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-title {
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 8px;
  }
  .hero-media .img-frame { max-width: 420px; padding: 16px; }
}

.info-section {
  padding: 40px 100px;
  background: transparent;
  margin-bottom: 40px;
}

.info-inner h3 {
  font-size: 28px;
  color: #0b3d5b;
  margin-bottom: 12px;
}

.info-inner p {
  color: #234a63;
  font-size: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.features-section {
  padding: 60px 100px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(11,61,91,0.04);
}

.feature-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #487BC1;
  margin-bottom: 18px;
  overflow: hidden;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card h4 {
  margin: 0 0 12px 0;
  color: #0b3d5b;
}

.feature-card ul {
  margin: 0;
  padding-left: 18px;
  color: #234a63;
}

.feature-card li {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .features-section {
    padding: 30px 24px;
  }
}

a,
a:link,
a:visited {
  color: rgb(0, 0, 0);
}

footer {
  width: 100%;
  padding: 16px 40px;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  box-sizing: border-box;
  position: static;        /* remove the fixed positioning */
  color: #234a63;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-brand {
  font-weight: 600;
  color: #0b3d5b;
}

.footer-divider {
  color: #b0c4d4;
}

footer a {
  color: #0077b6;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

.footer-tagline {
  color: #7a9bb5;
  font-style: italic;
}

tr.clicked {
  background-color: #abc;
}

td {
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 700;
  min-width: 20px;
}

th {
  background-color: grey;
  color: white;
  font-size: 20px;
}

#clicked {
  background-color: aqua;
}

.container {
  height: 60%;
  overflow-y: scroll;
}

.dashboard-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 30px;
  padding: 40px;
  min-height: calc(100vh - 140px);
}

.dashboard-card {
  background-color: #00A0E4;
  border-radius: 24px;
  overflow: hidden;
}

.dashboard-card.top-left {
  grid-column: 1;
  grid-row: 1;
}

.dashboard-card.top-right {
  grid-column: 3;
  grid-row: 1;
}

.dashboard-card.bottom-left {
  grid-column: 1;
  grid-row: 2;
}

.dashboard-card.bottom-right {
  grid-column: 3;
  grid-row: 2;
}

.dashboard-center {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-header {
  background-color: #487BC1;
  color: white;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.card-header { position: relative; z-index: 6; }
.dashboard-card .card-content { z-index: 1; }
.card-info {
  position: absolute;
  right: 12px;
  top: 8px;
  transform: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.6);
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.02);
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
}
.card-info, .card-header { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.card-info:focus { outline: none; }
.card-info.explain { -webkit-tap-highlight-color: transparent; }
.card-info .tooltip {
  display: none;
  position: absolute;
  top: 48px;
  transform: translateY(0);
  background: rgba(2,18,25,0.94);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 10px;
  white-space: normal;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 8px 30px rgba(3,18,25,0.28);
  width: auto;
  max-width: 380px;
  z-index: 60;
}
.card-info.explain { position: absolute; left: 12px; top: 8px; transform: none; display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.95); border: 1px solid rgba(255,255,255,0.95); font-size: 13px; cursor: pointer; z-index: 6; }
.card-info.explain .wave-icon-inline { width:16px; height:16px; display:block; stroke: #fff; }
.card-info.explain:focus, .card-info.explain:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 22px rgba(34,197,94,0.12); }
.card-info.explain:active { transform: translateY(0) scale(0.98); }

.card-info.explain .tooltip { display: none; left: 12px; right: auto; }
.dashboard-card.status-green-card .card-info.explain:hover .tooltip.tooltip-green,
.dashboard-card.status-green-card .card-info.explain.show .tooltip.tooltip-green { display: block; }
.dashboard-card.status-yellow-card .card-info.explain:hover .tooltip.tooltip-yellow,
.dashboard-card.status-yellow-card .card-info.explain.show .tooltip.tooltip-yellow { display: block; }
.dashboard-card.status-red-card .card-info.explain:hover .tooltip.tooltip-red,
.dashboard-card.status-red-card .card-info.explain.show .tooltip.tooltip-red { display: block; }

.card-info:not(.explain) .tooltip { left: auto; right: 12px; }

@media (max-width: 900px) {
  .card-info .tooltip { top: 56px; max-width: 220px; font-size: 13px; padding: 10px 12px; }
  .card-info.explain { left: 8px; }
  .card-info { right: 8px; }
}

@media (max-width: 480px) {
  .card-info .tooltip { top: 66px; max-width: 180px; font-size: 12px; padding: 8px 10px; }
}

.dashboard-card.status-green-card .card-info.explain { box-shadow: 0 0 0 3px rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.9); }

.status-explain {
  margin-top: 18px;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  font-size: 18px;
}

.dashboard-card.status-yellow-card .card-info.explain { box-shadow: 0 0 0 3px rgba(250,204,21,0.10); border-color: rgba(250,204,21,0.9); }
.dashboard-card.status-red-card .card-info.explain { box-shadow: 0 0 0 3px rgba(239,68,68,0.10); border-color: rgba(239,68,68,0.9); }

.card-info:hover .tooltip,
.card-info.show .tooltip {
  display: block;
  transform: translateY(0);
}

.card-content {
  padding: 30px;
  height: calc(100% - 60px);
  box-sizing: border-box;
}

.dashboard-card .card-content {
  background: #039be5;
  border-radius: 18px;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.golfhoogte-waarde { text-align: center; padding: 12px; }
.golfhoogte-waarde .waarde { font-size: 72px; font-weight: 800; line-height: 1; }
.golfhoogte-waarde .eenheid { font-size: 18px; margin-top: 6px; color: rgba(255,255,255,0.95); }
.golf-status-text-inline { margin-top: 12px; font-size: 18px; font-weight: 700; color: #ffffff; }

.golfhoogte-waarde.status-green .waarde { color: #22c55e; text-shadow: 0 6px 20px rgba(34,197,94,0.12); }
.golfhoogte-waarde.status-yellow .waarde { color: #facc15; text-shadow: 0 6px 20px rgba(250,204,21,0.12); }
.golfhoogte-waarde.status-red .waarde { color: #ef4444; text-shadow: 0 6px 20px rgba(239,68,68,0.12); }

.dashboard-card .card-content p, .dashboard-card .card-content ul { color: #ffffff; }

/* Energie Display */
.data-waarde {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  color: #ffffff;
}

.data-waarde .waarde {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.data-waarde .eenheid {
  font-size: 22px;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 8px;
}

/* Golfhoogte Display */
.golfhoogte-waarde {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  color: #ffffff;
}

.golfhoogte-waarde .waarde {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.golfhoogte-waarde .eenheid {
  font-size: 24px;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 8px;
}

.data-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  color: #ffffff;
  text-align: center;
  gap: 10px;
}

.error-icon {
  font-size: 32px;
}

.error-melding {
  font-size: 16px;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .data-waarde .waarde {
    font-size: 40px;
  }

  .data-waarde .eenheid {
    font-size: 18px;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   EQUIVALENCE CARD — icons + CSS-only edit panel (no JavaScript)
   ════════════════════════════════════════════════════════════════════════════ */

/* Hide the real toggle checkbox */
.eq-panel-toggle {
  display: none;
}

/* ── Appliance list rows ───────────────────────────────────────────────────── */
.apparaten-lijst {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: center;
}

.apparaat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.apparaat.actief {
  background: rgba(255, 255, 255, 0.20);
}

.apparaat.inactief {
  opacity: 0.5;
}

.apparaat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  color: #ffffff;
}

.apparaat-naam {
  flex: 1;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.apparaat-aantal {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
}

/* ── Pencil edit label (sits left of the ℹ icon) ──────────────────────────── */
.eq-edit-btn {
  position: absolute;
  left: 52px;
  top: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, transform 0.14s;
  z-index: 10;
  user-select: none;
}
.eq-edit-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px) scale(1.06);
}

/* ── Toggle visibility via :checked sibling selector ──────────────────────── */
/* The <input#eq-panel-toggle> is a sibling of .dashboard-card.bottom-right  */
.eq-normal-view { display: flex; flex-direction: column; gap: 10px; height: 100%; justify-content: center; }
.eq-edit-panel  { display: none; flex-direction: column; height: 100%; }

.eq-panel-toggle:checked ~ .dashboard-card.bottom-right .eq-normal-view { display: none; }
.eq-panel-toggle:checked ~ .dashboard-card.bottom-right .eq-edit-panel  { display: flex; }

/* ── Edit panel internals ─────────────────────────────────────────────────── */
.eq-panel-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.70);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.eq-option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  flex: 1;
}

.eq-option-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.eq-option-label:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Hide the native checkbox */
.eq-real-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.eq-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  color: #ffffff;
}

.eq-option-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
}

.eq-option-verbruik {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.50);
  flex-shrink: 0;
}

/* Custom checkbox box */
.eq-checkmark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}

.eq-real-checkbox:checked ~ .eq-checkmark {
  background: #00b4dc;
  border-color: #00b4dc;
}

.eq-real-checkbox:checked ~ .eq-checkmark::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Highlight checked rows using :has() — supported in all modern browsers */
.eq-option-label:has(.eq-real-checkbox:checked) {
  background: rgba(0, 180, 220, 0.20);
  outline: 1.5px solid rgba(0, 180, 220, 0.55);
  outline-offset: -1.5px;
}

/* ── Footer: Cancel + Apply ───────────────────────────────────────────────── */
.eq-panel-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
  flex-shrink: 0;
}

.eq-cancel-btn {
  padding: 8px 18px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.70);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  display: inline-flex;
  align-items: center;
}
.eq-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.eq-save-btn {
  padding: 8px 20px;
  border-radius: 22px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(90deg, #00b4ff 0%, #0077b6 100%);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 119, 182, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.eq-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 119, 182, 0.32);
}

/* Card content: genoeg ruimte voor grafiek + meta-regel */
.wave-stats-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 14px 16px 10px;
  gap: 4px;
}
 
/* SVG grafiek: vult de breedte van de kaart */
.wave-stats-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
 
/* Datapunten: licht hover-effect via CSS (geen JavaScript nodig) */
.wave-dot {
  cursor: default;
  transition: r 0.15s ease, opacity 0.15s ease;
}
 
.wave-dot:hover {
  r: 5;
  opacity: 0.85;
}
 
/* Meta-tekst onder de grafiek */
.wave-stats-meta {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
  letter-spacing: 0.02em;
}
 
/* Responsive: iets minder padding op kleine schermen */
@media (max-width: 768px) {
  .wave-stats-content {
    padding: 10px 12px 8px;
  }
 
  .wave-stats-meta {
    font-size: 10px;
  }
}