/* ============================================
   Lords of Lending - Toast Notification Styles
   ============================================ */

/* Toast Container */
.toast-notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: var(--z-toast, 1200);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* Toast Visible State */
.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ============================================
   Toast Types
   ============================================ */
.toast-notification.toast-success {
  background: var(--color-success, #22c55e);
  color: white;
}

.toast-notification.toast-error {
  background: var(--color-danger, #ef4444);
  color: white;
}

.toast-notification.toast-warning {
  background: var(--color-warning, #f59e0b);
  color: white;
}

.toast-notification.toast-info {
  background: var(--color-info, #0049fb);
  color: white;
}

/* ============================================
   Toast with Icon
   ============================================ */
.toast-notification.with-icon {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.toast-notification .toast-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ============================================
   Toast with Action
   ============================================ */
.toast-notification.with-action {
  padding-right: var(--spacing-sm);
}

.toast-action {
  margin-left: var(--spacing-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: var(--radius-sm);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toast-action:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Offline Banner
   ============================================ */
.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-warning, #f59e0b);
  color: #0d0d3d;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 10001;
}

.offline-banner.hidden {
  display: none;
}

/* ============================================
   Print Hidden
   ============================================ */
@media print {
  .toast-notification,
  .offline-banner {
    display: none !important;
  }
}
