/* ========================================
   FIDIM TOAST NOTIFICATION SYSTEM
   All toast notification styles for the Fidim configurator
   ======================================== */

/* Toast Notification System - volledige gekleurde balk per type */
#fidim-toast-container {
  position: fixed;
  left: 32px;
  bottom: 32px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 18px;
  pointer-events: none;
}

#fidim-toast-container > .fidim-toast {
  position: relative; /* Nodig voor absolute icon/close positioning */
  min-width: 320px;
  max-width: 420px;
  min-height: 40px; /* Lager: minder hoge toast */
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  border-radius: 16px;
  padding: 12px 44px 12px 52px; /* Minder padding voor compacter uiterlijk */
  font-size: 16px;
  font-family: 'Outfit', 'Segoe UI', Arial, sans-serif;
  color: #222;
  /* Maak achtergrond licht transparant */
  background: rgba(255,255,255,0.92);
  /* Wordt overschreven per type, dus voeg transparantie toe aan type-achtergronden */
  pointer-events: auto;
  display: flex;
  align-items: center;
}

/* Toast type styles */
.fidim-toast.fidim-toast-success {
  background: rgba(132, 214, 90, 0.20) !important; /* Lighter green */
  color: #234100;
}

.fidim-toast.fidim-toast-error {
  background: rgba(248, 139, 125, 0.90) !important;
  color: #fff;
}

.fidim-toast.fidim-toast-error .fidim-toast-icon svg circle {
  fill: #d45a4a !important; /* Donkerder rood voor error-icoon cirkel */
}

.fidim-toast.fidim-toast-warning {
  background: rgba(254, 247, 209, 0.90) !important;
  color: #7A5B00;
}

.fidim-toast.fidim-toast-info {
  background: rgba(80, 154, 248, 0.20) !important; /* Lighter blue */
  color: #0b57d0; /* Darker blue text for contrast on lighter bg */
}

/* Toast icon styles */
.fidim-toast .fidim-toast-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.10));
  pointer-events: none;
}

/* Toast close button styles */
.fidim-toast .fidim-toast-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  color: inherit;
  font-size: 22px;
  cursor: pointer;
  padding: 0 !important;
  line-height: 1;
  opacity: 0.7;
  border-radius: 50%;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  box-shadow: none !important;
  outline: none !important;
  transition: opacity 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast message text styles */
.fidim-toast .fidim-toast-message {
  color: inherit;
  word-break: break-word;
  margin: 0;
  padding: 0 0 0 18px; /* Extra ruimte links voor meer afstand tot icoon */
  flex: 1 1 auto;
}

/* Responsive toast styles */
@media (max-width: 600px) {
  #fidim-toast-container {
    left: 8px;
    bottom: 8px;
    gap: 10px;
  }
  
  #fidim-toast-container > .fidim-toast {
    min-width: 180px;
    max-width: 98vw;
    min-height: 32px;
    padding: 8px 28px 8px 28px;
    font-size: 14px;
    border-radius: 10px;
  }
  
  .fidim-toast .fidim-toast-icon {
    left: 12px;
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
  }
  
  .fidim-toast .fidim-toast-close {
    right: 8px;
    font-size: 18px;
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
  }
}

/* Toast animations */
@keyframes fidim-toast-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fidim-toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(40px); }
}
