/* ═══════════════════════════════════════════════════════════════════════════
   Doctor Eve - Wachttijden Floating Button
   Premium, polished themes matching modern web standards
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --doctoreve-fab-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --doctoreve-fab-primary: #059669;
  --doctoreve-fab-primary-hover: #047857;
  --doctoreve-fab-primary-subtle: rgba(5, 150, 105, 0.1);
  
  --doctoreve-fab-text-main: #1e293b;
  --doctoreve-fab-text-sub: #64748b;
  --doctoreve-fab-text-muted: #94a3b8;
  
  --doctoreve-fab-bg-surface: #ffffff;
  --doctoreve-fab-bg-subtle: #f8fafc;
  --doctoreve-fab-bg-hover: #f1f5f9;
  
  --doctoreve-fab-border: #e2e8f0;
  
  --doctoreve-fab-radius-sm: 8px;
  --doctoreve-fab-radius-md: 12px;
  --doctoreve-fab-radius-lg: 16px;
  
  --doctoreve-fab-shadow-fab: 0 4px 12px rgba(5, 150, 105, 0.25), 0 8px 24px rgba(5, 150, 105, 0.15);
  --doctoreve-fab-shadow-card: 0 20px 40px -4px rgba(15, 23, 42, 0.1), 0 8px 16px -4px rgba(15, 23, 42, 0.05);
  
  --doctoreve-fab-backdrop: rgba(15, 23, 42, 0.2);
  --doctoreve-fab-backdrop-blur: 4px;
}

.doctoreve-wt-fab-root {
  position: relative;
  z-index: 2147483647;
  font-family: var(--doctoreve-fab-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

.doctoreve-wt-backdrop[hidden],
.doctoreve-wt-modal[hidden] {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Floating Action Button
   ═══════════════════════════════════════════════════════════════════════════ */

