@import '../colors.css';

* {
    font-family: "JetBrainsMono Nerd Font";
    font-weight: bold;
    min-height: 0;
    /* set font-size to 100% if font scaling is set to 1.00 using nwg-look */
    font-size: 98%;
    font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
    padding: 0;
    margin-top: 1px;
}

window#waybar {
    background: rgba(0, 0, 0, 0);
}

window#waybar.hidden {
    opacity: 0.5;
}

window#waybar.empty {
    background-color: transparent;
}

window#waybar.empty #window {
    padding: 0px;
    margin: 0px;
    border: 0px;
    /*  background-color: rgba(66,66,66,0.5); */ /* transparent */
    background-color: transparent;
}

tooltip {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

tooltip label {
    color: @primary;
    margin-right: 2px;
    margin-left: 2px;
}

/*-----module groups----*/
.modules-right {
    background-color: alpha(@background, 0.4);
    border: 0px solid #b4befe;
    border-radius: 10px;
    padding-right: 2px;
    padding-left: 2px;
}

.modules-center {
    background-color: alpha(@background, 0);
    border: 0px solid #b4befe;
    border-radius: 10px;
}

.modules-left {
    background-color: alpha(@background, 0.4);

    border: 0px solid #b4befe;
    border-radius: 10px;
    padding-right: 2px;
    padding-left: 2px;
    
}
/*
#workspaces button {
    color: #6E6A86;
}

#workspaces button.active {
    color: #cba6f7;
    border-radius: 15px 15px 15px 15px;
}

#workspaces button.focused {
    color: #d8dee9;
}

#workspaces button.urgent {
    color: #11111b;
    border-radius: 10px;
}

#workspaces button:hover {
    color: #9CCFD8;
    border-radius: 15px;
}
*/
#backlight,
#battery,
#bluetooth,
#cava,
#clock,
#cpu,
#disk,
#idle_inhibitor,
#keyboard-state label,
#keyboard-state label.locked,
#keyboard-state,
#memory,
#mode,
#mpd,
#network,
#pulseaudio,
#taskbar button,
#taskbar,
#temperature,
#tray,
#window,
#wireplumber,
/* #workspaces, */
#custom-cycle_wall,
#custom-keybinds,
#custom-light_dark,
#custom-lock,
#custom-menu,
#custom-power_vertical,
#custom-power,
#custom-spotify,
#custom-updater,
#custom-weather,
#custom-weather.clearNight,
#custom-weather.cloudyFoggyDay,
#custom-weather.cloudyFoggyNight,
#custom-weather.default 
#custom-weather.rainyDay,
#custom-weather.rainyNight,
#custom-weather.severe,
#custom-weather.showyIcyDay,
#custom-weather.snowyIcyNight,
#custom-weather.sunnyDay {
    /*color: #cba7f7; */
    color: @foreground;
    padding: 1px 4px;
    border-radius: 8px;
}

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

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

#taskbar button.active {
    background-color: #7f849c;
}

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

#workspaces button label{
    color: 	@on_secondary_fixed;
    font-weight: bolder;
}

#workspaces button.active label{
    color: @on_primary_fixed;
    font-weight: bolder;
}

#workspaces{
    background-color: transparent;
    margin-top: 3px;
    margin-bottom: 10px;
    margin-right: 10px;
    margin-left: 25px;
}
#workspaces button{
    box-shadow: rgba(0, 0, 0, 0.116) 2px 2px 5px 2px;
    border-radius: 15px;
    margin-right: 10px;
    padding: 10px;
    padding-top: 1px;
    padding-bottom: 1px;
    font-weight: bolder;
    border: 2px solid @outline; 
    background: radial-gradient(@secondary 0%, @tertiary 100%); 
    background-size: 400% 400%;
    animation: gradient 5s linear infinite;
    transition: all 0.5s cubic-bezier(.55,-0.68,.48,1.68);
}

#workspaces button.active{
    padding-right: 20px;
    box-shadow: rgba(0, 0, 0, 0.288) 2px 2px 5px 2px;
    padding-left: 20px;
    padding-bottom: 0px;
    /* background: rgb(203,166,247);
    background: radial-gradient(circle, rgba(181,255,233,1) 0%, rgba(99,161,233,1) 50%, rgba(170,120,166,1) 100%); */
    background: radial-gradient(@primary 0%, @secondary 70%, @tertiary 100%); 
    background-size: 400% 400%;
    animation: gradient 5s linear infinite;
    border: 2px solid @outline; 
    transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682);
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 30%;
	}
	100% {
		background-position: 0% 50%;
	}
}

@keyframes gradient_f {
	0% {
		background-position: 0% 200%;
	}
    50% {
        background-position: 200% 0%;
    }
	100% {
		background-position: 400% 200%;
	}
}

@keyframes gradient_f_nh {
	0% {
		background-position: 0% 200%;
	}
	100% {
		background-position: 200% 200%;
	}
}
