* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.navbar-brand {
  font-weight: bold;
  font-size: 20px;
  color: #343a40;
  text-decoration: none;
}

.navbar-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1001;
}

.navbar-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #343a40;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar .navbar-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(90deg) !important;
}
.navbar .navbar-toggle.is-active span:nth-child(2) {
  opacity: 0 !important;
}
.navbar .navbar-toggle.is-active span:nth-child(3) {
  opacity: 0 !important;
}


.navbar-links {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background-color: white;
  flex-direction: column;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 8px 10px rgba(0,0,0,0.1);
}

.navbar-links.is-active {
  display: flex;
}

.navbar-links li {
  width: 100%;
  text-align: center;
}

.navbar-links a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #343a40;
  font-weight: bold;
  border-bottom: 1px solid #f1f1f1;
  transition: background-color 0.3s ease;
}

.navbar-links a:hover {
  background-color: #e9ecef;
}

.navbar-links a.active {
  background-color: #007bff;
  color: #fff;
}

.container {
  margin-top: 80px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 40px;
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

h1 {
  color: #343a40;
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

select,
input {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border: 1px solid #ced4da;
  border-radius: 5px;
  font-size: 16px;
}

button {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

button:hover {
  background-color: #0056b3;
}

.results {
  margin-top: 30px;
  text-align: left;
}

.results h2 {
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 5px;
}

.results ul {
  list-style: none;
  padding: 0;
}

.results li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
}

.filter-section {
  margin-top: 20px;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.filter-section h2 {
  margin-bottom: 10px;
  color: #495057;
  grid-column: 1 / -1;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 5px;
}

.filter-section > div {
  margin-bottom: 10px;
}

#errorContainer {
  color: #fff;
  background-color: #dc3545;
  padding: 10px;
  border-radius: 5px;
  margin: 15px 0;
  display: none;
}

.graphs-section {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.graphs-section.layout-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.graphs-section.layout-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.graphs-section h2 {
  grid-column: 1 / -1;
  color: #495057;
  margin: 0 0 0 0;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 5px;
}


.graphs-section h2, .graphs-section .layout-controls {
  grid-column: 1 / -1; /* Zorgt dat titel en knoppen altijd de volle breedte pakken */
}


.graph-container {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 15px;
  min-height: 550px;
  max-height: 550px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

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



.graph-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.graph-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.graph-modal-content {
  position: relative;
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  height: 85%;
  max-width: 1100px;
}

#modalGraphContainer {
  width: 100%;
  height: 100%;
}

.graph-modal-close {
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 35px;
  line-height: 1;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}


.layout-controls {
  grid-column: 1 / -1;
  margin-bottom: 20px;
  text-align: right;
}

.layout-btn {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 8px;
  margin: 0 0 0 5px;
  cursor: pointer;
  border-radius: 5px;
  color: #555;
  transition: all 0.2s ease;
}

.layout-btn:hover {
  background-color: #e0e0e0;
  border-color: #bbb;
}

.layout-btn.active {
  background-color: #007bff;
  border-color: #0056b3;
  color: white;
}

.layout-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}


.dienst-item {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.dienst-item:hover {
  background-color: #f8f9fa;
}

.dienst-item.active {
  background-color: #e0eaff;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.suggestie-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 5px;
  color: #333;
}

.status-beschikbaar {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}
.status-onbekend {
  background-color: #e9ecef;
  border: 1px solid #ced4da;
}
.status-onbeschikbaar {
  background-color: #6c757d;
  color: white;
  border: 1px solid #5a6268;
}

.suggestie-item span {
  font-weight: bold;
}

.suggestie-item span .let-op-icoon {
  color: inherit;
  margin-left: 8px;
  font-weight: bold;
}

.no-number-info {
  font-style: italic;
  color: #6c757d;
  font-size: 14px;
}

.whatsapp-button {
  background-color: #25D366;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.whatsapp-button:hover {
  background-color: #1EBE57;
}

.info-box {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 15px;
  margin-top: 5px;
  font-size: 14px;
}

.info-box ul {
  margin: 5px 0 0 20px;
  padding: 0;
}

.intro-text {
  font-size: 1.1em;
  color: #6c757d;
  margin-bottom: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.feature-card {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 25px;
  text-decoration: none;
  color: #343a40;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-card h3 {
  margin-top: 0;
  color: #007bff;
}

.auth-links {
  margin-top: 20px;
  text-align: center;
}

.auth-links a.btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin: 5px;
}

.auth-links a.btn:hover {
  background-color: #0056b3;
}

.auth-links button {
  background-color: transparent;
  color: #007bff;
  border: 1px solid #007bff;
  padding: 10px 15px;
  margin: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-links button:hover {
  background-color: #007bff;
  color: white;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  top: 65%;
  transform: translateY(-50%);
  right: 15px;
  cursor: pointer;
  color: #6c757d;
  width: 20px;
  height: 20px;
}

.toggle-password svg {
  width: 100%;
  height: 100%;
}

.toggle-password .icon-eye {
  display: block;
}
.toggle-password .icon-eye-slash {
  display: none;
}

.toggle-password.is-active .icon-eye {
  display: none;
}

.toggle-password.is-active .icon-eye-slash {
  display: block;
}

.success-box {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 10px;
  border-radius: 5px;
  margin: 15px 0;
}

body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-content {
  transform: translateY(0);
}

.modal-close-button {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close-button:hover {
  color: #333;
}

#suggestie-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
}

#suggestie-lijst {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  padding-right: 15px;
  margin-top: 15px;
}


.whatsapp-message-editor {
  margin-top: 20px;
  border-top: 1px solid #dee2e6;
  padding-top: 20px;
}

.whatsapp-message-editor label {
  font-size: 14px;
  color: #495057;
  margin-bottom: 8px;
}

.whatsapp-message-editor textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical; /* Staat toe dat de gebruiker de hoogte aanpast */
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  font-family: inherit; /* Gebruikt hetzelfde lettertype als de rest van de site */
  font-size: 15px;
  line-height: 1.5;
}

.whatsapp-preview {
  margin-top: 15px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 5px;
  padding: 15px;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.6;
}

.whatsapp-preview strong {
  display: block;
  color: #343a40;
  margin-bottom: 5px;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-group input {
  flex-grow: 1;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

@media (max-width: 600px) {
  .filter-section {
    grid-template-columns: 1fr;
  }

  .filter-section h2 {
    grid-column: 1 / -1;
  }
}


@media (min-width: 1000px) {
  .navbar-toggle {
    display: none;
  }
  .navbar-links {
    display: flex;
    position: static;
    flex-direction: row;
    width: auto;
    background-color: transparent;
    box-shadow: none;
  }
  .navbar-links li {
    margin: 0 15px;
    width: auto;
  }
  .navbar-links a {
    border-bottom: none;
    padding: 8px 16px;
    border-radius: 5px;
  }
}