.doctoreve-wt-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483647;
  
  display: inline-flex;
  align-items: center;
  gap: 10px;
  
  padding: 14px 22px;
  border: none;
  border-radius: 99px;
  
  background: var(--doctoreve-fab-primary);
  color: #ffffff;
  
  font-family: var(--doctoreve-fab-font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  
  cursor: pointer;
  box-shadow: var(--doctoreve-fab-shadow-fab);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.doctoreve-wt-fab:hover {
  transform: translateY(-2px);
  background: var(--doctoreve-fab-primary-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.doctoreve-wt-fab:active {
  transform: translateY(0);
}

.doctoreve-wt-fab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctoreve-wt-fab__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5px;
}

@media (min-width: 640px) {
  .doctoreve-wt-fab-root.doctoreve-wt-visible .doctoreve-wt-fab {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Backdrop & Modal
   ═══════════════════════════════════════════════════════════════════════════ */

.doctoreve-wt-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: var(--doctoreve-fab-backdrop);
  backdrop-filter: blur(var(--doctoreve-fab-backdrop-blur));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.doctoreve-wt-fab-root.doctoreve-wt-visible .doctoreve-wt-backdrop {
  opacity: 1;
}

.doctoreve-wt-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

@media (min-width: 640px) {
  .doctoreve-wt-modal {
    inset: auto;
    right: 24px;
    bottom: 90px;
    padding: 0;
    align-items: flex-end;
    justify-content: flex-end;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Card
   ═══════════════════════════════════════════════════════════════════════════ */

.doctoreve-wt-card {
  pointer-events: auto;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  
  display: flex;
  flex-direction: column;
  
  background: var(--doctoreve-fab-bg-surface);
  border: 1px solid var(--doctoreve-fab-border);
  border-radius: var(--doctoreve-fab-radius-lg);
  box-shadow: var(--doctoreve-fab-shadow-card);
  
  overflow: hidden;
  
  opacity: 0;
  transform: translateY(16px) scale(0.96);
}

@media (min-width: 640px) {
  .doctoreve-wt-card {
    width: 380px;
    max-height: 600px;
    transform-origin: bottom right;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════════════════════════════════ */

.doctoreve-wt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  background: var(--doctoreve-fab-bg-surface);
  border-bottom: 1px solid var(--doctoreve-fab-border);
  flex-shrink: 0;
}

.doctoreve-wt-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--doctoreve-fab-text-main);
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.doctoreve-wt-count {
  font-size: 14px;
  font-weight: 500;
  color: var(--doctoreve-fab-text-muted);
  background: var(--doctoreve-fab-bg-subtle);
  padding: 2px 8px;
  border-radius: 99px;
}

.doctoreve-wt-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--doctoreve-fab-text-muted);
  border-radius: var(--doctoreve-fab-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.doctoreve-wt-close:hover {
  background: var(--doctoreve-fab-bg-hover);
  color: var(--doctoreve-fab-text-main);
}

.doctoreve-wt-close svg {
  width: 20px;
  height: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Body
   ═══════════════════════════════════════════════════════════════════════════ */

.doctoreve-wt-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--doctoreve-fab-bg-surface);
  
  scrollbar-width: thin;
  scrollbar-color: var(--doctoreve-fab-border) transparent;
}

.doctoreve-wt-body::-webkit-scrollbar {
  width: 6px;
}
.doctoreve-wt-body::-webkit-scrollbar-track {
  background: transparent;
}
.doctoreve-wt-body::-webkit-scrollbar-thumb {
  background-color: var(--doctoreve-fab-border);
  border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Search
   ═══════════════════════════════════════════════════════════════════════════ */

.doctoreve-wt-search {
  position: relative;
  margin-bottom: 16px;
}

.doctoreve-wt-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--doctoreve-fab-text-muted);
  pointer-events: none;
}

.doctoreve-wt-search-input {
  width: 100%;
  padding: 12px 40px 12px 42px;
  font-family: var(--doctoreve-fab-font);
  font-size: 14px;
  color: var(--doctoreve-fab-text-main);
  background: var(--doctoreve-fab-bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--doctoreve-fab-radius-md);
  transition: all 0.2s ease;
}

.doctoreve-wt-search-input::placeholder {
  color: var(--doctoreve-fab-text-muted);
}

.doctoreve-wt-search-input:focus {
  outline: none;
  background: var(--doctoreve-fab-bg-surface);
  border-color: var(--doctoreve-fab-primary);
  box-shadow: 0 0 0 3px var(--doctoreve-fab-primary-subtle);
}

.doctoreve-wt-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--doctoreve-fab-text-muted);
  cursor: pointer;
  border-radius: 50%;
}

.doctoreve-wt-search-clear.visible { display: flex; }
.doctoreve-wt-search-clear:hover { background: rgba(0,0,0,0.05); color: var(--doctoreve-fab-text-main); }
.doctoreve-wt-search-clear svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════════════════════
   List
   ═══════════════════════════════════════════════════════════════════════════ */

.doctoreve-wt-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doctoreve-wt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--doctoreve-fab-radius-md);
  background: transparent;
  transition: background 0.15s ease;
  cursor: default;
}

.doctoreve-wt-row:hover {
  background: var(--doctoreve-fab-bg-hover);
}

.doctoreve-wt-left {
  flex: 1;
  min-width: 0;
}

.doctoreve-wt-treatment {
  font-size: 15px;
  font-weight: 600;
  color: var(--doctoreve-fab-text-main);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doctoreve-wt-specialism {
  font-size: 13px;
  color: var(--doctoreve-fab-text-sub);
}

.doctoreve-wt-cta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--doctoreve-fab-text-muted);
  transition: color 0.15s;
}

.doctoreve-wt-row:hover .doctoreve-wt-cta {
  color: var(--doctoreve-fab-primary);
}

.doctoreve-wt-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.doctoreve-wt-row:hover .doctoreve-wt-cta svg {
  transform: translateX(3px);
}

.doctoreve-wt-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.doctoreve-wt-time {
  font-size: 15px;
  font-weight: 700;
  color: var(--doctoreve-fab-primary);
  line-height: 1.2;
}

