/* AIOS toolbar skin (All-glass compatible) by PlastikManiac */
/* credit goes to Spewboy for the Strata40 theme, 
 * and the creators of the All-Glass and All-In-One Sidebar extensions.
 */

/* AIOS toolbar */

#aios-toolbar * { 
  background: transparent !important;
  margin-top: 1px !important;
}

/* use commented values with Tabs on Top, and with Tabs on Top ONLY. */
#aios-toolbox-left > * {
 margin-top: 0px !important; /* -24px */ }
#aios-toggle-toolbar {
  margin-top: 0px !important; /* -24px */
  background: transparent !important;
  -moz-border-image: url("chrome://browser/skin/bottom-box.png") 2 2 2 2 / 1px 0px 0px 0px !important;
}
/* else, comment out */
/* Be aware of just how cheap of a hack this is. */

#aios-toolbox-left {
  -moz-margin-start: -1px;
  -moz-margin-end: 0px !important;
  padding-top: 0px !important;
  background-color: transparent !important;
  -moz-border-image: url("chrome://browser/skin/notification-info.png") 3 3 2 3 / 2px 0 2px 0 !important;
}

#aios-toolbar > toolbarbutton { margin-bottom: 1px !important; }
#aios-toolbar[iconsize="small"] > toolbarbutton {
 -moz-box-pack: center; /* center small icons horizontally */
 padding: 1px 0px 2px 0px !important;
 max-width: -moz-fit-content !important;
 min-width: 16px !important;
}
#aios-toolbar[iconsize="large"] > toolbarbutton {
 -moz-box-pack: center; /* center large icons horizontally */
 max-width: -moz-fit-content !important;
 min-width: 24px !important;
}

/* Sidebar */

#history-panel > hbox,
#bookmarksPanel > hbox,
#aios-sidebar > #search,
#aios-sidebar > #commandBar,
#aios-sidebar > #searchPanel {
  -moz-appearance: none !important;
  visibility: visible !important;
  display: -moz-box !important;
  margin-bottom: 0px !important;
  -moz-border-image: url("chrome://browser/skin/notification-info.png") 3 / 3px 0 3px 0 !important;
}

/* sidebar search boxes */

#aios-sidebar #styles-filter,
#search #searchbox,
#bookmarksPanel > hbox > textbox,
#history-panel > hbox > textbox,
#searchPanel #searchfield {
  -moz-appearance: none !important;
  -moz-border-image: url("chrome://browser/skin/urlbar.png") 4 4 3 4 / 4px 4px 3px 4px !important;
  -moz-border-radius: 5px !important;
  padding-bottom: 1px !important;
  margin-top: -1px !important;
}
#downloadManager #search { 
  -moz-border-image: url("chrome://browser/skin/notification-info.png") 3 / 3px 0 3px 0 !important;
  margin: -2px 0px 1px -2px !important;
  padding: 1px 0px 3px 0px !important;
} 
#downloadManager #searchbox { margin: 0px 0px 0px 3px !important;}
#downloadManager #searchbox .textbox-input-box {
  margin: 1px !important; height: 15px !important;
}

/* some rounding of corners */

#metatree .tree-bodybox,
#imagetree .tree-bodybox,
#mediaPreviewBox > vbox,
#feedListbox,
#permList {
 -moz-appearance: toolbar !important;
 background: transparent !important;
 border: 1px solid RGBa(0,0,0,0.2) !important;
 -moz-border-radius: 3px 3px !important;
 margin: 1px !important;
}

/* Skin the sidebar splitter */

#sidebar-splitter {
  -moz-appearance: window !important;
  background: transparent !important;
/*  border-right: 1px solid rgba(0,0,0,0.5) !important;*/
  border-top: 1px solid transparent !important; 
  padding: 0px 0px 0px 0px !important;
  max-width: 4px !important;
}

#aios-toggle-toolbar {
  -moz-appearance: none !important;
  background-color: inherit;
  -moz-border-image: url("chrome://browser/skin/bottom-box.png") 2 2 3 2 / 2px 0px 2px 1px stretch !important;
}
#aios-toggle-toolbar *:hover {
  background-color: rgba(217,217,255,0.4) !important;
  -moz-border-image: url("chrome://browser/skin/bottom-box.png") 2 2 3 2 / 2px 2px 1px 0px stretch !important;
}
#aios-toggle-toolbar *:active {
  background-color: rgba(217,217,255,0.6) !important;
  -moz-border-image: url("chrome://browser/skin/bottom-box.png") 2 2 3 2 / 2px 2px 1px 1px stretch !important;
}

/* sidebar header */

#aios-sidebarheader-top,
#aios-sidebarheader-bottom,
#aios-toolbox-sidebartop2,
#aios-sidebardivider-1,
#aios-sidebardivider-2 {
  -moz-appearance: none !important;
  background: transparent !important;            /* WITHOUT glass enabled, this just appears black */
}

sidebarheader {
/* comment out the next 2 lines if glass is DISABLED */
  -moz-appearance: -moz-win-glass !important;
  background: transparent !important;            /* either black or transparent */
  border: none !important;
  padding-right: 1px !important;
}
#sidebar-box {
  -moz-border-image: url("chrome://browser/skin/notification-info.png") 3 / 3px 2px 0 3px !important;
}
#sidebars-titlebutton > label {
  max-height: 18px !important;
  color: inherit; opacity: 1;
  text-shadow: white 0 0 8px, white 0 0 8px, white 0 0 8px !important;
}

/* menu button dropmarker arrow = hidden */
#aios-toolbar toolbarbutton > dropmarker, 
toolbar:not([mode="text"]) #sidebars-button dropmarker { 
  display: none !important;}

#mediaSplitter,
#themeSplitter {
  -moz-appearance: none !important;
  background: none !important;
  border: none !important;
}

#viewButton,
#clearListButton,
#aios .toolbarbutton-1,
#styles-sort,
#mainDeck button,
#mainDeck .caption-text,
#styles button,
#extensionsManager toolbarbutton,
#extensionsView .addonInstallButton,
#styles .button-text {
  color: #025 !important;
  border: none !important;
  background: none !important;
  text-shadow: white 0 0 8px, white 0 0 8px, white 0 0 8px !important;
}

#search-box,
.textbox-input, .textbox-input,
#search #searchbox .textbox-input-box, 
#searchPanel #searchfield, 
#styles-filter {
  opacity: 0.99 !important;
  color: inherit !important;
  text-shadow: white 0 0 6px, white 0 0 6px !important;
  margin: 1px !important;                /* give the search bar some space */
}

/* Fix AIOS buttons' pressed status */

.aios-tbutton:hover, .aios-tbutton:active, .aios-tbutton[checked="true"],
#sidebars-togglebutton:hover, #sidebars-togglebutton:active, #sidebars-togglebutton[checked="true"],
#toolbar-button:hover, #toolbar-button:active, #toolbar-button[checked="true"] {
  background: 0 none !important;
}
