@import "colors/macchiato.css";

@keyframes blink-warning {
    70% {
        color: @wm_icon_bg;
    }

    to {
        color: @wm_icon_bg;
        background-color: @yellow;
    }
}

@keyframes blink-critical {
    70% {
        color: @wm_icon_bg;
    }

    to {
        color: @wm_icon_bg;
        background-color: @red;
    }
}

/* Reset all styles */
* {
    border: 2px;
    border-radius: 8px;
    padding: 0px;
    margin-top: 1px;
    margin-bottom: 1px;
    margin-left: 1px;
    margin-right: 1px;
    font-family: "Noto Sans", "Font Awesome 6 Free", "Font Awesome";
    font-size: 14px;
}

window#waybar {
   margin-left: 10px;
   border-radius: 8px;
   background: alpha(@base, 0.75);
}

window#waybar.empty #window {
    background: @base;
}

#window {
    margin-left: 10px;
    border-radius: 6px;
}

#workspaces button {
    margin: 4px 3px;
    transition: none;
}

#workspaces button.focused {
    color: @sapphire;
    background: @surface0;
}

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

#clock,
#custom-help,
#custom-playerctl,
#custom-power,
#custom-wlsunset,
#custom-clipboard,
#custom-menu,
#custom-dunst,
#battery,
#cpu,
#memory,
#power-profiles-daemon,
#network,
#bluetooth,
#pulseaudio,
#tray,
#mode,
#language,
#idle_inhibitor {
    padding-left: 6px;
    padding-right: 6px;
    margin: 3px 2px;
}

#custom-menu {
    color: @text;
    background: @surface0;
}

#custom-wf-recorder {
    color: @red;
    padding-right: 10px;
}

#clock {
    color: @lavender;
    background: @surface0;
}

#tray {
    padding-left: 5px;
    padding-right: 5px;
    background: @surface0;
}

#custom-playerctl {
    background: @surface0;
    color: @flamingo;
}

#custom-wlsunset {
    background: @surface0;
    color: @pink;
}

#idle_inhibitor {
    background: @surface0;
    color: @mauve;
}

#language {
    background: @surface0;
    color: @red;
}

#custom-dunst {
    background: @surface0;
    color: @maroon;
}

#custom-clipboard {
    background: @surface0;
    color: @peach;
}

#cpu {
    background: @surface0;
    color: @yellow;
}

#memory {
    background: @surface0;
    color: @green;
}

#power-profiles-daemon {
    background: @surface0;
    color: @teal;
}

#battery {
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    background: @surface0;
    color: @sky;
}

#battery.warning {
    color: @warning_color;
}

#battery.critical {
    color: @error_color;
}

#battery.warning.discharging {
    animation-name: blink-warning;
    animation-duration: 3s;
}

#battery.critical.discharging {
    animation-name: blink-critical;
    animation-duration: 2s;
}

label:focus {
    background-color: #000000;
}

#network {
    background: @surface0;
    color: @sapphire;
}

#network.disconnected {
    color: @wm_icon_bg
}

#bluetooth {
    background: @surface0;
    color: @blue;
}

#bluetooth.disabled {
    color: @wm_icon_bg;
}

#pulseaudio {
    background: @surface0;
    color: @lavender;
}

#pulseaudio.muted {
    color: @wm_icon_bg;
}

#custom-power {
    background: @surface0;
    color: @text;
}