.doctoreve-wt-time-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--doctoreve-fab-text-muted);
  margin-top: 2px;
}

.doctoreve-wt-time-label svg {
  width: 12px;
  height: 12px;
}

.doctoreve-wt-type {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--doctoreve-fab-text-sub);
  background: var(--doctoreve-fab-bg-subtle);
  border: 1px solid var(--doctoreve-fab-border);
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Footer & Empty
   ═══════════════════════════════════════════════════════════════════════════ */

.doctoreve-wt-show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: none;
  background: transparent;
  color: var(--doctoreve-fab-text-sub);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--doctoreve-fab-radius-sm);
  transition: all 0.2s;
}

.doctoreve-wt-show-more:hover {
  background: var(--doctoreve-fab-bg-subtle);
  color: var(--doctoreve-fab-text-main);
}

.doctoreve-wt-show-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.doctoreve-wt-show-more.expanded svg { transform: rotate(180deg); }

.doctoreve-wt-empty {
  text-align: center;
  padding: 40px 20px;
}
.doctoreve-wt-empty-icon {
  color: var(--doctoreve-fab-text-muted);
  margin-bottom: 12px;
}
.doctoreve-wt-empty-icon svg { width: 40px; height: 40px; stroke-width: 1.5px; opacity: 0.5; }
.doctoreve-wt-empty-text { font-size: 15px; font-weight: 600; color: var(--doctoreve-fab-text-main); margin-bottom: 4px; }
.doctoreve-wt-empty-subtext { font-size: 13px; color: var(--doctoreve-fab-text-sub); }

.doctoreve-wt-footer {
  text-align: center;
  padding: 12px;
  border-top: 1px solid var(--doctoreve-fab-border);
  background: var(--doctoreve-fab-bg-subtle);
}

