/* Notification Styles - Design moderne et épuré */
#notif-container {
  position: fixed;
  right: 20px;
  top: 90px;
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 380px;
  max-width: calc(100% - 40px);
  pointer-events: none;
}

.notification {
  pointer-events: auto;
  background: linear-gradient(145deg, #0d0d0f, #08080a);
  backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateX(160px) translateY(-2px) scale(.995);
  display: flex;
  align-items: flex-start;
  font-family: 'Montserrat', sans-serif;
  transition: none;
  border-left: 3px solid transparent;
}

.notification.show {
  opacity: 1;
  animation: notif-in 360ms cubic-bezier(.16,.84,.24,1) both;
}

.notification.hide {
  animation: notif-out 260ms ease both;
}

.notification.success {
  background: linear-gradient(145deg, #0a2f1f, #051810);
  border-left-color: #10b981;
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.notification.error {
  background: linear-gradient(145deg, #2f0a0f, #180508);
  border-left-color: #ef4444;
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.15), 0 0 0 1px rgba(239, 68, 68, 0.1);
}

.notification.warning {
  background: linear-gradient(145deg, #2f1f0a, #181005);
  border-left-color: #f59e0b;
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.15), 0 0 0 1px rgba(245, 158, 11, 0.1);
}

.notif-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
}

.notif-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 2px;
}

.notification.success .notif-icon {
  color: #10b981;
}

.notification.error .notif-icon {
  color: #ef4444;
}

.notification.warning .notif-icon {
  color: #f59e0b;
}

.notif-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-body strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  display: block;
}

.notif-body div {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  max-height: 3.2em;
  overflow: hidden;
}

/* Entrance / exit animations */
@keyframes notif-in {
  from { opacity: 0; transform: translateX(28px) translateY(-4px) scale(.985); }
  to   { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}
@keyframes notif-out {
  from { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
  to   { opacity: 0; transform: translateX(28px) translateY(-6px) scale(.98); }
}

/* Mobile responsive */
@media (max-width: 768px) {
  #notif-container {
    right: 10px;
    top: 80px;
    width: calc(100% - 20px);
    max-width: 360px;
  }
  
  .notification {
    padding: 14px 16px;
  }
  
  .notif-row {
    gap: 12px;
  }
  
  .notif-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 14px;
  }
  
  .notif-body strong {
    font-size: 13px;
  }
  
  .notif-body div {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  #notif-container {
    width: calc(100% - 20px);
  }
}