/* -------- Catppuccin Mocha Palette -------- */
@define-color base      #1E1E2E;
@define-color mantle    #181825;
@define-color crust     #11111B;
@define-color text      #CDD6F4;
@define-color subtext0  #A6ADC8;

@define-color green     #A6E3A1;
@define-color yellow    #F9E2AF;
@define-color sky       #89DCEB;
@define-color rose      #F38BA8;
@define-color blue      #89B4FA;
@define-color surface2  #585B70;
@define-color peach  #fab387;

/* -------- Base Styles -------- */
* {
  font-family: "FiraCode Nerd Font", "Font Awesome 7 Free";
  font-size: 15px;
}

window#waybar {
  /* background: @base; */
  background: transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: background-color .35s ease, color .35s ease;
}

window#waybar.hidden { opacity: 0.2; }

window#waybar.termite { background: @base; }
window#waybar.chromium { background: @base; border: none; }

/* -------- Module “pill” look -------- */
#workspaces, #clock, #mpris, #pulseaudio, #bluetooth, #upower {
  background: @base;
  border: none;
  border-radius: 5px;
  padding: 3px 8px;
}

/* consistent gaps between modules */
.modules-left > widget, .modules-right > widget {
  margin: 0 15px;
}
.modules-left > widget:first-child { margin-left: 0; }
.modules-right > widget:last-child { margin-right: 0; }

/* -------- Buttons (generic) -------- */
/* Buttons */
button {
  border: none;
  border-radius: 8px;
  background: transparent;
  color: @text;
  transition: background-color .2s ease, box-shadow .2s ease;
  box-shadow: inset 0 -3px transparent;
}

/* hover */
button:hover {
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 -3px @peach;
}

/* active (no CSS transform in GTK; simulate press with padding + shadow) */
button:active {
  padding-top: 1px;      /* nudge down visually */
  padding-bottom: 1px;   /* keep height stable */
  box-shadow: inset 0 -2px @peach;
  color: @base;
}

/* -------- Workspaces -------- */
#workspaces {
  background: @base;
}

#workspaces button {
  padding: 2px 8px;
  margin: 0 2px;
  border-radius: 8px;
  transition: background-color .2s ease, box-shadow .2s ease;
}

#workspaces button:hover {
  background: rgba(255,255,255,0.08);
}

#workspaces button.active, #workspaces button.focused {
  background: @peach;
  color: @base;
  box-shadow: inset 0 -3px @peach;
}

#workspaces button.urgent {
  background: @rose;
  color: @base;
  box-shadow: inset 0 -3px rgba(0,0,0,0.2);
}

/* -------- Clock -------- */
#clock {
  background: @peach;
  color: @base;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* -------- Mpris -------- */
#mpris {
  background: @peach;
  color: @base;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* -------- Pavu -------- */
#pulseaudio {
  background: @peach;
  color: @base;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* -------- Bluetooth -------- */
#bluetooth {
  background: @peach;
  color: @base;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* -------- Upower -------- */
#bluetooth {
  background: @peach;
  color: @base;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* -------- Network -------- */
#network {
  background: @green;
  color: @base;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* -------- Helpers -------- */
@keyframes blink {
  to { background-color: @peach; color: @base; }
}
