* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Sortelo Regular';
  src: url('Fonts/Sortelo\ Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f7fa;
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  animation: fadeInPage 1s ease-in-out forwards;
}

.header {
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  width: 100%;
  position: relative;
  z-index: 10;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.dashboard {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 20px 0px 20px;
  flex: 1; /* Pushed de footer naar beneden samen met margin-top: auto */
}

.logo-img {
  height: 85px;
  width: auto;
  max-width: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.logo-img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: #666;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-link[data-section="home"]:hover,
.nav-link[data-section="home"].active {
  color: #333;
  background: rgba(51, 51, 51, 0.1);
}
.nav-link[data-section="resultaten"]:hover,
.nav-link[data-section="resultaten"].active {
  color: #735fa5;
  background: rgba(115, 95, 165, 0.15);
}
.nav-link[data-section="statistieken"]:hover,
.nav-link[data-section="statistieken"].active {
  color: #ed7044;
  background: rgba(237, 112, 68, 0.15);
}

.dashboard-title {
  font-family: 'Sortelo Regular', cursive, sans-serif;
  font-size: 52px;
  font-weight: normal;
  color: #000000;
  margin-bottom: 40px;
  letter-spacing: -1px;
}

.content-section {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.6s ease forwards;
}

.content-section.active {
  display: block;
}

#resultaten, #statistieken {
  padding-bottom: 150px;
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  height: 100%;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.full-width-card {
  grid-column: 1 / -1; 
  height: auto; 
  min-height: unset; 
  margin-bottom: 40px; 
  padding: 50px;
}

.section-subtitle {
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 28px;
}

.card:hover,
.home-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.home-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: 280px;
}

.home-card-title {
  font-size: 18px;
  color: #333;
  font-weight: 500;
  margin-bottom: 15px;
}

.home-card-value {
  font-size: 44px;
  font-weight: 900;
  color: #000;
  margin-bottom: 25px;
  line-height: 1.2;
}

.image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e6e6e6 50%, #f0f0f0 100%);
  border-radius: 16px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: '📊';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  opacity: 0.3;
}

.image-placeholder.locked::before {
  content: '';
  width: 60px;
  height: 60px;
  background: url('images/locked.png') center/contain no-repeat;
  opacity: 0.5;
}

.action-btn {
  color: white;
  border: none;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}

.action-btn:disabled {
  background: #d3d3d3 !important;
  color: #888888 !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

.action-btn:disabled:hover {
  transform: none;
  filter: none;
  box-shadow: none !important;
}

.action-btn:not(:disabled):hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-green { background: linear-gradient(135deg, #70bc87, #85c99a); }
.btn-orange { background: linear-gradient(135deg, #ed7044, #f08d66); }
.btn-purple { background: linear-gradient(135deg, #735fa5, #8b79b5); }

.btn-green:not(:disabled):hover { box-shadow: 0 8px 20px rgba(112, 188, 135, 0.4); }
.btn-orange:not(:disabled):hover { box-shadow: 0 8px 20px rgba(237, 112, 68, 0.4); }
.btn-purple:not(:disabled):hover { box-shadow: 0 8px 20px rgba(115, 95, 165, 0.4); }

.info-block {
  margin-top: 60px;
  margin-bottom: 80px;
  max-width: 800px;
}

.info-block h4 {
  font-size: 18px;
  font-weight: 800;
  color: #000;
  margin-bottom: 10px;
}

.info-block p {
  font-size: 15px;
  color: #333;
  line-height: 1.8;
}

.detail-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.detail-overlay.active {
  display: flex;
  opacity: 1;
}

.detail-container {
  background: white;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transform: translateY(50px);
  transition: transform 0.4s ease;
}

.detail-overlay.active .detail-container {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #999;
  z-index: 10;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #333;
}

#detail-content {
  padding: 60px 40px 40px;
  overflow-y: auto;
}

.result-list {
  list-style: none;
  margin-top: 20px;
  width: 100%;
}

.result-item {
  background: #f8f9fa;
  padding: 18px 25px;
  border-radius: 12px;
  margin-bottom: 12px;
  border-left: 6px solid #735fa5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  text-align: left;
}

.result-label {
  font-weight: 800;
  display: block;
  color: #2c3e50;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 14px;
}

.result-value {
  color: #555;
  font-size: 16px;
}

.loading-text {
  text-align: center;
}

.chart-container {
  position: relative;
  width: 100%;
  max-height: 400px;
}

.chart-status {
  margin-top: 15px; 
  font-size: 14px; 
  color: #ed7044;
}

.footer-black {
  width: 100%; /* Zorgt dat hij volledig breed is */
  height: 150px;
  background-color: #222222;
  margin-top: auto;
}

@media (max-width: 992px) {
  .header-container {
    justify-content: center;
    flex-direction: column;
  }
  .nav {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .dashboard {
    padding: 40px 15px 0px 15px;
  }
  .dashboard-title {
    font-size: 38px;
    text-align: center;
  }
  .full-width-card {
    padding: 30px 20px;
  }
  .section-subtitle {
    font-size: 22px;
    text-align: center;
  }
  .home-card-value {
    font-size: 36px;
  }
  #resultaten, #statistieken {
    padding-bottom: 80px;
  }
  .info-block {
    text-align: center;
    margin: 40px auto;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .logo-img {
    height: 60px;
  }
  .dashboard-title {
    font-size: 30px;
  }
  .nav {
    gap: 10px;
  }
  .nav-link {
    font-size: 13px;
    padding: 8px 15px;
  }
  .card, .home-card {
    min-height: auto;
  }
}