/***********************
 * fallback mode panel *
 ***********************/
PanelWidget,
PanelApplet,
PanelToplevel {
    padding: 0;
    background-image: linear-gradient(to bottom,
                                      shade(@panel_bg_color, 1.5),
                                      shade(@panel_bg_color, 1.05)
                                      );

    color: @panel_fg_color;
}

PanelApplet {
    border-width: 0;
}

PanelSeparator {
    border-width: 0;
    background-image: linear-gradient(to bottom,
                                      shade(@panel_bg_color, 1.5),
                                      shade(@panel_bg_color, 1.05)
                                      );

    color: @panel_fg_color;
}

.gnome-panel-menu-bar,
PanelApplet > GtkMenuBar.menubar,
PanelApplet > GtkMenuBar.menubar.menuitem,
PanelMenuBar.menubar,
PanelMenuBar.menubar.menuitem {
    -PanelMenuBar-icon-visible: true;

    border-width: 0;
    background-image: linear-gradient(to bottom,
                                      shade(@panel_bg_color, 1.5),
                                      shade(@panel_bg_color, 1.05)
                                      );
}

PanelAppletFrame {
    border-width: 0;
    background-color: @panel_bg_color;
    background-image: linear-gradient(to bottom,
                                      shade(@panel_bg_color, 1.5),
                                      shade(@panel_bg_color, 1.05)
                                      );
}

PanelApplet .button {
    -GtkButton-inner-border: 2;

    border-width: 0 1px;
    border-radius: 0;
    border-color: transparent;
    background-image: linear-gradient(to bottom,
                                      shade(@panel_bg_color, 1.5),
                                      shade(@panel_bg_color, 1.05)
                                      );

    color: @panel_fg_color;

    text-shadow: none;
    box-shadow: none;
}

PanelApplet .button:active {
    border-width: 0 1px;
    border-radius: 0;
    border-color: shade(@panel_bg_color, 0.7);
    background-image: linear-gradient(to bottom,
                                      shade(@panel_bg_color, 0.85),
                                      shade(@panel_bg_color, 1.0)
                                      );
}

PanelApplet .button:prelight {
    border-width: 0 1px;
    border-radius: 0;
    border-color: shade(@panel_bg_color, 0.7);
    background-image: linear-gradient(to bottom,
                                      shade(@panel_bg_color, 1.7),
                                      shade(@panel_bg_color, 1.25)
                                      );
}

PanelApplet .button:active:prelight {
    border-width: 0 1px;
    border-radius: 0;
    border-color: shade(@panel_bg_color, 0.7);
    background-image: linear-gradient(to bottom,
                                      shade(@panel_bg_color, 0.85),
                                      shade(@panel_bg_color, 1.0)
                                      );
}

WnckPager, WnckTasklist {
    background-color: @panel_bg_color;
}

/************
 * nautilus *
 ************/
.nautilus-desktop.nautilus-canvas-item {
    color: white;
    text-shadow: 1px 1px black;
}

.nautilus-desktop.nautilus-canvas-item:active {
    color: @theme_fg_color;
}

.nautilus-desktop.nautilus-canvas-item:selected {
    color: @theme_selected_fg_color;
}

.nautilus-desktop.nautilus-canvas-item:active,
.nautilus-desktop.nautilus-canvas-item:prelight,
.nautilus-desktop.nautilus-canvas-item:selected {
    text-shadow: none;
}

NautilusWindow .toolbar {
    border-width: 0 0 1px;
    border-style: solid;
    border-color: shade(@toolbar_bg_color, 0.8);
}

NautilusWindow .sidebar .frame {
    border-style: none;
}

NautilusWindow > GtkGrid > .pane-separator,
NautilusWindow > GtkGrid > .pane-separator:hover {
    border-width: 0 1px 0 0;
    border-style: solid;
    border-color: shade(@theme_bg_color, 0.8);
    background-color: mix(shade(@theme_base_color, 0.9), shade(@theme_selected_bg_color, 1.35), 0.1);
}

NautilusNotebook.notebook {
    border-right-width: 0;
    border-left-width: 0;
    border-bottom-width: 0;
}

NautilusNotebook .frame {
    border-width: 0;
}

