/* Foreground Toast Notification Styles */
.q-foreground-notification-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10001;
  width: min(420px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.q-foreground-notification-banner {
  --q-foreground-accent: var(--pwa-theme-color);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(243, 248, 252, 0.96)
  );
  border: 1px solid color-mix(in srgb, var(--q-foreground-accent) 30%, #d8e6ef);
  border-left: 4px solid var(--q-foreground-accent);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(6, 43, 68, 0.18);
  padding: 14px;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-8px) scale(0.98);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.q-foreground-notification-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.q-foreground-notification-exit {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
}

.q-foreground-notification-banner:hover,
.q-foreground-notification-banner:focus-within {
  box-shadow: 0 18px 44px rgba(6, 43, 68, 0.24);
  border-color: color-mix(in srgb, var(--q-foreground-accent) 45%, #cad9e4);
}

.q-foreground-notification-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 6px 18px rgba(15, 47, 68, 0.12);
}

.q-foreground-notification-bi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(
    135deg,
    var(--q-foreground-accent),
    color-mix(in srgb, var(--q-foreground-accent) 62%, #ffffff)
  );
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(15, 47, 68, 0.16);
}

.q-foreground-notification-fallback-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(
    135deg,
    var(--q-foreground-accent),
    color-mix(in srgb, var(--q-foreground-accent) 62%, #ffffff)
  );
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(15, 47, 68, 0.16);
}

.q-foreground-notification-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.q-foreground-notification-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.q-foreground-notification-chip {
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--q-foreground-accent) 12%, #ffffff);
  color: var(--q-foreground-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.q-foreground-notification-time {
  color: #61788b;
  font-size: 12px;
  white-space: nowrap;
}

.q-foreground-notification-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
}

.q-foreground-notification-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #4f4f4f;
}

.q-foreground-notification-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex: 0 0 auto;
  align-items: center;
  margin-top: 2px;
}

.q-foreground-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    background-color 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease,
    transform 0.12s ease;
}

.q-foreground-btn svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.q-foreground-btn-label {
  white-space: nowrap;
}

.q-foreground-btn-view {
  background: var(--q-foreground-accent);
  color: #fff;
}

.q-foreground-btn-view:hover {
  background: color-mix(in srgb, var(--q-foreground-accent) 88%, #081822);
  transform: translateY(-1px);
}

.q-foreground-btn-dismiss {
  background: rgba(237, 242, 247, 0.9);
  color: #375368;
  border-color: #d8e2ea;
}

.q-foreground-btn-dismiss:hover {
  background: #dbe6ef;
  transform: translateY(-1px);
}

.q-foreground-btn:focus-visible {
  outline: 2px solid var(--q-foreground-accent);
  outline-offset: 2px;
}

.q-foreground-notification-progress {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(15, 47, 68, 0.08);
  overflow: hidden;
}

.q-foreground-notification-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--q-foreground-accent),
    color-mix(in srgb, var(--q-foreground-accent) 58%, #ffffff)
  );
  transform-origin: left center;
}

.q-foreground-notification-toast-warning {
  --q-foreground-accent: #d97706;
}

.q-foreground-notification-toast-create {
  --q-foreground-accent: #15803d;
}

.q-foreground-notification-toast-updated {
  --q-foreground-accent: #0ea5e9;
}

.q-foreground-notification-toast-deleted {
  --q-foreground-accent: #dc2626;
}

.q-foreground-notification-toast-info {
  --q-foreground-accent: #2563eb;
}

@media (max-width: 768px) {
  .q-foreground-notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  .q-foreground-notification-banner {
    gap: 10px;
    padding: 12px;
  }

  .q-foreground-notification-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .q-foreground-btn {
    flex: 1 1 auto;
  }

  .q-foreground-notification-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
