/* ---------------------------
   BASISSTIJLEN
---------------------------- */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
}

/* ---------------------------
   NAVIGATIEBALK
---------------------------- */
.navbar {
  background: #4CAF50;
  color: white;
  padding: 10px 0;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  font-weight: 600;
  font-size: 20px;
}

.navbar nav a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  font-weight: 500;
}

.navbar nav a:hover {
  text-decoration: underline;
}

/* ---------------------------
   FOOTER
---------------------------- */
.footer {
  background: #2196F3;
  color: white;
  padding: 20px 0;
  margin-top: 40px;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer nav a {
  color: white;
  margin-left: 10px;
  text-decoration: none;
}

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

/* ---------------------------
   BUTTONS
---------------------------- */
button,
input[type=submit],
.button-primary {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

button:hover,
input[type=submit]:hover,
.button-primary:hover {
  background: #45a049;
}

.button-secondary {
  background: #2196F3;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
  display: inline-block;
}

.button-secondary:hover {
  background: #1976D2;
}

.button-danger {
  background: #e53935;
  color: #fff;
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
  display: inline-block;
}

.button-danger:hover {
  background: #c62828;
}

/* ---------------------------
   WIDGETS
---------------------------- */
.widget {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 35px;
}

.widget h2 {
  margin: 0;
  background: linear-gradient(90deg, #4CAF50 0%, #2196F3 100%);
  color: #fff;
  padding: 16px 20px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-body {
  padding: 28px 25px;
  background: #fcfcfc;
}

/* ---------------------------
   ACCOUNT PAGINA
---------------------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tabs button {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tabs button:hover {
  background: #c8e6c9;
}

.tabs button.active {
  background: #4CAF50;
  color: #fff;
  border-color: #4CAF50;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Tab inhoud */
.tab-content {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  animation: fadeIn 0.25s ease;
}

.tab-content h3 {
  color: #1b5e20;
  font-size: 18px;
  margin-bottom: 12px;
}

.tab-content label {
  font-weight: 600;
  color: #222;
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
}

.tab-content input[type=text],
.tab-content input[type=password],
.tab-content input[type=email],
.tab-content select {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  margin-bottom: 12px;
  transition: border 0.2s ease;
}

.tab-content input:focus {
  border-color: #4CAF50;
  outline: none;
  box-shadow: 0 0 3px rgba(76,175,80,0.4);
}

.tab-content label input[type=checkbox] {
  accent-color: #4CAF50;
  margin-right: 8px;
  transform: scale(1.2);
}

.tab-content .success-msg {
  display: none;
  color: #16a34a;
  font-weight: 600;
  margin-left: 10px;
}

/* Facturen & scans */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 15px;
  border-radius: 10px;
  overflow: hidden;
}

.styled-table th, .styled-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.styled-table th {
  background: #f9fafb;
  font-weight: 700;
}

.styled-table tr:hover {
  background: #f1fdf5;
}

/* Waarschuwingen */
.warning {
  color: #b91c1c;
  background: #fff0f0;
  border: 1px solid #f5b1b1;
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 15px;
  font-size: 14px;
}

/* ---------------------------
   RESPONSIVE
---------------------------- */
@media (max-width: 992px) {
  .widget-body {
    padding: 20px;
  }

  .tabs {
    gap: 6px;
  }

  .tabs button {
    flex: 1 1 45%;
    padding: 9px;
    font-size: 14px;
  }

  .tab-content {
    padding: 18px;
  }

  .tab-content input,
  .tab-content select {
    font-size: 14px;
  }

  .styled-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .widget h2 {
    font-size: 18px;
    text-align: center;
  }

  .tabs button {
    flex: 1 1 100%;
  }

  .tab-content label {
    margin-top: 8px;
  }

  .tab-content button {
    width: 100%;
    font-size: 15px;
    margin-top: 12px;
  }

  .warning {
    font-size: 13px;
    line-height: 1.5;
  }
}

/* ---------------------------
   ANIMATIES
---------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   ACCOUNT FORMULIER LAYOUT FIX
============================ */
#form-gegevens, #form-voorkeuren, #form-password {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 25px;
  align-items: start;
}

#form-gegevens label,
#form-voorkeuren label,
#form-password label {
  grid-column: span 2;
  font-weight: 600;
}

#form-gegevens input,
#form-password input,
#form-voorkeuren input[type=text] {
  width: 100%;
  box-sizing: border-box;
}

#form-voorkeuren label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

#form-voorkeuren input[type=checkbox] {
  transform: scale(1.2);
  accent-color: #4CAF50;
}

#form-gegevens button,
#form-voorkeuren button,
#form-password button {
  grid-column: span 2;
  justify-self: start;
  padding: 10px 18px;
  border-radius: 8px;
}

/* ✅ Beter spacing bij 2FA en waarschuwingen */
#beveiliging, #facturen, #scans {
  line-height: 1.6;
}

.warning {
  margin-top: 10px;
  margin-bottom: 15px;
}

/* 📱 Mobiel */
@media (max-width: 768px) {
  #form-gegevens,
  #form-voorkeuren,
  #form-password {
    grid-template-columns: 1fr;
  }

  #form-gegevens button,
  #form-voorkeuren button,
  #form-password button {
    width: 100%;
    justify-self: stretch;
  }

  .tabs button {
    flex: 1 1 100%;
  }
}

/* ============================
   FIX VOOR TABBLADEN ACCOUNT
============================ */
.tab-content {
  display: none;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  animation: fadeIn 0.25s ease;
}

.tab-content.active {
  display: block;
}

/* === Onboarding Styles === */
#onboarding-overlay {
  backdrop-filter: blur(5px);
  transition: opacity 0.4s ease;
}
#onboarding-box {
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.highlighted {
  position: relative;
  z-index: 10;
  outline: 3px solid #3B82F6;
  outline-offset: 3px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(59,130,246,0.4);
  transition: all 0.3s ease;
  animation: pulseHighlight 1.4s infinite;
}
@keyframes pulseHighlight {
  0% { box-shadow: 0 0 10px rgba(59,130,246,0.4); }
  50% { box-shadow: 0 0 25px rgba(59,130,246,0.7); }
  100% { box-shadow: 0 0 10px rgba(59,130,246,0.4); }
}
