/* Catppuccin Mocha — waybar style
 * Clean, minimal, consistent module pills (shrinked by 2px)
 */

@define-color base     #2e2038;
@define-color mantle    #181825;
@define-color crust     #3e0f66;

@define-color text      #ffffff;
@define-color subtext0  #a6adc8;
@define-color subtext1  #bac2de;
@define-color overlay0  #6c7086;

@define-color surface0  #313244;
@define-color surface1  #45475a;

@define-color mauve     #cba6f7;
@define-color lavender  #b4befe;
@define-color blue      #89b4fa;
@define-color teal      #bc94e2;
@define-color green     #a6e3a1;
@define-color yellow    #f9e2af;
@define-color peach     #fab387;
@define-color red       #f38ba8;

* {
    all: unset;
    font-family: "JetBrainsMono Nerd Font";
    font-size: 14px;
}

window#waybar {
    background-color: @base;
    border-bottom: 1px solid @teal;
}

tooltip {
    background-color: @mantle;
    border: 1px solid @surface0;
    border-radius: 8px;
    padding: 6px 10px;
}

tooltip label {
    color: @text;
}

menu {
    background-color: @mantle;
    border: 1px solid @surface0;
    border-radius: 8px;
    padding: 4px;
}

menu menuitem {
    padding: 6px 10px;
    border-radius: 1px;
    color: @subtext1;
}

menu menuitem:hover {
    background-color: @surface1;
    color: @subtext0;
}

/* ---------- shared module pill ---------- */

#workspaces,
#language,
#window,
#clock,
#pulseaudio,
#battery,
#network,
#cpu,
#memory,
#disk,
#tray {
color: @text;
padding: 3px 12px;
margin: 3px 3px;
border-radius: 10px;
}
#mpris {
color: @text;
padding: 3px 12px;
margin: 3px 3px;
border-radius: 10px;
}
/* ---------- workspaces ---------- */

#workspaces {
padding: 1px 6px;
}

#workspaces button {
padding: 1px 8px;
margin: 2px;
border-radius: 8px;
color: @text;
font-size: 18px;
transition: all 0.2s ease-in-out;
}

#workspaces button.empty {
color: @overlay0;
}

#workspaces button.active {
color: @mauve;
font-weight: bold;
}

#workspaces button.urgent {
background-color: @red;
color: @crust;
}

/* ---------- language ---------- */

#language {
color: @teal;
font-weight: bold;
}

/* ---------- clock ---------- */

#clock {
color: @blue;
font-weight: bold;
}

/* ---------- pulseaudio ---------- */

#pulseaudio {
color: @green;
}

#pulseaudio.muted {
color: @overlay0;
}

/* ---------- battery ---------- */

#battery {
color: @green;
}

#battery.charging {
color: @teal;
}

#battery.warning:not(.charging) {
color: @yellow;
}

#battery.critical:not(.charging) {
color: @red;
}

/* ---------- network ---------- */

#network {
color: @peach;
}

#network.disconnected {
color: @red;
}

/* ---------- cpu / memory / disk ---------- */

#cpu {
color: @mauve;
}

#memory {
color: @lavender;
}

#disk {
color: @peach;
}

/* ---------- tray ---------- */

#tray {
padding: 1px 10px;
}

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

#tray > .needs-attention {
background-color: @red;
border-radius: 8px;
}

#custom-airpods {
background-image: url("/home/sanjar/.config/waybar/airpods.png");
background-repeat: no-repeat;
background-position: left center;
background-size: 16px 16px;
padding-left: 22px;
}
#custom-arch {
font-size: 20px;
padding: 0 8px;
color: @lavender;
}
/* ---------- mpris ---------- */

#mpris {
color: @mauve;
}

#mpris.paused {
color: @overlay0;
}

