* {
    font-family: "JetBrainsMono NF";
    font-size: 12px;
    transition-property: background-color;
    transition-duration: 0.5s;
    border: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    min-height: 0;
}

window#waybar {
    background-color: transparent;
    color: #ffffff;
}

window#waybar.hidden {
    opacity: 0.2;
}

/*
window#waybar.empty {
    background-color: transparent;
}
window#waybar.solo {
    background-color: #FFFFFF;
}
*/

window.left > box {
    background-color: rgba(36, 36, 36, 0.9);
    margin-left: 0px;
    margin-right: 5px;
    margin-bottom: 0px;
    margin-top: 0px;
    padding-right: 2px;
    border-radius: 0px 5px 5px 0px;
}

window.top > box {
    background-color: rgba(36, 36, 36, 0.9);
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 5px;
}

window.bottom > box > box {
    background-color: rgba(36, 36, 36, 0.9);
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;

    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    border-color: rgba(36, 36, 36, 0.9);
}

#workspaces button {
    padding-right: 10px;
    padding-left: 10px;
    background-color: transparent;
    color: #ffa500;
    /* Use box-shadow instead of border so the text isn't offset */
    box-shadow: inset 0 -3px transparent;
}

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

#workspaces button.active {
    background-color: #64727d;
    box-shadow: inset 0 -3px #ffa500;
}

#workspaces button.focused {
    background-color: #64727d;
    box-shadow: inset 0 -3px #ffa500;
}

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

#mode {
    background-color: #64727d;
    border-bottom: 3px solid #ffffff;
}

.warning,
.critical,
.urgent {
    animation-name: blink;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#tray,
#mode,
#idle_inhibitor,
#custom-date,
#custom-jdate,
#custom-khal,
#custom-touchpad,
#custom-love,
#language,
#bluetooth,
#mpd {
    padding-right: 10px;
    padding-left: 10px;
}

#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 {
    color: #ffffff;
}

#battery {
    color: #ffffff;
}

#battery.charging {
    color: #26a65b;
}

@keyframes blink {
    to {
        color: #ffffff;
    }
}

#battery.critical:not(.charging) {
    color: #f53c3c;
    animation-name: blink;
    animation-duration: 0.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

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

#keyboard-state label {
    color: #ff9d9d;
}

#keyboard-state label.locked {
    color: #9dffce;
}

#cpu {
    color: #2ecc71;
}

#memory {
    color: #9b59b6;
}

#disk {
    color: #c96500;
}

#backlight {
    color: #90b1b1;
}

#image {
    padding: 5px;
}

#network {
    color: #55d9cb;
}

#network.disconnected {
    color: #f53c3c;
}

#pulseaudio {
    color: #f1c40f;
}

#pulseaudio.muted {
    color: #90b1b1;
}

#temperature {
    color: #f0932b;
}

#temperature.critical {
    color: #eb4d4b;
}

#tray {
    padding-right: 15px;
}

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

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

#idle_inhibitor {
    color: #b5bec1;
}

#idle_inhibitor.activated {
    color: #ecf0f1;
}

#mpd {
    color: #66cc99;
}

#mpd.disconnected {
    color: #f53c3c;
}

#mpd.stopped {
    color: #90b1b1;
}

#mpd.paused {
    color: #51a37a;
}

#custom-date {
    color: #00abff;
}

#custom-jdate {
    color: #00abff;
}

#custom-khal {
    color: #00abff;
}

#network.speedify {
    color: #ff005a;
}

#network.xvpn {
    color: #ff005a;
}

#network.easynet {
    color: #5aff00;
}

#custom-love {
    color: #ff6c85;
}

#language {
    color: #740864;
    min-width: 30px;
}

#bluetooth {
    color: #cc3399;
}
