/* Toast notifications + confirmation dialogs.
   Loaded by toast.js via LF_CSS_LOAD. */

/* ── Toast container ─────────────────────────────────────────── */

.lf-toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 400px;
}

.lf-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--lf-panel, #1a1d24);
  border: 1px solid var(--lf-border, #2a2e36);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.25s, transform 0.25s;
  font-size: 13px;
  color: var(--lf-text, #e8e8e8);
  line-height: 1.4;
}
.lf-toast.lf-toast-visible {
  opacity: 1;
  transform: translateX(0);
}
.lf-toast.lf-toast-exit {
  opacity: 0;
  transform: translateX(40px);
}

.lf-toast-icon {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1.3;
  width: 20px;
  text-align: center;
}
.lf-toast-success .lf-toast-icon { color: var(--lf-success, #34c759); }
.lf-toast-error .lf-toast-icon { color: var(--lf-error, #ff6b6b); }
.lf-toast-warn .lf-toast-icon { color: var(--lf-warn, #d29922); }
.lf-toast-info .lf-toast-icon { color: var(--lf-accent, #6ba0ff); }

.lf-toast-msg {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.lf-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--lf-text-dim, #888);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  margin-left: 4px;
}
.lf-toast-close:hover { color: var(--lf-text, #eee); }

/* Success variant gets a subtle green left border */
.lf-toast-success { border-left: 3px solid var(--lf-success, #34c759); }
.lf-toast-error { border-left: 3px solid var(--lf-error, #ff6b6b); }
.lf-toast-warn { border-left: 3px solid var(--lf-warn, #d29922); }
.lf-toast-info { border-left: 3px solid var(--lf-accent, #6ba0ff); }

/* ── Confirm dialog ──────────────────────────────────────────── */

.lf-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s;
}
.lf-confirm-overlay.lf-confirm-visible {
  opacity: 1;
}

.lf-confirm-dialog {
  background: var(--lf-panel, #1a1d24);
  border: 1px solid var(--lf-border, #2a2e36);
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.2s;
}
.lf-confirm-visible .lf-confirm-dialog {
  transform: scale(1);
}

.lf-confirm-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--lf-text, #eee);
  margin-bottom: 8px;
}

.lf-confirm-msg {
  font-size: 13px;
  line-height: 1.5;
  color: var(--lf-text-muted, #aaa);
  margin-bottom: 20px;
  white-space: pre-line;
}

.lf-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.lf-confirm-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--lf-border, #2a2e36);
  transition: background 0.12s, border-color 0.12s;
}

.lf-confirm-cancel {
  background: var(--lf-btn-bg, #2a2e36);
  color: var(--lf-text, #eee);
}
.lf-confirm-cancel:hover {
  background: var(--lf-btn-hover, #353940);
}

.lf-confirm-ok {
  background: var(--lf-accent, #6ba0ff);
  border-color: var(--lf-accent, #6ba0ff);
  color: var(--lf-accent-contrast, #fff);
}
.lf-confirm-ok:hover {
  background: var(--lf-accent-hover, #5990ef);
}

.lf-confirm-danger {
  background: var(--lf-error, #ff6b6b);
  border-color: var(--lf-error, #ff6b6b);
  color: #fff;
}
.lf-confirm-danger:hover {
  background: #e55a5a;
  border-color: #e55a5a;
}
