/***
 *    ┓ ┏┏┓┓┏┳┓┏┓┳┓  ┳┓┏┓┳┓┓┏┓  ┏┓┏┓┏┓
 *    ┃┃┃┣┫┗┫┣┫┣┫┣┫━━┃┃┣┫┣┫┃┫ ━━┃ ┗┓┗┓
 *    ┗┻┛┛┗┗┛┻┛┛┗┛┗  ┻┛┛┗┛┗┛┗┛  ┗┛┗┛┗┛
 *                                    
 */


@import 'matugen/matugen-waybar.css';

* {
    font-family: GeistMono Nerd Font Propo;
    font-weight: bold;
    font-size: 12px;
}

window#waybar {
    background-color: alpha(@surface, 0.5);
    color: @on_surface;
    transition-property: background-color;
    transition-duration: 0.5s;
}

window#waybar.hidden {
    opacity: 0.1;
}

#window {
    color: @on_surface;
}

#clock,
#cpu,
#memory,
#tray,
#workspaces,
#battery,
#idle_inhibitor,
#custom-power-menu,
#custom-launcher,
#custom-weather{
    color: @on_surface;
    padding: 2px 10px;
    background-color: @surface;
    border-radius: 8px;
    margin: 6px 3px 6px 3px;
}

#custom-launcher {
    color: @primary;
    padding: 0 20px 0 20px;
    margin-left: 8px;
}

#cpu {
    color: @tertiary;
}

#memory {
    color: @secondary;
}

#workspaces {
background-color : @surface;
}

#workspaces button {
    color: @on_surface;
    box-shadow: inset 0 -3px transparent;
    margin-right: 0em;
    transition: all 0.5s cubic-bezier(0.55, -0.68, 0.48, 1.68);
}

#workspaces button.active {
    color: @primary;
    margin-right: 0em;
    transition: all 0.5s cubic-bezier(0.55, -0.68, 0.48, 1.68);
}

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

#tray {
background-color: @surface;
}

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

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


#bluetooth,
#custom-pacman,
#custom-colorpicker,
#backlight,
#pulseaudio,
#custom-swaync,
#network {
    background-color: @surface;
    padding: 0 12px;
    margin: 6px 0px 6px 0px;
}

#bluetooth {
    border-radius: 8px 0px 0px 8px;
    color: @primary;
    margin-left: 3px;
    border-right: none;
}

#network {
    color: @secondary;
    padding-right: 12px;
    border-right: none;
    border-left: none;
}

#network.disconnected {
    color: @error;
}

#pulseaudio{
    color: @tertiary;
    border-left: none;
    border-right: none;
}

#custom-pacman, #custom-colorpicker {
    color: @primary;
    border-left: none;
    border-right: none;
}

#pulseaudio.muted {
    color: @error;
}

#backlight {
    color: @on_surface;
    padding-right: 12px;
    border-radius: 0 8px 8px 0;
    border-left: none;
}

#custom-swaync {
    border-radius: 8px;
    color: @on_surface;
    margin: 6px 3px 6px 3px;
}

#battery {
    color: @primary;
    border-radius: 8px;
    padding: 0 12px;
}

#battery.critical,
#battery.warning,
#battery.full,
#battery.plugged {
    color: @on_surface;
}

#clock {
    background-color: @surface;
    color: @on_surface;
    font-weight: bold;
}

#custom-power-menu {
    color: @primary;
    margin-right: 8px;
    padding: 0 20px 0 20px;
}

@keyframes blink {
    to {
        background-color: rgba(30, 34, 42, 0.5);
        color: #abb2bf;
    }
}

tooltip {
    border: 2px solid @primary;
    border-radius: 12px;
    background-color: @surface;
    color: @on_surface;
}

tooltip label {
    padding: 5px;
}

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