NautilusQueryEditor .search-bar.toolbar {
    border-top-width: 0;
    border-bottom-width: 0;
}

NautilusQueryEditor .toolbar {
    padding-top: 3px;
    padding-bottom: 2px;
    border-width: 1px 0 0 0;
    border-style: solid;
    border-color: @toolbar_bg_color;
    background-color: shade(@toolbar_bg_color, 0.9);
}

NautilusQueryEditor .toolbar:nth-child(2) {
    border-color: shade(@toolbar_bg_color, 0.8);
}

NautilusQueryEditor .toolbar:last-child,
NautilusQueryEditor .search-bar.toolbar:only-child {
    border-bottom-width: 1px;
    border-bottom-color: shade(@toolbar_bg_color, 0.8);
}

/******************
 * gnome terminal *
 ******************/
VteTerminal {
    background-color: @theme_base_color;
    color: @theme_text_color;
}

TerminalWindow GtkNotebook.notebook {
    border-right-width: 0;
    border-bottom-width: 0;
    border-left-width: 0;
}

/*********
 * gedit *
 *********/
GeditWindow .pane-separator,
GeditWindow .pane-separator:hover {
    border-width: 0 1px 1px 1px;
    border-style: solid;
    border-color: shade(@theme_bg_color, 0.8);
    background-color: @theme_bg_color;
    color: shade(@theme_bg_color, 0.8);
}

.gedit-document-panel {
    background-color: mix(shade(@theme_base_color, 0.9), shade(@theme_selected_bg_color, 1.35), 0.1);
    color: mix(@theme_text_color, @theme_base_color, 0.3);
}

.gedit-document-panel-group-row,
.gedit-document-panel-group-row:hover {
    border-top: 1px solid shade(mix(shade(@theme_base_color, 0.9), shade(@theme_selected_bg_color, 1.35), 0.1), 0.9);
    background-color: mix(shade(@theme_base_color, 0.9), shade(@theme_selected_bg_color, 1.35), 0.1);
}

.gedit-document-panel-document-row:hover {
    background-color: shade(mix(shade(@theme_base_color, 0.9), shade(@theme_selected_bg_color, 1.35), 0.1), 0.95);
}

