
/* ~/.config/waybar/style.css */
@import "./catppuccin-waybar/themes/mocha.css";

* {
  border: none;
  border-radius: 0;
  min-height: 0;
  font-family: JetBrainsMono Nerd Font;
  font-size: 13px;
}

window#waybar {
  background-color: alpha(@base, 0.6);
  padding: 10px;
  transition-property: background-color;
  transition-duration: 0.5s;
  color: @text;
}

window#waybar.hidden {
  opacity: 0.5;
}

#workspaces {
}

#workspaces button {
  all: initial;
  /* Remove GTK theme values (waybar #1351) */
  min-width: 0;
  /* Fix weird spacing in materia (waybar #450) */
  box-shadow: inset 0 -3px transparent;
  /* Use box-shadow instead of border so the text isn't offset */
  padding: 6px 18px;
  margin: 6px 3px;
  border-radius: 3px;
  background-color: alpha(@base, 0.9);
  color: @text;
}

#workspaces button.active {
  border-bottom: 3px solid @green;
}

#workspaces button:hover {
  box-shadow: inherit;
  text-shadow: inherit;
  background-color: @teal;
  color: @base;
}

#workspaces button.urgent {
  border-bottom: 3px solid @red;
}

#memory,
#cpu,
#custom-power,
#custom-tlp,
#battery,
#backlight,
#wireplumber,
#network,
#clock,
#tray,
#custom-pixelbuds,
#custom-anc {
  border-radius: 4px;
  margin: 6px 3px;
  padding: 6px 12px;
  background-color: @base;
  color: @text;
}

#custom-anc.anc-active {
    color: @teal; 
  	border-bottom: 3px solid @teal;
}

#custom-anc.anc-aware {
    color: @yellow; 
  	border-bottom: 3px solid @yellow;
}

#custom-anc.anc-off {
    color: @text; 
  	border-bottom: 3px solid @text;
}

#custom-anc.disconnected {
}

#custom-power {
  color: @red;
  padding: 6px 12px 6px 10px;
}

#custom-tlp {
    padding: 0 10px;
	min-width: 10px;
}

#custom-tlp.charging {
    color: @teal; 
  	border-bottom: 3px solid @teal;
}

#custom-tlp.bat {
	color: @sapphire;
  	border-bottom: 3px solid @sapphire;
}

#custom-tlp.warning {
    color: @yellow; 
  	border-bottom: 3px solid @yellow;
}

#custom-tlp.critical {
    color: @red; 
  	border-bottom: 3px solid @red;
	animation-name: blink;
	animation-duration: 0.8s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-direction: alternate;
}

@keyframes blink {
  to {
    color: @yellow;
  	border-bottom: 3px solid @yellow;
    opacity: 0.6;
  }
}

#memory,
#cpu {
  color: @maroon;
  border-bottom: 3px solid @maroon;
}


#backlight {
  color: @mauve;
}

#wireplumber {
  color: @mauve;
  padding-right: 15px;
  border-bottom: 3px solid @mauve;
}

#network {
  color: @mauve;
  padding-right: 15px;
}

#clock {
  font-family: JetBrainsMono Nerd Font;
  color: @mauve;
}

tooltip {
  border-radius: 8px;
  padding: 15px;
  background-color: @base;
}

tooltip label {
  padding: 5px;
  background-color: @base;
}

#custom-pixelbuds.connected {
    color: @teal; /* A pleasant green */
    border-bottom: 3px solid @teal;
}
