@keyframes blink-warning {
    70% {
        color: @light;
    }

    to {
        color: @light;
        background-color: @warning;
    }
}

@keyframes blink-critical {
    70% {
        color: @light;
    }

    to {
        color: @light;
        background-color: @critical;
    }
}


/* -----------------------------------------------------------------------------
 * Styles
 * -------------------------------------------------------------------------- */

/* COLORS */

/* Dracula */
/* @define-color bg #353C4A;
@define-color light #eceff4;
@define-color dark #2e3440;
@define-color warning #ebcb8b;
@define-color critical #d08770;
@define-color mode #4c566a;
@define-color workspaces @bg;
@define-color workspacesfocused #434C5E;
@define-color tray @workspacesfocused;
@define-color sound #46536A;
@define-color network #5D7096;
@define-color memory #546484;
@define-color cpu #596A8D;
@define-color temp #4D5C78;
@define-color layout #5e81ac;
@define-color battery #88d089;
@define-color date #2e3440;
@define-color time #3A4253;
@define-color backlight #3F495D; */
@define-color bg #353C4A;
@define-color light #f8f8f2;
@define-color dark #9580ff;
@define-color warning #ffca80;
@define-color critical #ff9570;
@define-color mode #22212C;
@define-color workspaces #22212C;
@define-color workspacesfocused #22212C;
@define-color tray @workspacesfocused;
@define-color sound #22212C;
@define-color network #22212C;
@define-color memory #22212C;
@define-color cpu #22212C;
@define-color temp #22212C;
@define-color layout #22212C;
@define-color battery #22212C;
@define-color date #22212C;
@define-color time #f8f8f2;
@define-color backlight #22212C;
@define-color apple #22212C;




/* Reset all styles */
* {
    border: none;
    border-radius: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
}

/* The whole bar */
#waybar {
    background: rgba(0, 0, 0, 0);
    color: @light;
    font-family: "FiraCode Nerd Font", "Noto Sans", "Font Awesome 6 Free";
    font-size: 12px;
    font-weight: bold;
}

/* Each module */
#battery,
#cpu,
#custom-layout,
#memory,
#mode,
#network,
#wireplumber,
#temperature,
#custom-alsa,
#tray,
#backlight {
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 5px;
    margin-top: 4px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 3px;
}

#clock {
    padding-left: 10px;
    padding-right: 10px;
    margin-right: 5px;
    margin-top: 4px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 3px;
}

#custom-fedora {
    padding-left: 8px;
    padding-right: 8px;
    margin-right: 5px;
    margin-top: 4px;
    padding-top: 2px;
    padding-bottom: 2px;
    margin-bottom: 3px;
}

/* Each module that should blink */
#mode,
#memory,
#temperature,
#battery {
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

/* Each critical module */
#memory.critical,
#cpu.critical,
#temperature.critical,
#battery.critical {
    color: @critical;
}

/* Each critical that should blink */
#mode,
#memory.critical,
#temperature.critical,
#battery.critical.discharging {
    animation-name: blink-critical;
    animation-duration: 2s;
}

/* Each warning */
#network.disconnected,
#memory.warning,
#cpu.warning,
#temperature.warning,
#battery.warning {
    color: @warning;
}


/* Each warning that should blink */
#battery.warning.discharging {
    animation-name: blink-warning;
    animation-duration: 3s;
}

/* And now modules themselves in their respective order */

#mode {
    /* Shown current Sway mode (resize etc.) */
    color: @light;
    background: @mode;
}

/* Workspaces stuff */

/* #workspaces {
    border-radius: 8px;
} */


#workspaces button {
    font-weight: bold;
    padding-left: 5px;
    padding-right: 5px;
    color: @light;
    background: @workspaces;
    border-radius: 8px;
    margin-top: 4px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 3px;
    margin-right: 1px;

}

#workspaces button.active {
    color: #ff79c6;
}

#workspaces button.urgent {
    color: #ff5555;
}

#window {
    margin-right: 40px;
    margin-left: 40px;
}

#custom-alsa {
    background: @sound;
    border-radius: 8px;

}

#network {
    background: @network;
    border-radius: 8px;
}

#memory {
    background: @memory;
    border-radius: 8px;
    margin-right: 5px;
}

#cpu {
    background: @cpu;
    border-radius: 8px;
}

#temperature {
    background: @temp;
    border-radius: 8px;
}

#custom-layout {
    background: @layout;
    border-radius: 8px;
}

#battery {
    background: @battery;
    border-radius: 8px;
    margin-right: 5px;

    /* border-top-left-radius: 10px;
    border-bottom-left-radius: 10px; */
}

#backlight {
    background: @backlight;
    border-radius: 8px;
}

#clock {
    background: @date;
    border-radius: 8px;
    /* border-top-right-radius: 10px;
    border-bottom-right-radius: 10px; */
}


#wireplumber {
    background: @sound;
    border-radius: 8px;
}


#tray {
    background: @tray;
    border-radius: 8px;
}

#custom-fedora {
    background: @apple;
    border-radius: 8px;
    margin-left: 5px;
    padding-left: 14px;
    padding-right: 14px;
}

#custom-notch {
    margin-left: 100px;
    margin-right: 100px;
    padding-left: 14px;
    padding-right: 14px;
}