/* SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space> */
/* SPDX-License-Identifier: CC0-1.0 */

@import "$$waybar-colors.css$$";

* {
    font-size: 1.2rem;
    background-color: transparent;
    border-radius: 5px;
}

window {
    color: @bg2;
}

tooltip {
    background-color: @bg2;
    border: 1px solid @bg2;
}

tooltip label {
    color: @bg1;
    text-shadow: none;
}

.modules-right {
    margin: 10px 10px 0 0;
}
.modules-center {
    margin: 10px 0 0 0;
}
.modules-left {
    margin: 10px 0 0 10px;
}

#temperature,
#cpu,
#memory,
#clock,
#tray,
#wireplumber,
#backlight,
#battery {
    padding: 0 10px;
    background-color: @bg1;
    opacity: 0.95;
}

#taskbar {
    color: @bg2;
    background-color: @bg1;
}

#taskbar.empty {
    background: transparent;
}

#taskbar button {
    /* https://github.com/Alexays/Waybar/issues/3334 */
    padding: 0;
    padding-left: 5px;
    padding-right: 5px;
}

#tray menu {
    color: @bg2;
    background-color: @bg1;
}

#tray menu menuitem:hover {
    color: @bg1;
    background-color: @bg2;
}

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

#tray > .needs-attention {
    -gtk-icon-effect: highlight;
}

#tray {
    background-color: @bg2;
}

#cpu.full,
#memory.full,
#temperature.critical,
#wireplumber.muted,
#battery.warning, #battery.critical {
    background-color: @red;
}

#battery.charging, #battery.plugged {
    background-color: @green;
}

#temperature {
    background-color: @color0;
}

#cpu {
    background-color: @color1;
}

#memory {
    background-color: @color2;
}

#clock {
    background-color: @color3;
}

#wireplumber {
    background-color: @color4;
}

#backlight {
    background-color: @color5;
}

#battery {
    background-color: @color6;
}
