/*default color scheme */
@define-color bg_color #f2f1f0;
@define-color fg_color #4c4c4c;
@define-color base_color #ffffff;
@define-color text_color #3C3C3C;
@define-color selected_bg_color #87A752;
@define-color selected_fg_color #ffffff;
@define-color tooltip_bg_color #1e1e1e;
@define-color tooltip_fg_color #ebebeb;

@define-color theme_fg_color @fg_color;
@define-color theme_bg_color @bg_color;
@define-color theme_base_color @base_color;
@define-color theme_selected_bg_color @selected_bg_color;
@define-color theme_selected_fg_color @selected_fg_color;
@define-color insensitive_bg_color shade(@theme_bg_color, 0.95);
@define-color insensitive_fg_color shade(@theme_bg_color, 0.6);
@define-color insensitive_base_color @base_color;
@define-color theme_unfocused_fg_color @backdrop_fg_color;
@define-color theme_unfocused_bg_color @bg_color;
@define-color theme_unfocused_base_color @base_color;
@define-color theme_unfocused_selected_bg_color @selected_bg_color;
@define-color theme_unfocused_selected_fg_color @selected_fg_color;
@define-color borders shade(@bg_color, 0.82);
@define-color unfocused_borders transparent;

@define-color warning_color @warning_fg_color;
@define-color error_color @error_fg_color;
@define-color success_color @success_color;

/* misc colors used by gtk+
 *
 * Gtk doesn't currently expand color variables for style properties. Thus,
 * gtk-widgets.css uses literal color names, but includes a comment containing
 * the name of the variable. Please remember to change values there as well
 * when changing one of the variables below.
 */
@define-color info_fg_color rgb (181, 171, 156);
@define-color info_bg_color rgb (252, 252, 189);
@define-color warning_fg_color rgb (173, 120, 41);
@define-color warning_bg_color rgb (250, 173, 61);
@define-color question_fg_color rgb (97, 122, 214);
@define-color question_bg_color rgb (138, 173, 212);
@define-color error_fg_color rgb (235, 235, 235);
@define-color error_bg_color rgb (223, 56, 44);
@define-color link_color #A7BB85;
@define-color success_color #4e9a06;
@define-color error_color #df382c;

/* theme common colors */
@define-color button_bg_color shade (@bg_color, 1.02); /*shade (#cdcdcd, 1.08);*/
@define-color notebook_button_bg_color shade (@bg_color, 1.02);
@define-color button_insensitive_bg_color mix (@button_bg_color, @bg_color, 0.6);
@define-color dark_bg_color #dfd7cf;
@define-color dark_fg_color @fg_color;

@define-color backdrop_fg_color mix (@bg_color, @fg_color, 0.8);
@define-color backdrop_text_color mix (@base_color, @text_color, 0.8);
@define-color backdrop_dark_fg_color mix (@dark_bg_color, @dark_fg_color, 0.75);
@define-color backdrop_selected_bg_color shade (@bg_color, 0.92);
@define-color backdrop_selected_fg_color @fg_color;
@define-color backdrop_filling_bg #b0b0b0;

@define-color focus_color alpha (@selected_bg_color, 0.5);
@define-color focus_bg_color alpha (@selected_bg_color, 0.1);
@define-color focus_color_dialog alpha (@selected_bg_color, 1.0);

@define-color shadow_color alpha(black, 0.5);

/*************
 * Mate-Menu *
 *************/

@define-color menu_bg_color #EEE9E4;

/************
 * notebook *
 ************/

@define-color core_color_a #B9C0A9; /* Core color for green widgets in RadiantMATE. */
@define-color core_color_b #edeceb; /* Core color for gray widgets in RadiantMATE. */

@define-color notebook_bg_color shade(@core_color_b, 1.02);
@define-color border_color shade(@core_color_b, 0.67);
@define-color notebook_tab_inner_border_color shade(@core_color_b, 1.04);

@define-color notebook_tab_gradient_a shade(@core_color_b, 0.97);
@define-color notebook_tab_gradient_b shade(@core_color_b, 0.92);
@define-color notebook_tab_gradient_c shade(@core_color_b, 0.90);
@define-color notebook_tab_gradient_d shade(@core_color_b, 0.86);

/* active tab */

@define-color notebook_active_tab_border @menubar_menuitem_hover_border_color;

