/* Application CSS that applies to the entire application.
 *
 * This is automatically loaded by AdwApplication:
 * https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.3/styles-and-appearance.html#custom-styles
 */

/* 
 * GhosttySurface URL overlay
 */
label.url-overlay {
  padding: 4px 8px 4px 8px;
  outline-style: solid;
  outline-color: #555555;
  outline-width: 1px;
}

label.url-overlay:hover {
  opacity: 0;
}

label.url-overlay.left {
  border-radius: 0px 6px 0px 0px;
}

label.url-overlay.right {
  border-radius: 6px 0px 0px 0px;
}

/*
 * GhosttySurface resize overlay
 */
label.resize-overlay {
  padding: 4px 8px 4px 8px;
  border-radius: 6px 6px 6px 6px;
  outline-style: solid;
  outline-color: #555555;
  outline-width: 1px;
}

/*
 * GhosttyClipboardConfirmationDialog
 *
 * Based on boxed-list-separate:
 * https://gitlab.gnome.org/GNOME/libadwaita/-/blob/ad446167acf3e6d1ee693f98ca636268be8592a1/src/stylesheet/widgets/_lists.scss#L548
 */
.clipboard-confirmation-dialog list {
  background: none;
}

.clipboard-confirmation-dialog list > row {
  border: none;
  margin-bottom: 12px;
}

.clipboard-confirmation-dialog list > row:last-child {
  margin-bottom: 0;
}

.clipboard-confirmation-dialog .clipboard-overlay {
  border-radius: 10px;
}

.clipboard-confirmation-dialog .clipboard-contents {
  filter: blur(0px);
  transition: filter 0.3s ease;
  border-radius: 10px;
}

.clipboard-confirmation-dialog .clipboard-contents.blurred {
  filter: blur(5px);
}

/*
 * Child Exited Overlay
 */
.child-exited.normal revealer widget {
  background-color: rgba(38, 162, 105, 0.5);
  /* after GTK 4.16 is a requirement, switch to the following:
  /* background-color: color-mix(in srgb, var(--success-bg-color), transparent 50%); */
}

.child-exited.abnormal revealer widget {
  background-color: rgba(192, 28, 40, 0.5);
  /* after GTK 4.16 is a requirement, switch to the following:
  /* background-color: color-mix(in srgb, var(--error-bg-color), transparent 50%); */
}

/*
 * Surface
 */
.surface progressbar.error trough progress {
  background-color: rgb(192, 28, 40);
  /* after GTK 4.16 is a requirement, switch to the following: */
  /* background-color: color-mix(in srgb, var(--error-bg-color), transparent); */
}
