/* Bespaar.ai Custom Styling - Light Theme */

/* Nieuws Card Styling met Moderne Effecten */
/* Basis card hover effect - verbeterd met moderne animaties */
.hover-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(222, 226, 230, 0.8);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    backface-visibility: hidden;
    will-change: transform, box-shadow, border-color;
}

.hover-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(125, 156, 255, 0.4);
}

.hover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(125, 156, 255, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.hover-card:hover::before {
    opacity: 1;
}

/* Moderne zoom effecten voor afbeeldingen met verbeterde vloeiendheid */
.hover-card .card-img-top {
    transition: all 0.7s cubic-bezier(0.32, 0.72, 0, 1);
    transform-origin: center;
}

.hover-card:hover .card-img-top {
    transform: scale(1.08);
}

/* Voeg een subtiele overlay toe bij hover met verbeterde kleuren */
.card .position-relative {
    overflow: hidden;
}

.card .position-relative::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(67, 97, 238, 0.15), rgba(67, 97, 238, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hover-card:hover .position-relative::after {
    opacity: 1;
}

/* Categorie badges animatie - verbeterd met gloed effect */
.badge {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 2;
}

.hover-card:hover .badge {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Badge gloed effect bij hover */
.badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.hover-card:hover .badge::after {
    opacity: 0.4;
}

/* Moderne filter badges voor categorie filtering met 3D effect */
.filter-badge {
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 8px 16px !important;
    margin-right: 6px;
    margin-bottom: 8px;
    font-weight: 600;
    border: 1px solid transparent;
    z-index: 1;
    transform-style: preserve-3d;
    perspective: 800px;
}

.filter-badge:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.filter-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.filter-badge:hover::before {
    opacity: 1;
}

/* Maak de kaart titels interactiever met subtiele text-shadow */
.card-title {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.hover-card:hover .card-title {
    color: var(--primary-color);
    transform: translateY(-2px);
    text-shadow: 0 2px 10px rgba(125, 156, 255, 0.15);
}

/* Verbeterde button animatie voor 'Lees verder' */
.hover-card .btn-outline-primary {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hover-card:hover .btn-outline-primary {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(125, 156, 255, 0.2);
    color: white !important;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Verbeterde datum en auteur styling */
.hover-card .text-muted {
    transition: all 0.3s ease;
}

.hover-card:hover .text-muted {
    color: var(--gray-700) !important;
}

/* Upload button active state */
#upload-button:not([disabled]) {
  animation: pulse 1.2s ease-in-out;
  box-shadow: 0 5px 15px rgba(0, 120, 255, 0.2);
  transition: all 0.3s ease;
}

#upload-button:not([disabled]):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 120, 255, 0.3);
}

/* PDF Button styling - Improved contrast on hover */
.btn-outline-primary:hover {
  color: #fff !important;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* Extra styling voor Lees verder buttons om leesbaarheid te garanderen bij hover */
.btn-sm.btn-outline-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
  border: 1px solid var(--primary-color);
}

.btn-sm.btn-outline-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-sm.btn-outline-primary:hover {
  color: #fff !important;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(67, 97, 238, 0.2);
}

.btn-sm.btn-outline-primary:hover::before {
  transform: translateX(0);
}

/* Ensure most buttons have good contrast on hover */
.btn:hover {
  color: #fff !important;
}

/* Uitzondering voor link buttons zodat tekst leesbaar blijft op lichte achtergronden */
.btn-link:hover, 
a.btn-link:hover, 
button.btn-link:hover {
  color: var(--primary-color) !important;
  text-decoration: underline !important;
  background-color: transparent !important;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 120, 255, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 120, 255, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 120, 255, 0.2);
  }
}

/* Mega Menu Styling */
.mega-menu {
  padding: 2rem;
  left: 0;
  right: 0;
  background: white;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  transform-origin: top center;
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  display: block;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 16px 16px;
}

.dropdown-menu.show.mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-item {
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.mega-menu-item:hover {
  color: var(--primary-color);
  background-color: rgba(125, 156, 255, 0.05);
  transform: translateX(5px);
}

.mega-menu-item.active {
  color: var(--primary-color);
  background-color: rgba(125, 156, 255, 0.1);
  font-weight: 500;
}

/* Desktop mega-menu styling */
@media (min-width: 992px) {
  .mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    width: 100% !important;
    border: none;
    background-color: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.08);
    padding: 1.5rem 0;
    transform: translateY(0);
  }
  
  .position-lg-static {
    position: static !important;
  }
  
  /* Zorg dat het megamenu de juiste breedte heeft */
  .position-lg-static .mega-menu {
    left: 0;
    right: 0;
  }
  
  /* Styling voor de mega-menu items op desktop */
  .mega-menu-item {
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
  }
  
  /* Zorg voor de juiste kolombreedte */
  .mega-menu .container {
    max-width: 1320px;
    margin: 0 auto;
  }
}

@media (max-width: 991px) {
  .position-static, .position-lg-static {
    position: relative !important;
  }
  
  /* Verbeterde dropdown stijlen voor mobiel */
  .nav-item.dropdown {
    position: static;
  }
  
  /* Mega-menu styling voor mobiel */
  .mega-menu {
    width: 100% !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out;
    position: static;
    opacity: 0;
    padding: 0;
    margin: 0;
    border: none;
    background-color: white;
  }
  
  /* Alleen tonen wanneer geopend */
  .mega-menu.show {
    max-height: 80vh;
    overflow-y: auto;
    opacity: 1;
    padding: 1rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  /* Fix voor mobiel navigatiemenu bij uitklappen */
  .mobile-menu-fix {
    position: relative !important;
  }
  
  /* Zorg dat het menu weer sluit na klikken */
  .dropdown-menu.mega-menu .container {
    padding-bottom: 15px;
  }
  
  /* Extra padding voor onderste items */
  .mega-menu-item:last-child {
    margin-bottom: 10px;
  }
  
  /* Algemene dropdown menu styling voor mobiel */
  .navbar-collapse .nav-item.dropdown .dropdown-menu {
    display: none;
    margin: 0;
    border: none;
    transition: all 0.3s ease;
    box-shadow: none;
    background-color: rgba(0,0,0,0.02);
  }
  
  /* Toon alleen bij actieve dropdown */
  .navbar-collapse .nav-item.dropdown .dropdown-menu.show {
    display: block;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  /* Animatie voor dropdown toggler icon */
  .navbar-collapse .nav-item.dropdown .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }
  
  .navbar-collapse .nav-item.dropdown .dropdown-toggle::after {
    transition: transform 0.2s ease;
  }
  
  /* Dropdown items op mobiel */
  .navbar-collapse .nav-item.dropdown .dropdown-menu .dropdown-item {
    padding-left: 1.5rem;
  }
  
  /* Verbeter visuele feedback voor actieve menu-items */
  .navbar-collapse .nav-link:hover, 
  .navbar-collapse .nav-link:focus,
  .navbar-collapse .dropdown-item:hover,
  .navbar-collapse .dropdown-item:focus {
    background-color: rgba(125, 156, 255, 0.05);
  }
}

/* Global Styles */
:root {
  --primary-color: #7d9cff;
  --secondary-color: #c099ff;
  --accent-color: #67d4ff;
  --tertiary-color: #ffb7d5;
  --success-color: #a5dfbe;
  --warning-color: #ffe8a3;
  /* Conversie kleur aangepast naar groen */
  --conversion-color: #3cb371; /* Groene kleur voor conversie buttons */
  --conversion-hover-color: #2e8f59; /* Donkerdere groene kleur voor hover effect */
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* Foto objectpassing klassen */
  --img-overlay-opacity: 0.15;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #fff;
}

/* Custom spacing utilities */
.py-6 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 992px) {
  .py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* Utilities for rounded corners */
.rounded-4 {
  border-radius: 1rem !important;
}

.rounded-5 {
  border-radius: 2rem !important;
}

/* Fix for feather icons alignment and add micro-interactions */
[data-feather] {
  vertical-align: middle;
  line-height: 1;
  transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

/* Hover effect for feather icons - subtle scale */
[data-feather]:hover {
  transform: scale(1.1);
}

/* Special styling for icons inside circles (How it works page) */
.bg-primary.bg-opacity-10 [data-feather]:hover {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Hover effects for feature icons */
.list-group-item [data-feather]:hover {
  transform: translateY(-2px) scale(1.05);
  color: var(--primary-color) !important;
}

/* Add pulse effect for interactive icons */
.interactive-icon {
  position: relative;
}

.interactive-icon:hover::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(125, 156, 255, 0.2);
  animation: pulse 1s cubic-bezier(0.66, 0, 0, 1) infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Gradient backgrounds and effects */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.bg-gradient-light {
  background: linear-gradient(135deg, #ffffff, var(--gray-100));
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern hero section - Pastel version */
.hero-section {
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f6ff, #fff8fe);
  box-shadow: inset 0 -1px 0 var(--gray-200);
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(125, 156, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(192, 153, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 183, 213, 0.07) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--gray-800);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

/* Cards with hover effects - Light version */
.feature-card {
  border: 1px solid var(--gray-200);
  background-color: #ffffff;
  border-radius: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(67, 97, 238, 0.2);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.03) 0%, transparent 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary-color);
  font-size: 1.8rem;
  transition: all 0.5s ease;
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
}

/* Hover translate effect for cards */
.hover-translate-y {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-translate-y:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

/* Hover grow effect for icon circles */
.hover-grow {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.hover-grow:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(125, 156, 255, 0.15);
}

/* Steps visualization */
.step-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
  position: relative;
}

.step-circle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 40px;
  background-color: var(--gray-300);
  transform: translateX(-50%);
}

.step-content {
  flex: 1;
}

.step-item:last-child .step-circle::after {
  display: none;
}

/* Button styles */
.btn {
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: rgba(67, 97, 238, 0.05);
  transform: translateY(-2px);
}

.btn-outline-conversion {
  border-color: var(--conversion-color);
  color: var(--conversion-color);
}

.btn-outline-conversion:hover {
  background-color: rgba(60, 179, 113, 0.05);
  border-color: var(--conversion-hover-color);
  color: var(--conversion-hover-color);
  transform: translateY(-2px);
}

/* Conversie button styling */
.btn-conversion {
  background-color: var(--conversion-color);
  border-color: var(--conversion-color);
  color: white;
  padding: 0.7rem 1.8rem;
  box-shadow: 0 4px 10px rgba(60, 179, 113, 0.3);
}

.btn-conversion:hover, 
.btn-conversion:focus {
  background-color: var(--conversion-hover-color);
  border-color: var(--conversion-hover-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(60, 179, 113, 0.4);
}

/* Badge/button in header */
.badge-conversion {
  background-color: var(--conversion-color);
  color: white;
  padding: 0.5em 1em;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(60, 179, 113, 0.3);
}

/* Form elements - Light version */
.form-control, .form-select {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background-color: #ffffff;
  border: 1px solid var(--gray-300);
  color: var(--gray-800);
}

.form-control:focus, .form-select:focus {
  background-color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15);
}

.input-group-text {
  border-radius: 0 8px 8px 0;
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  cursor: pointer;
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

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

/* Testimonial section - Light version */
.testimonial-card {
  padding: 2rem;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid var(--gray-200);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: rgba(67, 97, 238, 0.1);
  font-family: Georgia, serif;
  line-height: 0.8;
}

/* Section with background pattern */
.bg-pattern {
  background-color: #f9fafb;
  position: relative;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234361ee' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Voice Assistant Styling */
/* Hoofdcontainer voor voice assistant, altijd bovenaan andere content */
.voice-assistant-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1099; /* Zeer hoge z-index zodat het altijd bovenaan blijft */
  font-family: 'Inter', sans-serif;
  display: block !important; /* Forceer zichtbaarheid */
  pointer-events: auto !important; /* Forceer interactie */
}

.voice-assistant-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1060; /* Hoger dan de panel om klikken te garanderen */
  border: none; /* Verwijder standaard button border */
  padding: 0; /* Verwijder padding */
  outline: none; /* Verwijder outline */
  -webkit-tap-highlight-color: transparent; /* Verwijder tap highlight op mobiel */
  -webkit-appearance: none; /* Voor iOS styling consistentie */
  touch-action: manipulation; /* Verbeterde aanraakactie voor mobiel */
}

.voice-assistant-bubble:hover {
  transform: scale(1.1);
  background-color: var(--secondary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.voice-assistant-bubble.active {
  transform: scale(1.1);
  background-color: var(--secondary-color);
}

.voice-assistant-bubble::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-color);
  z-index: -1;
  opacity: 0;
  transition: all 0.5s ease;
}

.voice-assistant-bubble.pulsing::after {
  animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.voice-assistant-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 350px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s ease;
  max-height: 450px;
  display: flex;
  flex-direction: column;
  z-index: 1051;
}

/* Responsieve aanpassingen voor mobiel */
@media (max-width: 576px) {
  .voice-assistant-panel {
    width: calc(100vw - 40px);
    max-width: 350px;
    bottom: 70px;
    right: 5px;
    max-height: 400px;
  }
  
  .voice-assistant-container {
    bottom: 20px;
    right: 20px;
    position: fixed !important; /* Forceer fixed positie */
    z-index: 9999 !important; /* Verhoog z-index voor mobiel */
  }
  
  /* Bespaar bubble voor kleine schermen */
  .voice-assistant-bubble {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); /* Duidelijkere schaduw */
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  
  /* Duidelijke actieve staat voor mobiel */
  .voice-assistant-bubble.active {
    transform: scale(1.15);
    background-color: var(--secondary-color);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  }
}

.voice-assistant-panel.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  display: flex !important; /* Forceer de display en zichtbaarheid */
  visibility: visible !important;
  z-index: 9990 !important; /* Zeer hoge z-index voor mobiel */
}

.voice-assistant-header {
  padding: 15px 20px;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.voice-assistant-close {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.voice-assistant-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.voice-assistant-conversation {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.voice-message {
  max-width: 85%;
  padding: 12px 15px;
  border-radius: 12px;
  position: relative;
  line-height: 1.5;
}

.voice-message.user {
  align-self: flex-end;
  background-color: var(--primary-color);
  color: white;
  border-bottom-right-radius: 4px;
}

.voice-message.assistant {
  align-self: flex-start;
  background-color: var(--gray-200);
  color: var(--gray-800);
  border-bottom-left-radius: 4px;
}

.voice-assistant-footer {
  padding: 15px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-assistant-input {
  flex-grow: 1;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  padding: 8px 15px;
  outline: none;
  transition: border-color 0.3s ease;
}

.voice-assistant-input:focus {
  border-color: var(--primary-color);
}

.voice-assistant-send, .voice-assistant-mic {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.voice-assistant-send:hover, .voice-assistant-mic:hover {
  background-color: var(--secondary-color);
  transform: scale(1.05);
}

.voice-assistant-send:disabled, .voice-assistant-mic:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.voice-assistant-mic {
  margin-right: 5px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Verbeterde visuele feedback voor mobiel */
.voice-assistant-mic.recording {
  background-color: #e91e63;
  animation: pulse-recording 2s infinite;
}

/* Voeg label toe voor mobiele gebruikers */
.voice-assistant-mic::after {
  content: 'Spraak';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.2s;
  width: max-content;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .voice-assistant-mic::after {
    opacity: 1; /* Altijd zichtbaar op mobiel */
    bottom: -18px;
  }
  
  .voice-assistant-mic.recording::after {
    content: 'Luisteren...';
    background-color: #e91e63;
  }
  
  /* Grotere knoppen voor touchscreen */
  .voice-assistant-mic, .voice-assistant-send {
    width: 44px;
    height: 44px;
  }
}

/* Spraakherkenningsfeedback container */
.voice-recognition-feedback {
  align-self: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 0.9rem;
  margin: 5px 0;
  max-width: 90%;
  text-align: center;
  animation: fadeInOut 3s forwards;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  10%, 90% { opacity: 1; }
}

@keyframes pulse-recording {
  0% {
    box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(233, 30, 99, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
  }
}

.voice-play-button {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  margin-left: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.voice-play-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.voice-typing-indicator {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--gray-200);
  border-radius: 12px;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  width: auto;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gray-600);
  opacity: 0.6;
}

.typing-dot:nth-child(1) {
  animation: dot-flicker 1s infinite 0.2s;
}

.typing-dot:nth-child(2) {
  animation: dot-flicker 1s infinite 0.4s;
}

.typing-dot:nth-child(3) {
  animation: dot-flicker 1s infinite 0.6s;
}

@keyframes dot-flicker {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-section {
    padding: 5rem 0;
  }
  
  .voice-assistant-panel {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .step-circle {
    width: 35px;
    height: 35px;
  }
  
  .voice-assistant-bubble {
    width: 50px;
    height: 50px;
  }
  
  .voice-assistant-panel {
    width: 280px;
    right: -15px;
  }
}