/* =========================================================================
 * tanin-libadwaita — Fuji LIGHT recolour for GTK3 (rides on adw-gtk3).
 * Same warm Fuji light palette as the GTK4 light variant.
 * ========================================================================= */

/* libadwaita-style names (adw-gtk3 honours these) */
@define-color accent_color    #6f67a8;
@define-color accent_bg_color #6f67a8;
@define-color accent_fg_color #ffffff;
@define-color window_bg_color #f3f1ec;
@define-color window_fg_color #2a2926;
@define-color view_bg_color   #faf8f4;
@define-color view_fg_color   #2a2926;
@define-color headerbar_bg_color #ece8e1;
@define-color headerbar_fg_color #2a2926;
@define-color card_bg_color   #ffffff;
@define-color card_fg_color   #2a2926;
@define-color popover_bg_color #ffffff;
@define-color popover_fg_color #2a2926;
@define-color dialog_bg_color #faf8f4;
@define-color dialog_fg_color #2a2926;
@define-color sidebar_bg_color #ece8e1;

/* legacy GTK3 / Adwaita names */
@define-color theme_bg_color   #f3f1ec;
@define-color theme_fg_color   #2a2926;
@define-color theme_base_color #faf8f4;
@define-color theme_text_color #2a2926;
@define-color theme_selected_bg_color #6f67a8;
@define-color theme_selected_fg_color #ffffff;
@define-color insensitive_bg_color   #ebe7e0;
@define-color insensitive_fg_color   #9b968c;
@define-color insensitive_base_color #f1eee8;
@define-color borders rgba(0, 0, 0, 0.12);

@define-color destructive_color #b04848;
@define-color success_color #4f7a57;
@define-color warning_color #8a7f3a;
@define-color error_color   #b04848;

/* 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, 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; }
