/* ~/.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.4);
  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: 4px;
  background-color: @base;
  color: @subtext0;
}

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

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

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

#memory,
#cpu,
#custom-gpu-usage,
#custom-power,
#custom-gamemode,
#custom-tlp,
#battery,
#backlight,
#wireplumber,
#network,
#clock,
#tray,
#custom-pixelbuds_pro,
#custom-bluetooth-audio,
#custom-audio-output,
#custom-gpu-screen-recorder {
  border-radius: 4px;
  margin: 6px 3px;
  padding: 6px 12px;
  background-color: @base;
  color: @text;
}

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

#custom-bluetooth-audio {
	color: @sapphire;
	border-bottom: 3px solid @sapphire;
}

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

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

#custom-gpu-screen-recorder,
#custom-gamemode {
	color: @teal;
}

#custom-power {
  color: @red;
}

#custom-gpu-screen-recorder.recording,
#custom-gamemode.active {
  color: @red;
}

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

#custom-gpu-usage.max_usage {
  color: @maroon;
  /* border-bottom: 3px solid @maroon; */
}

#custom-gpu-usage.high_usage {
  color: @yellow;
  /* border-bottom: 3px solid @yellow; */
}

#custom-gpu-usage.normal_usage {
  color: @teal;
  /* border-bottom: 3px solid @teal; */
}

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


#backlight {
  color: @mauve;
}

#wireplumber {
  padding-right: 15px;
}

#custom-audio-output, #wireplumber {
  color: @teal;
  border-bottom: 3px solid @teal;
}

#network {
  padding-right: 15px;
}

#clock {
  color: @teal;
}

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

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