/* /assets/css/footer-legal-stats.css */

/* Links & Iconen Footer Bottom */
.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-legal-btn {
  background: none;
  border: none;
  padding: 0;
  color: #717684;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.footer-legal-btn:hover {
  color: #c29b38;
}

.footer-legal-divider {
  color: #3b3f4d;
  font-size: 0.75rem;
}

.stats-chart-icon {
  color: #c29b38;
}

.stats-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #22c55e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  line-height: 1.2;
}

.stats-active-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
  display: inline-block;
}

/* ==========================================================================
   Slide-in Drawers (Cookies & Privacy)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 13, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.legal-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #111319;
  z-index: 9999;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-left {
  left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(-100%);
}

.drawer-left.active {
  transform: translateX(0);
}

.drawer-right {
  right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(100%);
}

.drawer-right.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.drawer-lock-icon {
  display: inline-block;
  color: #c29b38;
}

.drawer-title h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: #717684;
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.drawer-close-btn:hover {
  color: #ffffff;
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.drawer-intro {
  color: #a0a5b5;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.drawer-card {
  background: #161822;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #717684;
  font-weight: 700;
}

.drawer-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-card-sub {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 4px 0 0;
}

/* Tracking Badges */
.tracking-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  width: fit-content;
}

.tracking-badge.enabled {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.tracking-badge.enabled .tracking-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
}

.tracking-badge.disabled {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.tracking-badge.disabled .tracking-dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px #ef4444;
}

/* Switch & Buttons */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #282c39;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #c29b38;
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.btn-delete-data {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
}

.btn-delete-data:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
}

.drawer-feedback-msg {
  color: #22c55e;
  font-size: 0.78rem;
  margin: 4px 0 0;
  min-height: 16px;
}

.drawer-note {
  color: #717684;
  font-size: 0.76rem;
  line-height: 1.4;
  margin-top: auto;
}

/* Privacy Drawer */
.privacy-body {
  gap: 16px;
}

.privacy-section h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin: 0 0 6px 0;
  font-weight: 600;
}

.privacy-section p {
  color: #a0a5b5;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
}

.drawer-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #0d0e14;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.privacy-updated-text {
  font-size: 0.75rem;
  color: #717684;
}

.privacy-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.privacy-status-pill.on {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #22c55e;
}

.privacy-status-pill.on .privacy-status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
}

.privacy-status-pill.off {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.privacy-status-pill.off .privacy-status-dot {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px #ef4444;
}

/* ==========================================================================
   Modals & Live Statistieken Display
   ========================================================================== */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.legal-modal-box {
  background: #111319;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.legal-modal-header h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0;
}

.legal-modal-close {
  background: none;
  border: none;
  color: #717684;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.legal-modal-close:hover {
  color: #ffffff;
}

.legal-cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: 24px;
  max-width: 440px;
  margin-left: auto;
  background: #161822;
  border: 1px solid rgba(194, 155, 56, 0.35);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 9997;
}

.cookie-banner-content h4 {
  color: #ffffff;
  font-size: 1rem;
  margin: 0 0 8px;
}

.cookie-banner-content p {
  color: #a0a5b5;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 16px;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
}

.btn-sm {
  padding: 0.45rem 0.9rem !important;
  font-size: 0.82rem !important;
}

/* Stats Elementen */
.stats-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.stats-card {
  background: #161822;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.stats-card-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #c29b38;
  display: block;
}

.stats-card-lbl {
  font-size: 0.75rem;
  color: #717684;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.stats-section-block {
  margin-bottom: 20px;
}

.stats-section-block h4 {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

/* Device Meter Balk (Punt 2) */
.stats-device-meter {
  background: #161822;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
}

.device-meter-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #232734;
  margin-bottom: 10px;
}

.device-bar-fill.mobile {
  background: #c29b38;
  transition: width 0.4s ease;
}

.device-bar-fill.desktop {
  background: #3b82f6;
  transition: width 0.4s ease;
}

.device-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #a0a5b5;
}

.device-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.device-dot.mob { background: #c29b38; }
.device-dot.dsk { background: #3b82f6; }

/* Lijsten met Data */
.stats-data-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats-data-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.stats-data-list li:first-child {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.stats-data-list li:last-child {
  border-bottom: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.stats-empty-li {
  color: #717684 !important;
  font-style: italic;
  justify-content: center !important;
}

.stats-item-name {
  color: #ffffff;
}

.stats-item-val {
  color: #c29b38;
  font-weight: 600;
}