@import "gruvbox.css";

* {

  border: none;
  font-family: JetBrainsMono Nerd Font, sans-serif;
  font-size: 14px;
}

window#waybar {
  /* background-color: rgba(18, 21, 29, 0.98); */
  background-color: @background;
  /* background-color: rgba(0, 0, 0, 0); */
  border-radius: 6px;
  color: @foreground;
  opacity: 1;
  transition-property: background-color;
  transition-duration: .5s;
  margin-bottom: -7px;
}

window#waybar.hidden {
  opacity: 0.2;
}

window#hyprland-window {
  background-color: @background;
}

#workspaces,
#window,
#mode,
#cpu,
#memory,
#temperature,
#custom-media,
#custom-powermenu,
#custom-fans,
#custom-wmname,
#clock,
#idle_inhibitor,
#language,
#pulseaudio,
#backlight,
#battery,
#network,
#tray {
  background-color: @alt_background;
  padding: 0 10px;
  margin: 5px 2px 5px 2px;
  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 6px;
  background-clip: padding-box;
}

#workspaces button {
  background-color: @alt_background;
  padding: 0 5px;
  min-width: 20px;
  color: @foreground;
}

#workspaces button:hover {
  background-color: rgba(31, 31, 45, 0.5)
}

#workspaces button.active {
  color: @blue;
}

#workspaces button.urgent {
  color: @red;
}

#cpu {
  padding: 0 10px;
  color: @alt_cyan;
}

#memory {
  padding: 0 10px;
  color: @alt_cyan;
}

#temperature {
  padding: 0 10px;
  color: @blue;
}

#temperature.critical {
  background-color: @red;
  padding: 0 10px;
  color: @background;
}

#custom-media {
  background-color: #c678dd;
  padding: 0 10px;
  color: @background;
}

#custom-fans {
  padding: 0 10px;
  color: @blue;
}

#clock {
  padding: 0 10px;
  color: @blue;
}

#idle_inhibitor {
  padding: 0 10px;
  color: @foreground;
}

#language {
  padding: 0 10px;
  color: @blue;
}

#pulseaudio {
  padding: 0 10px;
  color: @yellow;
}

#pulseaudio.muted {
  padding: 0 10px;
  background-color: @red;
  color: @background;
}

#backlight {
  padding: 0 10px;
  color: @yellow;
}

#battery {
  padding: 0 10px;
  color: @alt_green;
}

#battery.charging, #battery.plugged {
  padding: 0 10px;
  background-color: @alt_green;
  color: @background;
}

@keyframes blink {
    to {
        background-color: @background;
        color: @red;
    }
}

#battery.critical:not(.charging) {
    padding: 0 10px;
    background-color: @red;
    color: @background;
    animation-name: blink;
    animation-duration: 0.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

#network {
    padding: 0 10px;
    color: @blue;
}

#custom-wmname {
    color: @blue;
    background-color: @background;
    font-size: 25px;
    margin: 1px;
    padding: 0px 0px 0px 5px;
}

#network.disconnected {
    padding: 0 10px;
    background-color: @red;
    color: @background;
}
#custom-powermenu {
    background-color: @red;
    color: @background;
    font-size: 15px;
    padding-right: 6px;
    padding-left: 9px;
    margin: 5px;
}
