/* ==========================================================
   Aparaitech Software - Toast Notification Stylesheet
   ========================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideInToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.toast.hiding {
  opacity: 0;
  transform: translateX(30px);
}

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

.toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.toast-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.toast-msg {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.4;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.toast-close:hover {
  color: var(--text-primary);
}

/* Types */
.toast-success::before { background: var(--color-success); }
.toast-success .toast-icon { color: var(--color-success); }

.toast-error::before { background: var(--color-danger); }
.toast-error .toast-icon { color: var(--color-danger); }

.toast-warning::before { background: var(--color-warning); }
.toast-warning .toast-icon { color: var(--color-warning); }

.toast-info::before { background: var(--brand-sapphire); }
.toast-info .toast-icon { color: var(--brand-sapphire); }
