/* Import Pywal colors */
@import url("../../.cache/wal/colors-swaync.css");

* {
  font-family: "OptimusPrincepsSemiBold", "NotoSansMono Nerd Font";
  font-size: 14px;
  transition: all 0.3s ease;
}

.notification-row {
  outline: none;
  margin: 10px;
  padding: 8px;
  border-radius: 10px;
  background-color: alpha(@background, 0.8);
  border: 1px solid @color3;
  box-shadow: 0 0 10px alpha(@color3, 0.5), inset 0 0 10px alpha(@color3, 0.3);
}

.notification-row:focus,
.notification-row:hover {
  background-color: alpha(@background, 0.9);
  box-shadow: 0 0 15px alpha(@color3, 0.7), inset 0 0 15px alpha(@color3, 0.5);
}

.notification {
  margin: 6px;
  padding: 0;
  border-radius: 10px;
  background-color: transparent;
}

/* Notification header */
.notification-content {
  background: transparent;
  padding: 5px;
  border-radius: 10px;
}

.close-button {
  background: alpha(@background, 0.8);
  color: @color3;
  text-shadow: 0 0 5px alpha(@color3, 0.5);
  padding: 0 8px;
  border-radius: 100%;
  margin-top: 5px;
  margin-right: 5px;
  box-shadow: 0 0 5px alpha(@color3, 0.5);
  border: 1px solid @color3;
  min-width: 24px;
  min-height: 24px;
}

.close-button:hover {
  background: @color3;
  color: @background;
  box-shadow: 0 0 10px alpha(@color3, 0.7);
  transition: all 0.15s ease-in-out;
}

.notification-default-action,
.notification-action {
  padding: 4px;
  margin: 0;
  border-radius: 10px;
  background-color: alpha(@background, 0.8);
  border: 1px solid @color3;
  color: @color3;
  text-shadow: 0 0 5px alpha(@color3, 0.5);
  box-shadow: 0 0 5px alpha(@color3, 0.5);
}

.notification-default-action:hover,
.notification-action:hover {
  background-color: @color3;
  color: @background;
  box-shadow: 0 0 10px alpha(@color3, 0.7);
}

.notification-default-action {
  border-radius: 10px;
}

