@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: 0px;
    border-radius: 0px;
    color: @lavender;
    padding: 0 0;
    font-family: "Noto Sans", "Font Awesome 6 Free", "Font Awesome";
    font-size: 14px;
    transition: all 0.5s ease;
}

#window {
    border-style: hidden;
    margin-left: 10px;
    margin-right: 10px;
    color: @text;
}

window#waybar {
    border-bottom: 4px solid shade(@surface0, 1.1);
    background-color: shade(@mantle, 0.95);
}

window#waybar.hidden {
    opacity: 0.2;
}

#workspaces button {
    color: @surface0;
    border-radius: 50%;
    margin-left: 1px;
    margin-right: 1px;
    padding: 2 6 2 0;
}

#workspaces button:hover * {
    color: @mauve;
}

#workspaces button:hover {
    color: @mauve;
    box-shadow: none;
    text-shadow: none;
    border: 0px;
    background: none;
}

#workspaces * {
    color: whitesmoke;
}

#workspaces {
    border-style: solid;
    background-color: @surface0;
    opacity: 1;
    border-radius: 8px;
    margin: 8px 0px 8px 10px;
}

#workspaces button.focused * {
    color: @mauve;
}

#mode {
    border-radius: 8px;
    color: @mauve;
    margin-right: 5px;
}

#clock,
#custon-help,
#custom-playerctl,
#custom-power,
#custom-wlsunset,
#custom-clipboard,
#custom-menu,
#custom-dunst,
#battery,
#cpu,
#language,
#memory,
#power-profiles-daemon,
#network,
#bluetooth,
#pulseaudio,
#tray,
#mode,
#idle_inhibitor {
    padding: 5px 8px;
    border-style: solid;
    background-color: shade(@surface0, 1.1);
    opacity: 1;
    margin: 8px 0;
}

#custom-menu {
    color: @text;
    font-size: 18;
    background-color: shade(@surface0, 1.1);
    border-radius: 0px 15px 0px 0px;
    padding: 5px 10px 5px 10px;
    margin-bottom: 0px;
}

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

#tray {
    color: @rosewater;
    border-radius: 8px;
    margin: 8px 8px;
}

#custom-playerctl {
    color: @pink;
    border-radius: 8px;
    margin: 8px 8px;
}

#custom-dunst {
    color: @maroon;
    border-radius: 8px;
    margin: 8px 8px;
}

#custom-clipboard {
    color: @yellow;
    border-radius: 8px;
    margin: 8px 8px;
}

#cpu {
    color: @green;
    border-radius: 8px 0 0 8px;
    margin-left: 8px;
}

#cpu #cpu-icon {
    color: @green;
}

#memory {
    color: @teal;
}

#power-profiles-daemon {
    color: @sky;
    border-radius: 0 8px 8px 0;
    margin-right: 8px;
}

#battery {
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    color: @sapphire;
    border-radius: 8px;
    margin: 8px 8px;
}

#battery.warning {
    color: @yellow;
}

#battery.critical {
    color: @red;
}

#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 {
    color: @blue;
    border-radius: 8px;
    margin: 8px 8px;
}

#network.disconnected {
    color: @wm_icon_bg
}

#bluetooth {
    color: @lavender;
    border-radius: 8px;
    margin: 8px 8px;
}

#bluetooth.disabled {
    color: @wm_icon_bg;
}

#pulseaudio {
    color: @text;
    border-radius: 8px;
    margin: 8px 8px;
}

#pulseaudio.muted {
    color: @wm_icon_bg;
}

#clock {
    color: @subtext1;
    border-radius: 8px;
    margin: 8px 8px;
}

#custom-power {
    color: @text;
    font-size: 18;
    background-color: shade(@surface0, 1.1);
    border-radius: 15px 0px 0px 0px;
    padding: 10px 5px 10px 5px;
    margin-bottom: 0px;
}