.doctoreve-wt-powered {
  font-size: 11px;
  font-weight: 500;
  color: var(--doctoreve-fab-text-muted);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.doctoreve-wt-powered:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════════════════════════════════ */

.doctoreve-wt-open .doctoreve-wt-card {
  animation: doctoreveWtEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.doctoreve-wt-close-anim .doctoreve-wt-card {
  animation: doctoreveWtExit 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes doctoreveWtEnter {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes doctoreveWtExit {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(12px) scale(0.96); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   THEMES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Corporate */
.doctoreve-wt-fab-root[data-theme="corporate"] {
  --doctoreve-fab-primary: #2563eb;
  --doctoreve-fab-primary-hover: #1d4ed8;
  --doctoreve-fab-primary-subtle: rgba(37, 99, 235, 0.1);
  --doctoreve-fab-radius-sm: 4px;
  --doctoreve-fab-radius-md: 6px;
  --doctoreve-fab-radius-lg: 8px;
  --doctoreve-fab-shadow-fab: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -1px rgba(37, 99, 235, 0.1);
}

.doctoreve-wt-fab-root[data-theme="corporate"] .doctoreve-wt-fab {
  border-radius: 6px;
}

.doctoreve-wt-fab-root[data-theme="corporate"] .doctoreve-wt-header {
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
}

/* Soft */
.doctoreve-wt-fab-root[data-theme="soft"] {
  --doctoreve-fab-primary: #f59e0b;
  --doctoreve-fab-primary-hover: #d97706;
  --doctoreve-fab-primary-subtle: rgba(245, 158, 11, 0.15);
  --doctoreve-fab-text-main: #451a03;
  --doctoreve-fab-text-sub: #78350f;
  --doctoreve-fab-border: #fef3c7;
  --doctoreve-fab-bg-hover: #fffbeb;
  --doctoreve-fab-bg-subtle: #fff7ed;
  --doctoreve-fab-radius-sm: 12px;
  --doctoreve-fab-radius-md: 16px;
  --doctoreve-fab-radius-lg: 24px;
  --doctoreve-fab-shadow-fab: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.doctoreve-wt-fab-root[data-theme="soft"] .doctoreve-wt-fab {
  padding: 16px 26px;
  font-weight: 700;
}

.doctoreve-wt-fab-root[data-theme="soft"] .doctoreve-wt-header {
  background: linear-gradient(to bottom, #fffbeb, #ffffff);
}

/* Dark */
.doctoreve-wt-fab-root[data-theme="dark"] {
  --doctoreve-fab-bg-surface: #0f172a;
  --doctoreve-fab-bg-subtle: #1e293b;
  --doctoreve-fab-bg-hover: #334155;
  --doctoreve-fab-border: #334155;
  --doctoreve-fab-text-main: #f8fafc;
  --doctoreve-fab-text-sub: #cbd5e1;
  --doctoreve-fab-text-muted: #94a3b8;
  --doctoreve-fab-primary: #38bdf8;
  --doctoreve-fab-primary-hover: #0ea5e9;
  --doctoreve-fab-primary-subtle: rgba(56, 189, 248, 0.15);
  --doctoreve-fab-shadow-fab: 0 0 20px rgba(56, 189, 248, 0.4);
  --doctoreve-fab-backdrop: rgba(0, 0, 0, 0.7);
}

.doctoreve-wt-fab-root[data-theme="dark"] .doctoreve-wt-fab {
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid #38bdf8;
}

.doctoreve-wt-fab-root[data-theme="dark"] .doctoreve-wt-card {
  border: 1px solid #334155;
}

.doctoreve-wt-fab-root[data-theme="dark"] .doctoreve-wt-header {
  background: #0f172a;
  border-bottom: 1px solid #334155;
}

.doctoreve-wt-fab-root[data-theme="dark"] .doctoreve-wt-search-input {
  background: #020617;
  border-color: #334155;
  color: #fff;
}

.doctoreve-wt-fab-root[data-theme="dark"] .doctoreve-wt-footer {
  background: #020617;
}

.doctoreve-wt-fab-root[data-theme="dark"] .doctoreve-wt-type {
  background: #1e293b;
  color: #94a3b8;
  border-color: #334155;
}

/* Minimal */
.doctoreve-wt-fab-root[data-theme="minimal"] {
  --doctoreve-fab-primary: #171717;
  --doctoreve-fab-primary-hover: #404040;
  --doctoreve-fab-bg-surface: #ffffff;
  --doctoreve-fab-bg-subtle: #ffffff;
  --doctoreve-fab-bg-hover: #fafafa;
  --doctoreve-fab-border: #f5f5f5;
  --doctoreve-fab-shadow-fab: 0 2px 8px rgba(0, 0, 0, 0.08);
  --doctoreve-fab-shadow-card: 0 8px 30px rgba(0, 0, 0, 0.04);
  --doctoreve-fab-radius-lg: 0px;
  --doctoreve-fab-radius-md: 0px;
  --doctoreve-fab-radius-sm: 0px;
  --doctoreve-fab-backdrop: rgba(255, 255, 255, 0.8);
}

.doctoreve-wt-fab-root[data-theme="minimal"] .doctoreve-wt-fab {
  background: #ffffff;
  color: #171717;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.doctoreve-wt-fab-root[data-theme="minimal"] .doctoreve-wt-card {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.doctoreve-wt-fab-root[data-theme="minimal"] .doctoreve-wt-header {
  border-bottom: none;
  padding-bottom: 0;
}

.doctoreve-wt-fab-root[data-theme="minimal"] .doctoreve-wt-title {
  font-weight: 500;
  font-size: 20px;
}

.doctoreve-wt-fab-root[data-theme="minimal"] .doctoreve-wt-count {
  display: none;
}

.doctoreve-wt-fab-root[data-theme="minimal"] .doctoreve-wt-footer {
  background: transparent;
  border: none;
}

/* Button Color Override */
.doctoreve-wt-fab-root[style*="--doctoreve-fab-button-color"] .doctoreve-wt-fab {
  background: var(--doctoreve-fab-button-color) !important;
  color: #ffffff !important;
  border: none !important;
}