/* When alternative actions are visible */
.notification-default-action:not(:only-child) {
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.notification-action {
  border-radius: 0px;
  border-top: none;
  border-right: none;
}

/* add bottom border radius to last button */
.notification-action:last-child {
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

/* Critical notification styling */
.critical .notification-row {
  background-color: alpha(@background, 0.8);
  border: 1px solid @color1;
  box-shadow: 0 0 10px alpha(@color1, 0.5), inset 0 0 10px alpha(@color1, 0.3);
}

.critical .notification-content {
  background-color: transparent;
}

/* Image styling */
.notification-row .image {
  margin-right: 12px;
}

/* App name */
.summary {
  font-size: 16px;
  font-weight: bold;
  color: @color5;
  text-shadow: 0 0 5px alpha(@color5, 0.5);
  margin: 0 12px;
}

/* Notification body */
.body {
  font-size: 13px;
  color: @foreground;
  text-shadow: 0 0 3px alpha(@foreground, 0.5);
  margin: 5px 12px;
}

/* Control Center */
.control-center {
  background-color: alpha(@background, 0.9);
  border-radius: 15px;
  border: 1px solid @color3;
  box-shadow: 0 0 15px alpha(@color3, 0.5), inset 0 0 15px alpha(@color3, 0.3);
  margin: 10px;
}

.control-center-list {
  background-color: transparent;
  padding: 10px;
}

.control-center-list-placeholder {
  opacity: 0.5;
  font-size: 16px;
  font-style: italic;
  color: @foreground;
  text-shadow: 0 0 3px alpha(@foreground, 0.5);
}

/* Title bar */
.floating-notifications .window-title {
  color: @color5;
  font-weight: bold;
  font-size: 18px;
  padding: 10px;
  margin: 10px 10px 5px 10px;
  border-bottom: 1px solid @color3;
  text-shadow: 0 0 5px alpha(@color5, 0.5);
}

.floating-notifications {
  background-color: transparent;
}

/* DND button */
.dnd-button {
  margin: 5px 10px;
  padding: 10px;
  border-radius: 10px;
  background-color: alpha(@background, 0.8);
  border: 1px solid @color3;
  color: @color3;
  font-weight: bold;
  text-shadow: 0 0 5px alpha(@color3, 0.5);
  box-shadow: 0 0 5px alpha(@color3, 0.5);
}

.dnd-button:hover {
  background-color: @color3;
  color: @background;
  box-shadow: 0 0 10px alpha(@color3, 0.7);
}

.dnd-button.active {
  background-color: @color3;
  color: @background;
  box-shadow: 0 0 15px alpha(@color3, 0.7);
}

/* Title widget */
.widget-title {
  margin: 8px;
  font-size: 20px;
  font-weight: bold;
  color: @color5;
  text-shadow: 0 0 5px alpha(@color5, 0.5);
}

.widget-title button {
  font-size: 14px;
  padding: 2px 10px;
  margin-left: 10px;
  border-radius: 10px;
  background-color: alpha(@background, 0.8);
  color: @color1;
  border: 1px solid @color1;
  text-shadow: 0 0 5px alpha(@color1, 0.5);
  box-shadow: 0 0 5px alpha(@color1, 0.5);
}

.widget-title button:hover {
  background-color: @color1;
  color: @background;
  box-shadow: 0 0 10px alpha(@color1, 0.7);
}

/* MPRIS widget */
.widget-mpris {
  padding: 10px;
  margin: 5px 10px;
  border-radius: 10px;
  background-color: alpha(@background, 0.8);
  border: 1px solid @color3;
  color: @color3;
  text-shadow: 0 0 5px alpha(@color3, 0.5);
  box-shadow: 0 0 5px alpha(@color3, 0.5);
}

.widget-mpris-player {
  padding: 8px;
  margin: 5px;
}

.widget-mpris-title {
  font-weight: bold;
  font-size: 16px;
  color: @color5;
  text-shadow: 0 0 5px alpha(@color5, 0.5);
}

.widget-mpris-subtitle {
  font-size: 12px;
  color: @foreground;
  text-shadow: 0 0 3px alpha(@foreground, 0.5);
}

/* Buttons widget */
.widget-buttons-grid {
  padding: 8px;
  margin: 5px 10px;
  border-radius: 10px;
  background-color: alpha(@background, 0.8);
  border: 1px solid @color3;
  box-shadow: 0 0 5px alpha(@color3, 0.5);
}

.widget-buttons-grid button {
  font-size: 18px;
  padding: 5px 10px;
  margin: 5px;
  border-radius: 10px;
  background-color: alpha(@background, 0.8);
  color: @color3;
  border: 1px solid @color3;
  text-shadow: 0 0 5px alpha(@color3, 0.5);
  box-shadow: 0 0 5px alpha(@color3, 0.5);
}

.widget-buttons-grid button:hover {
  background-color: @color3;
  color: @background;
  box-shadow: 0 0 10px alpha(@color3, 0.7);
}

/* Media control buttons */
.widget-mpris button {
  background-color: alpha(@background, 0.8);
  color: @color3;
  border: 1px solid @color3;
  border-radius: 10px;
  padding: 5px 10px;
  margin: 5px;
  text-shadow: 0 0 5px alpha(@color3, 0.5);
  box-shadow: 0 0 5px alpha(@color3, 0.5);
}

.widget-mpris button:hover {
  background-color: @color3;
  color: @background;
  box-shadow: 0 0 10px alpha(@color3, 0.7);
}

.widget-mpris button.play {
  background-color: alpha(@background, 0.8);
  color: @color2;
  border: 1px solid @color2;
  text-shadow: 0 0 5px alpha(@color2, 0.5);
  box-shadow: 0 0 5px alpha(@color2, 0.5);
}

.widget-mpris button.play:hover {
  background-color: @color2;
  color: @background;
  box-shadow: 0 0 10px alpha(@color2, 0.7);
}

/* Timestamp */
.notification-row .timestamp {
  font-size: 12px;
  color: @foreground;
  text-shadow: 0 0 3px alpha(@foreground, 0.5);
  margin-right: 10px;
}

/* Critical notification */
.critical .notification-content {
  background-color: transparent;
}

.critical .summary {
  color: @color1;
  text-shadow: 0 0 5px alpha(@color1, 0.5);
}
