/* ==========================================================================
   KMOM Toast Notification System
   ========================================================================== */

#kmom-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.kmom-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.kmom-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.kmom-toast.hide {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
}

/* Toast Types */
.kmom-toast.toast-info {
  border-left: 4px solid #009ceb;
}
.kmom-toast.toast-success {
  border-left: 4px solid #10b981;
}
.kmom-toast.toast-warning {
  border-left: 4px solid #f59e0b;
}
.kmom-toast.toast-error {
  border-left: 4px solid #ef4444;
}

/* Icons */
.kmom-toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}
.kmom-toast.toast-info .kmom-toast-icon { color: #009ceb; }
.kmom-toast.toast-success .kmom-toast-icon { color: #10b981; }
.kmom-toast.toast-warning .kmom-toast-icon { color: #f59e0b; }
.kmom-toast.toast-error .kmom-toast-icon { color: #ef4444; }

/* Content */
.kmom-toast-content {
  flex: 1;
  word-break: break-word;
  white-space: pre-line;
}

.kmom-toast-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
  color: #0f172a;
}

.kmom-toast-message {
  font-size: 13.5px;
  color: #475569;
}

/* Close Button */
.kmom-toast-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  transition: color 0.15s ease;
}
.kmom-toast-close:hover {
  color: #334155;
}

/* Progress bar */
.kmom-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(0, 0, 0, 0.06);
}
.kmom-toast-progress-bar {
  height: 100%;
  width: 100%;
  transition: width linear;
}
.kmom-toast.toast-info .kmom-toast-progress-bar { background: #009ceb; }
.kmom-toast.toast-success .kmom-toast-progress-bar { background: #10b981; }
.kmom-toast.toast-warning .kmom-toast-progress-bar { background: #f59e0b; }
.kmom-toast.toast-error .kmom-toast-progress-bar { background: #ef4444; }

@media screen and (max-width: 480px) {
  #kmom-toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}
