* {
    font-family: Jetbrains Mono;
    font-size: 15px;
}

window#waybar {
    background-color: rgba(72, 74, 78, 0.1);
    border-bottom: 3px solid rgba(100, 114, 125, 0);
    color: #abbdf5;
    transition-property: background-color;
    transition-duration: .5s;
}

window#waybar.hidden {
    opacity: 0.2;
}

window#waybar.termite {
    background-color: #3F3F3F;
}

window#waybar.chromium {
    background-color: #000000;
    border: none;
}

button {
    /* Use box-shadow instead of border so the text isn't offset */
    box-shadow: inset 0 -3px transparent;
    /* Avoid rounded borders under each button name */
    border: none;
    border-radius: 0;
}

/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
button:hover {
    background: inherit;
    box-shadow: inset 0 -3px #ffffff;
}

/* you can set a style on hover for any module like this */
#pulseaudio:hover {
    background-color: #a37800;
}

#workspaces button {
    padding: 0 5px;
    background-color: transparent;
    color: #abbdf5;
}

#workspaces button:hover {
    background: rgba(0, 0, 0, 0.2);
}

#workspaces button.focused {
    background-color: transparent;
    box-shadow: inset 0 -3px #ffffff;
}

#workspaces button.urgent {
    background-color: #eb4d4b;
}

#workspaces button.active{
    background-color: rgba(95, 120, 200, 0.35);
    border-radius: 2px;
}

#mode {
    background-color: transparent;
    box-shadow: inset 0 -3px #ffffff;
}

#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#scratchpad,
#power-profiles-daemon,
#mpd {
    padding: 10px;
    color: #abbdf5;
}

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

/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
    margin-left: 0;
}

/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
    margin-right: 0;
}

#clock {
    background-color: transparent;
    color: #abbdf5;
}

@keyframes blink {
    to {
        background-color: transparent;
        color: #abbdf5;
    }
}

/* Using steps() instead of linear as a timing function to limit cpu usage */
#battery.critical:not(.charging) {
    background-color: transparent;
    color: #8ba6fc;
    animation-name: blink;
    animation-duration: 0.5s;
    animation-timing-function: steps(12);
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

#power-profiles-daemon {
    padding-right: 15px;
}

#power-profiles-daemon.performance {
    background-color: transparent;
    color: #abbdf5;
}

#power-profiles-daemon.balanced {
    background-color:transparent;
    color: #abbdf5;
}

#power-profiles-daemon.power-saver {
    background-color: transparent;
    color: #abbdf5;
}


#cpu {
    background-color: transparent;
    color: #abbdf5;
}

#memory {
    background-color: transparent;
    color: #abbdf5;
}

#disk {
    background-color: transparent;
}

#backlight {
    background-color: transparent;
}

#network {
    background-color: transparent;
}

#network.disconnected {
    background-color: transparent;
}

#pulseaudio {
    background-color: transparent;
    color: #abbdf5;
}

#pulseaudio.muted {
    background-color: transparent;
    color: #5f78c8;
}

#wireplumber {
    background-color: transparent;
    color: #5f78c8;
}

#wireplumber.muted {
    background-color: transparent;
}

#custom-media {
    background-color: transparent;
    color: #5f78c8;
    min-width: 100px;
}

#custom-media.custom-spotify {
    background-color: transparent;
    color: #5f78c8;
}

#custom-media.custom-vlc {
    background-color: transparent;
}

#temperature {
    background-color: transparent;
    color: #abbdf5;
}

#temperature.critical {
    background-color: #eb4d4b;
}

#tray {
    background-color: transparent;
}

#tray > .passive {
    -gtk-icon-effect: dim;
}

#tray > .needs-attention {
    -gtk-icon-effect: highlight;
    background-color: transparent;
}

#idle_inhibitor {
    background-color: transparent;
}

#idle_inhibitor.activated {
    background-color: transparent;
    color: #5f78c8;
}

#mpd {
    background-color: transparent;
    color: #5f78c8;
}

#mpd.disconnected {
    background-color: transparent;
}

#mpd.stopped {
    background-color:transparent;
}

#mpd.paused {
    background-color: transparent;
}

#language {
    background: transparent;
    color: #5f78c8;
    padding: 0 5px;
    margin: 0 5px;
    min-width: 16px;
}

#keyboard-state {
    background: transparent;
    color: #5f78c8;
    padding: 0 0px;
    margin: 0 5px;
    min-width: 16px;
}

#keyboard-state > label {
    padding: 0 5px;
}

#keyboard-state > label.locked {
    background: rgba(0, 0, 0, 0.2);
}

#scratchpad {
    background: rgba(0, 0, 0, 0.2);
}

#scratchpad.empty {
	background-color: transparent;
}

#privacy {
    padding: 0;
}

#privacy-item {
    padding: 0 5px;
    color: white;
}

#privacy-item.screenshare {
    background-color: transparent;
}

#privacy-item.audio-in {
    background-color: transparent;
}

#privacy-item.audio-out {
    background-color: transparent;
}

/* Akku bei niedrigem Stand färben */
#battery.warning:not(.charging) {
    color: #ffa07a;
}

#battery.charging {
    color: rgba(79, 245, 140, 0.785);
}
