* {
  font-family:
    FontAwesome,
    Iosevka Extended,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 13px;
}

window#waybar {
  background-color: #1e1e2e; /* base */
  color: #cdd6f4; /* text */
  transition-property: background-color;
  transition-duration: 0.5s;
}

window#waybar.hidden {
  opacity: 0.2;
}

button {
  /* Use box-shadow instead of border so the text isn't offset */
  box-shadow: inset 0 -3px transparent;
  /* Avoid rounded borders under each button name */
  border: none;
  border-radius: 0;
}

button:hover {
  background: inherit;
  box-shadow: inset 0 -3px #7f849c; /* Overlay1 */
}

#workspaces button {
  padding: 0 5px;
  background-color: transparent;
  color: #cdd6f4; /* text */
}

#workspaces button:hover {
  background: rgba(0, 0, 0, 0.2);
}

#workspaces button.focused,
#workspaces button.active {
  background-color: #64727d;
  box-shadow: inset 0 -3px #7f849c; /* Overlay1 */
}

#workspaces button.urgent {
  background-color: #eb4d4b;
}

#mode {
  background-color: #1e1e2e; /* base */
  box-shadow: inset 0 -3px #663399;
}

#clock,
#network,
#power-profiles-daemon,
#wireplumber,
#temperature,
#battery,
#tray,
#mode,
#window,
#workspaces {
  margin: 0 4px;
}

/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
  margin-left: 0;
}

/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
  margin-right: 0;
}

#clock {
  background-color: #1e1e2e; /* base */
  color: #cdd6f4; /* text */
}

#network {
  background-color: #1e1e2e; /* base */
  color: #89dceb; /* sky */
}

#network.disconnected {
  background-color: #f38ba8; /* red */
  color: aliceblue;
}

#power-profiles-daemon.balanced {
  background-color: #1e1e2e; /* base */
  color: #f5c2e7; /* pink */
}

#power-profiles-daemon.performance {
  background-color: #1e1e2e; /* base */
  color: #b4befe; /* lavender */
}

#power-profiles-daemon.power-saver {
  background-color: #1e1e2e; /* base */
  color: #a6e3a1; /* green */
}

#wireplumber {
  background-color: #1e1e2e; /* base */
  color: #fab387; /* peach */
}

#wireplumber.muted {
  background-color: #1e1e2e; /* base */
  color: #6c7086; /* overlay0 */
}

#temperature {
  background-color: #1e1e2e; /* base */
  color: #cba6f7; /* mauve */
}

#temperature.critical {
  background-color: #f38ba8; /* red */
  color: #11111b; /* crust */
}

#battery {
  background-color: #1e1e2e; /* base */
  color: #f9e2af; /* yellow */
}

#battery.charging,
#battery.plugged {
  background-color: #1e1e2e; /* base */
  color: #a6e3a1; /* green */
}

#battery.critical:not(.charging) {
  background-color: #f38ba8; /* red */
  color: #11111b; /* crust */
  animation-name: blink;
  animation-duration: 0.5s;
  animation-timing-function: steps(12);
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

#tray {
  background-color: #1e1e2e; /* base */
}

#tray > .passive {
  -gtk-icon-effect: dim;
}

#tray > .needs-attention {
  -gtk-icon-effect: highlight;
  background-color: #f38ba8; /* red */
}