@define-color notebook_active_tab_strip_gradient_a shade(@core_color_a, 1.05);
@define-color notebook_active_tab_strip_gradient_b shade(@core_color_a, 0.94);
@define-color notebook_active_tab_strip_border_bottom_color mix(#727272, shade(@core_color_a, 0.84), 0.65);
@define-color notebook_active_tab_gradient_a shade(@core_color_b, 1.07);
@define-color notebook_active_tab_gradient_b @notebook_bg_color;

/*******
 * OSD *
 *******/
@define-color osd_highlight #ffffff;
@define-color osd_lowlight #525252;
@define-color osd_base #0a1201;

@define-color osd_fg #ededed;
@define-color osd_bg alpha(@osd_base, 0.80);

@define-color osd_bg_backdrop alpha(shade(@osd_base, 1.40), 0.90);

@define-color osd_text_shadow alpha(black, 0.75);

@define-color osd_toolbar_bg_a alpha(@osd_base, 0.80);
@define-color osd_toolbar_bg_b alpha(#101010, 0.80);
@define-color osd_toolbar_bg_c alpha(shade(@osd_base, 1.02), 0.80);

@define-color osd_button_bg_a alpha(@osd_highlight, 0.16);
@define-color osd_button_bg_b alpha(@osd_lowlight, 0.05);
@define-color osd_button_bg_c alpha(@osd_highlight, 0.12);

@define-color osd_button_bg_insensitive alpha(@osd_highlight, 0.25);
@define-color osd_button_bg_insensitive_active alpha(@osd_highlight, 0.16);

@define-color osd_button_bg_hover_a alpha(@osd_highlight, 0.28);
@define-color osd_button_bg_hover_b alpha(@osd_lowlight, 0.14);
@define-color osd_button_bg_hover_c alpha(@osd_highlight, 0.14);

@define-color osd_button_bg_active_a alpha(@osd_lowlight, 0.18);
@define-color osd_button_bg_active_b alpha(@osd_highlight, 0.23);
@define-color osd_button_bg_active_c alpha(@osd_lowlight, 0.17);

@define-color osd_button_bg_backdrop alpha(@osd_highlight, 0.18);
@define-color osd_button_bg_backdrop_hover alpha(@osd_highlight, 0.25);
@define-color osd_button_bg_backdrop_active alpha(@osd_highlight, 0.35);
@define-color osd_button_bg_backdrop_insensitive alpha(@osd_highlight, 0.08);

@define-color osd_button_fg_backdrop shade(@osd_fg, 0.70);
@define-color osd_button_fg_backdrop_active shade(@osd_fg, 0.95);

@define-color osd_button_fg shade(@osd_fg, 0.85);
@define-color osd_button_fg_hover shade(@osd_fg, 0.96);
@define-color osd_button_fg_active shade(@osd_fg, 1.10);
@define-color osd_button_fg_insensitive shade(@osd_fg, 0.70);

@define-color osd_button_border shade (@theme_selected_bg_color, 0.8);
@define-color osd_button_inset shade(@osd_fg, 0.67);
@define-color osd_button_shadow alpha(black, 0.35);

@define-color osd_trough_bg alpha(@osd_button_fg, 0.10);

@define-color scrollbar_track_color mix(@base_color, black, 0.1); /* #e6e6e6 */

@define-color scrollbar_trough shade(@theme_bg_color, 0.98);
@define-color scrollbar_slider @theme_bg_color;

@define-color scrollbar_slider_bg_color shade(@theme_selected_bg_color, 0.99);
@define-color scrollbar_slider_hover_bg_color shade(@theme_selected_bg_color, 1.03);

@define-color progressbar_fill_a shade(@theme_selected_bg_color, 1.07);
@define-color progressbar_fill_b shade(mix(@theme_selected_bg_color, green, 0.10), 0.91);
@define-color button_border_active shade(@theme_selected_bg_color, 0.95);

@define-color osd_progressbar_background_a @selected_bg_color;
@define-color osd_progressbar_background_b @selected_bg_color;

@define-color progressbar_backdrop_fill_a shade(@backdrop_selected_bg_color, 1.07);
@define-color progressbar_backdrop_fill_b shade(mix(@backdrop_selected_bg_color, grey, 0.10), 0.91);
@define-color button_border_backdrop_active shade(@backdrop_selected_bg_color, 0.95);

@define-color inset_light_color alpha(white, 0.45);
@define-color inset_dark_color alpha(black, 0.07);

@define-color wm_shadow alpha(black, 0.5);

@import url("gtk-widgets-borders.css");
@import url("gtk-widgets-borders-radiance.css");
@import url("gtk-widgets-assets.css");
@import url("gtk-widgets-assets-radiance.css");
@import url("gtk-widgets.css");
@import url("gtk-widgets-radiance.css");
@import url("apps/unity.css");
@import url("apps/unity-greeter.css");
@import url("apps/gedit.css");
@import url("apps/nautilus.css");
@import url("apps/gnome-panel.css");
@import url("apps/gnome-terminal.css");
@import url("apps/gnome-system-log.css");
@import url("apps/glade.css");
@import url("apps/software-center.css");
@import url("apps/calendar.css");
@import url("apps/libreoffice.css");
@import url("apps/other-applications.css");
@import url("apps/mate-applications.css");
