* {
  /* `otf-font-awesome` is required to be installed for icons */
  font-family: JetBrains Mono NF, FontAwesome, Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 13px;
  color: #fff;
}

window#waybar {
  border-top: 3px solid transparent;
  color: #fff;
  transition-property: background-color;
  transition-duration: 0.5s;
  background-color: transparent;
}

#window {
  border-radius: 20px;
  padding-left: 10px;
  padding-right: 10px;
}

window#waybar.hidden {
  opacity: 0.2;
}

/* window#waybar.termite { */
/*   background-color: #3f3f3f; */
/* } */

window#waybar.chromium {
  background-color: #000;
  border: none;
}

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;
}

/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
button:hover {
  background: inherit;
  box-shadow: inset 0 3px #fff;
}

#workspaces button {
  padding: 0 5px;
  color: #fff;
}

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

#workspaces button.active {
  box-shadow: inset 0 3px #fff;
}

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

#mode {
  border-bottom: 3px solid #fff;
}

#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#scratchpad,
#mpd,
#custom-wireguard,
#custom-github,
#custom-dunst {
  padding: 0 10px;
  font-weight: bold;
  background-color: transparent;
}

#custom-pipewire.muted {
  color: #5b5b5b;
}

#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;
}

#battery.charging,
#battery.plugged {
  color: #26a65b;
}

@keyframes blink {
  to {
    color: #fff;
  }
}

#battery.warning:not(.charging) {
  color: #ff9e50;
}

#battery.critical:not(.charging) {
  color: #f53c3c;
  animation-name: blink;
  animation-duration: 0.5s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

#pulseaudio.muted {
  color: #5b5b5b;
}

#custom-media {
  color: #2a5c45;
  min-width: 100px;
}

#custom-media.custom-spotify {
  color: #66cc99;
}

#custom-media.custom-spotify.paused {
  color: #cccccc;
}

#custom-media.custom-vlc {
  color: #ffa000;
}

#temperature.critical {
  color: #eb4d4b;
}

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

#tray > .needs-attention {
  -gtk-icon-effect: highlight;
}

#network.disconnected {
  color: #f53c3c;
}

#mpd {
  color: #2a5c45;
}

#mpd.disconnected {
  color: #f53c3c;
}

#mpd.stopped {
  color: #90b1b1;
}

#mpd.paused {
  color: #51a37a;
}

#scratchpad {
  background: rgba(0, 0, 0, 0.2);
}
