* {
    font-family: "JetBrainsMono Nerd Font", sans-serif;
    font-weight: bold;
    font-size: 20px;
}

window#waybar {
    background: transparent;
    color: #D8DEE9; /* Snow Storm text */
    border-radius: 9px;
    margin: 12px 100px;
}

/* Base module styling */
#window,
#custom-media,
#mpd,
#idle_inhibitor,
#pulseaudio,
#network,
#power-profiles-daemon,
#cpu,
#mpd,
#memory,
#temperature,
#backlight,
#keyboard-state,
#sway-language,
#battery,
#clock,
#tray,
#custom-launcher,
#custom-power {
    background-color: transparent; /* Polar Night */
    color: inherit; /* Aurora Red */
    padding: 5px 10px;
    margin: 0;
    border: none; /* Frost blue */
    border-radius: 0;
}

/* Specific styling for launcher (a bit more padding) */
#custom-launcher {
    background-color: #2e3440;
    color: #bf616a;
    /*border: 2px solid #81a1c1;*/
    border-radius: 6px;
    padding: 2px 6px;
    margin: 6px 4px;
}

#mpd {
    background-color: #2e3440;
    color: #bf616a;
    /*border: 2px solid #81a1c1;*/
    border-radius: 6px;
    padding: 2px 7px;
    margin: 6px 4px;
}

#window {
    background-color: #2e3440;
    color: #bf616a;
    /*border: 2px solid #81a1c1;*/
    border-radius: 6px;
    padding: 2px 7px;
    margin: 6px 4px;
}

/* Center module container */
.modules-center {
    background-color: #2E3440;
    color: #BF616A;
    /*border: 2px solid #81a1c1;*/
    border-radius: 6px;
    padding: 2px 6px;
    margin: 6px 4px;
}

/* Right-aligned modules */
.modules-right {
    background-color: #2E3440;
    /*border: 2px solid #81a1c1;*/
    border-radius: 6px;
    padding: 2px 6px;
    margin: 6px 4px;
}

/* Center module container */
.modules-center {
    background-color: #2E3440;
    color: #BF616A;
    /*border: 2px solid #81a1c1;*/
    border-radius: 6px;
    padding: 2px 6px;
    margin: 6px 4px;
}

/* Right-aligned modules */
.modules-right {
    background-color: #2E3440;
    /*border: 2px solid #81a1c1;*/
    border-radius: 6px;
    padding: 2px 6px;
    margin: 6px 4px;
}

/* Workspaces container */
#workspaces {
    background-color: #2E3440;
    /*border: 2px solid #81a1c1;*/
    border-radius: 6px;
    padding: 0;
    margin: 8px 4px;
}

/* Workspace buttons */
#workspaces button {
    padding: 4px 12px;
    margin: 0;
    border: none;
    background-color: transparent;
    color: #81a1c1;
    border-radius: 0;
}

/* Round outer buttons only */
#workspaces button:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
#workspaces button:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Hover */
#workspaces button:hover {
    background-color: #5E81AC;
    color: #D8DEE9;
}

/* Focused/active */
#workspaces button.focused,
#workspaces button.active {
    background-color: #2E3440;
    color: #BF616A;
}

/* Urgent workspace */
#workspaces button.urgent {
    background-color: #BF616A;
    color: #ECEFF4;
}

/* Module-specific coloring */
#backlight {
    background-color: #2E3440;
    color: #A3BE8C;
}

#mpd {
    background-color: #2E3440;
    color: #A3BE8C;
}

#window {
    background-color: #2E3440;
    color: #81a1c1;
}

#memory {
    background-color: #2E3440;
    color: #D08770;
}

#battery {
    background-color: #2E3440;
    color: #B48EAD;
}

#battery.charging,
#battery.plugged {
    color: #A3BE8C;
    background-color: #2E3440;
}

#battery.critical:not(.charging) {
    background-color: #BF616A;
    color: #D8DEE9;
    animation-name: blink;
    animation-duration: 0.5s;
    animation-timing-function: steps(12);
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

#network {
    background-color: #2E3440;
    color: #EBCB8B;
}

#pulseaudio {
    background-color: #2E3440;
    color: #88c0d0;
}

#pulseaudio.muted {
    background-color: #2e3440;
    color: #bf616a;
}

/* Cava Visualizer */
#cava {
    background-color: #2E3440;
    color: #5E81AC;
    border-radius: 3px;
    font-family: "Iosevka Nerd Font";
    border: solid 2px;
    /*border-color: #81a1c1;*/
    padding: 2px 12px;
    margin: 8px 4px;
}

@keyframes blink {
    to {
        background-color: #ECEFF4;
        color: #2E3440;
    }
}

/* Edge fixes */
.modules-left > widget:first-child > #workspaces {
    margin-left: 0;
}
.modules-right > widget:last-child > #workspaces {
    margin-right: 0;
}

