/* solarized colorscheme */

/* base colors */
@define-color base03 #002b36;
@define-color base02 #073642;
@define-color base01 #586e75;
@define-color base00 #657b83;
@define-color base0 #839496;
@define-color base1 #93a1a1;
@define-color base2 #eee8d5;
@define-color base3 #fdf6e3;

/* accent colors */
@define-color brblack @base03;
@define-color black @base02;
@define-color yellow #b58900;
@define-color orange #cb4b16;
@define-color red #dc322f;
@define-color magenta #d33682;
@define-color violet #6c71c4;
@define-color blue #268bd2;
@define-color cyan #2aa198;
@define-color green #859900;
@define-color white @base2;
@define-color brwhite @base3;
@define-color dimmed @base0;

/* colorscheme done */

* {
    border: none;
    border-radius: 0;
    /* `otf-font-awesome` is required to be installed for icons */
    /* Find Ubuntu Condensed font somewhere and install it in your system, it is NOT installed by default */
    font-family: "Fira Sans Condensed SemiBold", "Font Awesome 5 Free Solid", "Font Awesome 5 Free Regular", "Font Awesome 5 Brands Regular", sans-serif;
    font-size: 16px;
    min-height: 0;
}

window#waybar {
    background-color: alpha(@base03, 0.75);
    transition-property: background-color;
    transition-duration: .5s;
}

window#waybar.hidden {
    opacity: 0.5;
}

#workspaces button {
    background: transparent;
    padding: 0px;
    margin: 0 2px;
    color: @dimmed;
}

#workspaces button:hover {
    color: @white;
    box-shadow: inset 0 3px @dimmed;
}

#workspaces button.focused {
    color: @blue;
    box-shadow: inset 0 3px @blue;
}

#workspaces button.urgent {
    color: @orange;
    box-shadow: inset 0 3px @orange;
}

#mode {
    box-shadow: inset 0 3px @cyan;
}

#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#mpd,
#custom-pvpn{
    padding: 0 4px;
    margin: 0 4px;
    color: @white;
}

/* 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;
}

#battery {
    box-shadow: inset 0 3px @white;
}

#battery.charging, #battery.plugged {
    color: @green;
    box-shadow: inset 0 3px @green;
    background-color: transparent;
}

@keyframes blink {
    to {
        box-shadow: inset 0 3px @brblack;
        background-color: @brwhite;
        color: @brblack;
    }
}

#battery.warning:not(.charging) {
    background-color: @yellow;
}

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

label:focus {
    background-color: @black;
}

#cpu {
    color: @green;
    box-shadow: inset 0 3px @green;
}

#memory {
    color: @violet;
    box-shadow: inset 0 3px @violet;
}

/*#disk {
    background-color: #964B00;
}

#backlight {
    color: #66e6e6;
    box-shadow: inset 0 2px #66e6e6;
}*/

#network {
    color: @blue;
    box-shadow: inset 0 3px @blue;
}

#network.disconnected {
    color: @red;
    box-shadow: inset 0 3px @red;
}

#pulseaudio {
    color: @yellow;
    box-shadow: inset 0 3px @yellow;
}

#pulseaudio.muted {
    color: @orange;
    box-shadow: inset 0 3px @orange;
}

#custom-media {
    background-color: transparent;
    color: @violet;
}

#custom-media.custom-chromium {
    background-color: transparent;
    color: @green;
}

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

#tray {
    box-shadow: inset 0 3px @blue;
}

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

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

#idle_inhibitor {
    color: @dimmed;
}

#idle_inhibitor.activated {
    color: @violet;
    box-shadow: inset 0 3px @violet;
}

#custom-pvpn {
    color: @red;
    box-shadow: inset 0 3px @red;
}

#custom-pvpn.Connected {
    color: @green;
    box-shadow: inset 0 3px @green;
}
