/* aptosid Hyprland waybar — "Nightsky".
   Palette keyed to the Hyprland session (hyprtoolkit/hyprlock): a deep indigo
   base carrying the blue -> magenta accent gradient of the window borders. */
@define-color bg        #1d1d2e;
@define-color bg-alt    #26263a;
@define-color bg-hi     #2e2e46;
@define-color fg        #d8d8d8;
@define-color fg-dim    #6f6f9c;
@define-color accent    #5555ff;
@define-color accent2   #ff55ff;
@define-color link      #7aa2ff;
@define-color warning   #f0ffaa;
@define-color critical  #ff29a8;

* {
    font-family: "Cantarell", "Font Awesome 7 Free", "Font Awesome 6 Free", "FontAwesome", "Noto Sans", sans-serif;
    font-size: 14px;
    padding: 0;
    margin: 0;
    min-height: 0;
}

/* Transparent bar; each module floats as its own rounded island.
   The end pills are kept off the screen edges by margin-left/right in
   config.jsonc (reliable regardless of GTK padding quirks). */
window#waybar {
    background: transparent;
    color: @fg;
}

#custom-appmenu,
#workspaces,
#taskbar,
#mpris,
#battery,
#idle_inhibitor,
#power-profiles-daemon,
#backlight,
#wireplumber,
#tray,
#user,
#clock {
    background-color: alpha(@bg, 0.8);
    border: 1px solid @bg-hi;
    border-radius: 10px;
    margin: 4px 0;
    padding: 0 10px;
    transition: background-color 0.2s ease;
}

/* Workspaces: dim when empty, blue->magenta gradient when active. */
#workspaces {
    padding: 0 4px;
}

#workspaces button {
    color: @fg-dim;
    padding: 0 8px;
    margin: 3px 2px;
    border: none;
    border-radius: 7px;
    box-shadow: none;
    text-shadow: none;
}

#workspaces button.empty {
    color: @fg-dim;
}

#workspaces button:hover {
    background: @bg-hi;
    color: @fg;
    box-shadow: none;
    text-shadow: none;
}

#workspaces button.active {
    color: @bg;
    background: linear-gradient(45deg, @accent, @accent2);
}

/* Status modules: neutral by default, cool accents where it reads well. */
#clock {
    color: @link;
    font-weight: bold;
}

#power-profiles-daemon {
    color: @link;
}

/* Now-playing sits centred; a magenta pop against the cool ground. */
#mpris {
    color: @accent2;
    font-style: italic;
}

#backlight {
    color: @warning;
}

/* User avatar + name (click opens home). */
/* Application menu launcher (leftmost), the signature accent. */
#custom-appmenu {
    color: @accent2;
    font-size: 16px;
    padding: 2px 12px 0;
}

#custom-appmenu:hover {
    background-color: @bg-hi;
}

#user {
    color: @link;
}

#idle_inhibitor.activated {
    color: @accent2;
}

#wireplumber.muted {
    color: @fg-dim;
}

#battery.charging {
    color: @accent;
}

#battery.warning {
    color: @warning;
}

#battery.critical {
    color: @critical;
}

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

@keyframes blink {
    to {
        color: @bg;
        background-color: @critical;
    }
}

tooltip {
    background-color: @bg;
    border: 1px solid @accent;
    border-radius: 8px;
}

tooltip label {
    color: @fg;
    padding: 4px;
}
