@define-color accent        #75D17E;   /* Vert principal */
@define-color warning       #FF721B;   /* Orange avertissement */
@define-color danger        #FF0031;   /* Rouge */
@define-color yellow        #FEC639;   /* Jaune secondaire */
@define-color fg_light      #BFBFBF;   /* Gris clair texte/fond */
@define-color fg_dark       #000000;   /* Noir */
@define-color muted_bg      #222526;   /* Fond muted */
@define-color muted_text    #2a5c45;   /* Texte muted */
@define-color empty_btn     #3F3B39;   /* Couleur bouton vide */

* {
  font-family: 'JetBrainsMono Nerd Font Propo', monospace;
  font-size: 13px;
  border-radius: 10px;
}

window#waybar {
  background-color: transparent;
  border-bottom: 3px solid rgba(100, 114, 125, 0.5);
}

button {
  box-shadow: inset 0 -3px transparent;
  border: none;
  border-radius: 0;
}
button:hover {
  background: inherit;
  box-shadow: inset 0 -3px @accent;
}

#clock,
#cpu,
#bluetooth,
#backlight,
#backlight#2,
#mpris,
#tray,
#memory,
#pulseaudio,
#network,
#wireplumber,
#custom-cava,
#idle_inhibitor,
#temperature,
#battery,
#bat2 {
  padding: 3px;
  color: @fg_light;
  margin-bottom: 3px;
  margin-left: 2px;
  margin-right: 2px;
}

#tray {
  margin: 0px;
}
#idle_inhibitor.deactivated {
  margin-left: 0px;
  margin-bottom: 0px;
  color: @accent;
}
#idle_inhibitor.activated {
  margin-left: 0px;
  margin-bottom: 0px;
  color: @danger;
}

#workspaces button {
  color: @yellow;
  margin-left: 0px;
  margin-right: 0px;
}
#network {
  margin-left: 0px;
  margin-right: 0px;
}
#workspaces button.empty {
  color: @empty_btn;
}
#workspaces button.active {
  color: @accent;
}
#workspaces button.urgent {
  background-color: @danger;
}

#window,
#workspaces {
  margin: 0 4px;
  margin-right: 0px;
  margin-left: 0px;
}

#clock {
  color: @accent;
  margin-left: 0px;
  margin-right: 0px;
}

#battery,
#battery#bat2 {
  color: @fg_dark;
  background-color: @fg_light;
}
#battery#bat2 {
  margin-right: 0px;
}
#battery.middle,
#battery#bat2.middle {
  background-color: @yellow;
}
#battery.warning,
#battery#bat2.warning {
  background-color: @warning;
}
#battery.critical,
#battery#bat2.critical {
  background-color: @danger;
}
#battery.charging,
#battery.plugged,
#battery#bat2.charging,
#battery#bat2.plugged {
  color: @fg_dark;
  background-color: @accent;
}

#temperature {
  color: @fg_dark;
  background-color: @fg_light;
  margin-right: 0px;
}
#temperature.critical {
  background-color: @warning;
}

#cpu {
  background-color: @fg_light;
  color: @fg_dark;
  margin-left: 0px;
}

#memory {
  color: @fg_dark;
  background-color: @fg_light;
  margin-right: 0px;
}

#pulseaudio {
  background-color: @fg_light;
  color: @fg_dark;
  margin-left: 0px;
}
#pulseaudio.muted {
  background-color: @muted_bg;
  color: @muted_text;
}

#custom-cava {
  margin: 0px;
  margin-top: 3px;
  padding: 0px;
  padding-right: 6px;
}

#mpris {
  margin: 0px;
  margin-top: 7px;
  padding: 0px;
  /* font-size: 10px; */
}
#mpris.playing {
  color: @accent;
}
#mpris.paused {
  color: @warning;
}
