/* ===== Css/style.css ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* THEMA VARIABELEN */
:root {
  --bg: #f4f4f4;
  --card-bg: #ffffff;
  --text: #000000;
  --accent: #139ed0;
}

[data-theme="dark"] {
  --bg: #0d1117;
  --card-bg: #161b22;
  --text: #ffffff;
  --accent: #58a6ff;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 72px;
}

.app-header {
  background-color: var(--accent);
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-logo {
  font-size: 50px;
}

.app-titel {
  font-size: 24px;
  font-weight: bold;
}

/* FIX SELECT */
select,
.settings-select {
  padding: 10px;
  font-size: 18px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: white;
  width: 160px;
  outline: none;
  display: block;
}

/* FIX SETTINGS ICON / LINK */
.nav-icon-settings {
  font-size: 40px;
  color: white;
  text-decoration: none;
}

.app-header a,
.app-header a:visited,
.app-header a:hover,
.app-header a:active {
  text-decoration: none;
  color: inherit;
}

.cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.card {
  background-color: var(--card-bg);
  color: var(--text);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* RECENTE METINGEN */
.sectie-titel {
  font-size: 22px;
  font-weight: bold;
  color: var(--accent);
  padding: 0 20px;
  margin-top: 10px;
}

#recente-lijst {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.meting-item {
  background-color: var(--card-bg);
  color: var(--text);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.meting-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.meting-waarden {
  font-size: 18px;
  font-weight: bold;
  color: var(--text);
}

.meting-notitie {
  font-size: 14px;
  color: #666;
}

[data-theme="dark"] .meting-notitie {
  color: #9ca3af;
}

.meting-datum {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent);
  text-align: right;
}

.leeg-tekst {
  color: #666;
  font-size: 16px;
  text-align: center;
  padding: 20px;
}

[data-theme="dark"] .leeg-tekst {
  color: #9ca3af;
}

/* GESCHIEDENIS / SETTINGS SECTIES */
.geschiedenis-item,
.settings-section {
  background-color: var(--card-bg);
  color: var(--text);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 16px 20px;
  margin: 16px 20px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 16px;
  cursor: pointer;
}

/* NAVBAR */
.Bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: var(--accent);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.Bottom-nav a,
.Bottom-nav a:visited,
.Bottom-nav a:hover,
.Bottom-nav a:active {
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-icon {
  font-size: 24px;
  align-self: center;
}

.Bottom-nav a.active {
  color: #000000;
  font-weight: bold;
}
