/* =========================================================================
 * tanin-libadwaita — Fuji DARK recolour for GTK3 (rides on adw-gtk3-dark).
 * Covers the gaps the libadwaita/GTK4 recolour can't reach: GTK3 apps
 * (pavucontrol, nm-connection-editor, …). Same palette as the GTK4 dark.
 * ========================================================================= */

/* libadwaita-style names (adw-gtk3 honours these) */
@define-color accent_color    #a39ec4;
@define-color accent_bg_color #a39ec4;
@define-color accent_fg_color #0f0f0f;
@define-color window_bg_color #0f0f0f;
@define-color window_fg_color #f0f0f0;
@define-color view_bg_color   #141414;
@define-color view_fg_color   #f0f0f0;
@define-color headerbar_bg_color #0f0f0f;
@define-color headerbar_fg_color #f0f0f0;
@define-color card_bg_color   #191919;
@define-color card_fg_color   #f0f0f0;
@define-color popover_bg_color #191919;
@define-color popover_fg_color #f0f0f0;
@define-color dialog_bg_color #141414;
@define-color dialog_fg_color #f0f0f0;
@define-color sidebar_bg_color #131313;

/* legacy GTK3 / Adwaita names */
@define-color theme_bg_color   #0f0f0f;
@define-color theme_fg_color   #f0f0f0;
@define-color theme_base_color #141414;
@define-color theme_text_color #f0f0f0;
@define-color theme_selected_bg_color #a39ec4;
@define-color theme_selected_fg_color #0f0f0f;
@define-color insensitive_bg_color   #161616;
@define-color insensitive_fg_color   #6a6a6a;
@define-color insensitive_base_color #121212;
@define-color borders rgba(240, 240, 240, 0.10);

@define-color destructive_color #e0a3a3;
@define-color success_color #9ec4a3;
@define-color warning_color #c4bd9e;
@define-color error_color   #e0a3a3;

/* pill-shaped controls */
button,
entry,
combobox button,
spinbutton,
notebook > header > tabs > tab { border-radius: 999px; }

/* Force the Fuji accent. adw-gtk3 otherwise follows the GNOME accent-color
 * gsetting (would stay blue), so we override the accented widgets explicitly. */
scale highlight,
scale trough progress,
progressbar progress,
levelbar block.filled { background-color: @accent_color; }
checkbutton check:checked,
radiobutton radio:checked,
check:checked, radio:checked { background-color: @accent_color; border-color: @accent_color; }
switch:checked { background-color: @accent_color; }
notebook > header tab:checked { box-shadow: inset 0 -3px @accent_color; }
notebook > header tab:checked label { color: @accent_color; }
row:selected, list row:selected,
treeview.view:selected, .view:selected,
menuitem:hover, menu menuitem:hover,
*:selected { background-color: @accent_color; color: @accent_fg_color; }
button.suggested-action { background-color: @accent_color; color: @accent_fg_color; }
entry:focus, entry:focus-within { border-color: @accent_color; }