.gedit-document-panel-document-row:selected,
.gedit-document-panel-document-row:selected:hover {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

.gedit-document-panel .list-row .button {
    padding: 1px;
    border-image: none;
    border-radius: 3px;
    border-style: solid;
    border-color: transparent;
    border-width: 1px;
    background-color: transparent;
    background-image: none;
    color: transparent;
    icon-shadow: none;
}

.gedit-document-panel .prelight-row .button  {
    border-color: alpha(black, 0.1);
    color: mix(@theme_text_color, @theme_base_color, 0.5);
}

.gedit-document-panel .list-row .button:hover,
.gedit-document-panel .prelight-row .button:hover {
    color: @theme_text_color;
    border-color: alpha(black, 0.1);
}

.gedit-document-panel .prelight-row .button:active {
    color: @theme_text_color;
    background-color: alpha(black, 0.08);
    border-color: alpha(black, 0.27)
                  alpha(black, 0.13)
                  alpha(black, 0.13)
                  alpha(black, 0.13);
}

GeditStatusbar {
    border-top: 1px solid shade(@theme_bg_color, 0.8);
}

GeditStatusbar GeditSmallButton,
GeditStatusMenuButton {
    text-shadow: none;
}

GeditStatusbar GeditSmallButton.button,
GeditStatusbar GeditSmallButton.button:hover,
GeditStatusbar GeditSmallButton.button:active,
GeditStatusbar GeditSmallButton.button:active:hover,
GeditStatusMenuButton.button,
GeditStatusMenuButton.button:hover,
GeditStatusMenuButton.button:active,
GeditStatusMenuButton.button:active:hover {
    border-image: none;
    border-style: solid;
    border-width: 0 1px;
    border-radius: 0;
    padding: 1px 6px 2px 4px;
}

GeditStatusbar GeditSmallButton.button:hover,
GeditStatusbar GeditSmallButton.button:active,
GeditStatusbar GeditSmallButton.button:active:hover,
GeditStatusMenuButton.button:hover,
GeditStatusMenuButton.button:active,
GeditStatusMenuButton.button:active:hover {
    border-color: shade(@theme_bg_color, 0.8);
}

GeditStatusbar GeditSmallButton.button:active,
GeditStatusMenuButton.button:active {
    background-color: transparent;
    background-image: linear-gradient(to bottom,
                                      shade(@theme_bg_color, 0.8),
                                      shade(@theme_bg_color, 0.95));

    color: @theme_fg_color;
}

GeditViewFrame .gedit-search-slider {
    padding: 4px;
    border-radius: 0 0 3px 3px;
    border-width: 0 1px 1px 1px;
    border-style: solid;
    border-color: shade(@theme_base_color, 0.8);
    background-color: @theme_base_color;
}

GeditViewFrame .gedit-search-slider .button,
GeditViewFrame .gedit-search-slider .entry {
    padding: 4px;
}

GeditViewFrame .gedit-search-slider .entry, 
GeditViewFrame .gedit-search-slider .entry:active,
GeditViewFrame .gedit-search-slider .entry:focus {
    border-right-width: 1px;
    border-right-color: shade(@theme_bg_color, 0.8);
}

GeditViewFrame .gedit-search-slider .not-found {
    background-color: @error_bg_color;
    background-image: none;
    color: @error_fg_color;
}

GeditViewFrame .gedit-search-slider .not-found:selected {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

GeditFileBrowserWidget .toolbar {
    padding: 2px;
    border-top: none;
    background-color: @theme_bg_color;
    background-image: none;
}

.gedit-search-entry-occurrences-tag {
    margin: 2px;
    padding: 2px;
    color: mix(@theme_text_color, @theme_base_color, 0.4);
}

/**********
 * Evince *
 **********/
EvWindow EggFindBar.primary-toolbar.toolbar {
    padding: 4px;
    background-color: @toolbar_bg_color;
    background-image: none;
}

EvWindow EggFindBar.primary-toolbar.toolbar .button,
EvWindow EggFindBar.primary-toolbar.toolbar .entry {
    padding: 4px;
}

EvWindow EggFindBar.primary-toolbar.toolbar .entry,
EvWindow EggFindBar.primary-toolbar.toolbar .entry:active,
EvWindow EggFindBar.primary-toolbar.toolbar .entry:focus {
    border-right-width: 1px;
    border-right-color: shade(@theme_bg_color, 0.8);
}


EvWindow EvFindSidebar .frame {
    border: none;
    border-right: 1px solid shade(@theme_bg_color, 0.8);
}

/***************
 * font-viewer *
 ***************/
SushiFontWidget {
    padding: 6px 12px;
}

/*************
 * gucharmap *
 *************/
GucharmapChartable {
    background-color: @theme_base_color;
    color: @theme_text_color;
}

GucharmapChartable:active,
GucharmapChartable:focus,
GucharmapChartable:selected {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

/*************
 * evolution *
 *************/
EPreviewPane .entry {
    background-color: @theme_base_color;
    color: @theme_text_color;
}

/******************
 * gnome calendar *
 ******************/
.calendar-view {
    background-color: shade(@theme_base_color, 0.95);
    color: @theme_text_color;
}

/*******************
 * gnome-bluetooth *
 *******************/
GtkEntry.entry.pin-entry {
	font: regular 50;
	padding-left: 25px;
	padding-right: 25px;
}

GtkLabel.pin-label {
	font: regular 50;
}

/*********
 * Geary *
 *********/
 .sidebar ConversationListView.view {
    background-color: @theme_base_color;
    background-image: none;
    color: @theme_text_color;
}

.sidebar ConversationListView.view row:selected,
.sidebar ConversationListView.view row:selected:hover,
.sidebar ConversationListView.view row:selected:focus {
    border-color: shade(@theme_selected_bg_color, 1.1);
    background-image: linear-gradient(to bottom,
                                      shade(@theme_selected_bg_color, 1.2),
                                      shade(@theme_selected_bg_color, 1.0)
                                      );

    color: @theme_selected_fg_color;
}

/************
 * Shotwell *
 ************/
SearchFilterToolbar.toolbar {
    background-color: @panel_bg_color;
    background-image: none;
    color: @theme_selected_fg_color;
}
