/*
==========================================
  TOAST NOTIFICATION STYLES
==========================================
*/

.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 320px;
  max-width: 450px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(5, 21, 8, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 230, 118, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 230, 118, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  pointer-events: auto;
  animation: toastIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  position: relative;
  overflow: hidden;
}

.toast.removing {
  animation: toastOut 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

.toast::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  animation: toastProgress 4s linear forwards;
}

.toast.success::before { background: linear-gradient(90deg, #00e676, #1de9b6); }
.toast.error::before { background: linear-gradient(90deg, #ff5252, #ff1744); }
.toast.info::before { background: linear-gradient(90deg, #00b0ff, #448aff); }
.toast.warning::before { background: linear-gradient(90deg, #ffd740, #ffab00); }

[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 200, 83, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.toast.success .toast-icon { background: rgba(0, 230, 118, 0.2); color: #00e676; }
.toast.error .toast-icon { background: rgba(255, 82, 82, 0.2); color: #ff5252; }
.toast.info .toast-icon { background: rgba(0, 176, 255, 0.2); color: #00b0ff; }
.toast.warning .toast-icon { background: rgba(255, 215, 64, 0.2); color: #ffd740; }

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 3px;
}

.toast-message {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.toast-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  pointer-events: auto;
}

.toast-close:hover {
  background: rgba(255, 82, 82, 0.3);
  color: #ff5252;
}

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

@media (max-width: 576px) {
  .toast-container {
    left: 10px;
    right: 10px;
    top: 80px;
  }
  .toast {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
}
