/* AIOS toolbar skin (Strata40) by PlastikManiac */
/* credit goes to Spewboy for the Strata40 theme, 
 * and the creators of the StrataBuddy and All-In-One Sidebar extensions.
 */
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

/* AIOS toolbar */

#aios-toolbar:not([posMode="3"]) {
  -moz-appearance: none !important;
/* use any texture/gradient/image you want for the AIOS toolbar */
  background: threeDshadow url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAABCAYAAACsXeyTAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNAay06AAAABNSURBVAiZNYoxDsBADMLc/z+4ueSALumAjAVPVQW4SS4gYJIM0EkaaNsNHOAkqeVJcoDa/ibpzb+X7d/bdtue5ZU0+x9J17aWlvTY5gN1hIGGsN+O4AAAAABJRU5ErkJggg==") center center !important;
  -moz-border-image: url("chrome://browser/skin/bottom-box.png") 2 2 2 2 / 2px 2px 0 0 stretch !important;
  -moz-border-radius: 1px !important;
  padding: 1px 1px 0px 0px !important;
  border-right: 2px solid !important;
  -moz-border-right-colors: rgba(245,245,245,0.8) rgba(0, 0, 0, 0.1) !important;
}

#aios-toolbar[posMode="3"] {
  -moz-appearance: none !important;
  opacity: 1 !important; 
  background-image: none !important;
  background: threeDshadow !important;
  -moz-border-image: url("chrome://browser/skin/bottom-box.png") 2 2 2 2 / 2px 2px 0 0 stretch !important;
}

#aios-toolbox-left, 
#aios-toolbox-right {
  -moz-appearance: none !important;
  padding: 0px 0px 0px 0px !important;
  margin-top: -1px !important;          /* fixes the line that shows up sometimes */
}

#aios-toolbar toolbarbutton, 
#aios-toolbar toolbarbutton {
  margin-bottom: 2px !important;
  min-width: 24px !important;
}

#aios-toolbar[iconsize="small"] toolbarbutton image {
 margin-right: -2px !important; /* center small icons horizontally */
 padding: 1px !important;
 min-width: 16px !important;
}
#aios-toolbar[iconsize="large"] toolbarbutton image {
 margin-right: -2px !important; /* center large icons horizontally */
 padding-left: 2px !important;
 min-width: 24px !important;
}

#aios-toolbox-left toolbarseparator,
#aios-toolbox-right toolbarseparator {
 -moz-appearance: none !important; /* optional: use "splitter" */
 background: RGBa(0,0,0,0.2) !important;
 margin-top: 4px !important;
 margin-bottom: 3px !important;
 border: none !important;
}

/* Sidebar */

#history-panel > hbox,
#bookmarksPanel > hbox,
#search,
#commandBar,
#searchPanel {
 -moz-appearance: none !important;
/* background:  url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAmCAYAAAAFvPEHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGlJREFUeNpkjtENwCAIRBsaR3D/3RzBqKCAVvCjTXofL3cHJFwppQVrLYE55ws2jA9U1V035yAQkZ9zMDOerm9Z9K6fQWuNzx4RDUBEB9vygFKKnMHYglqr2IVCzpktzjuEEO/9c3wEGAA42JAY3wKNyAAAAABJRU5ErkJggg==") RGBa(176,176,176,0.3) !important;
-- optional */
 margin: -1px 0px -1px 0px !important;
/* border: none !important; */
}

/* some rounding of corners */

#metatree .tree-bodybox,
#imagetree .tree-bodybox,
#mediaPreviewBox > vbox,
#feedListbox,
#permList {
 -moz-appearance: none !important;
 background: transparent !important;
 border: 1px solid RGBa(0,0,0,0.2) !important;
 -moz-border-radius: 3px 3px !important;
 margin: 1px 1px 1px 1px !important;
}

/* userstyles header */

#userstyles-heading {
 -moz-appearance: none !important; /* optional: use "tooltip" for Vista/Windows 7 */
 background: none !important; /*
 border: 1px solid RGBa(0,0,0,0.4) !important;
 -moz-border-radius: 4px 4px 1px 1px !important;
 margin: 1px 7px -5px 7px !important;   */
}

/* sidebar search boxes */

#styles-filter {
 -moz-appearance: none !important;
 background: RGBa(255,255,255,0.7) !important;
 -moz-border-radius: 4px !important;
}

#search #searchbox,
#bookmarksPanel > hbox > textbox,
#history-panel > hbox > textbox,
#searchPanel #searchfield {
 -moz-appearance: none !important;
 background: RGBa(255,255,255,0.7) !important;
 -moz-border-radius: 4px !important;
 padding-bottom: 2px !important;
 margin-top: 1px !important;
}

/* Skin the sidebar splitter */

#sidebar-splitter {
  -moz-appearance: none !important;
  background: none !important;
  border-right: 1px solid rgba(0,0,0,0.5) !important;
  border-top: 1px solid transparent !important;
  margin-top: 29px !important;                     /* adjust if needed: [tab-bar height] -1px */
  padding: 0px 0px 0px 0px !important;
  max-width: 4px !important;
/* this next line can be commented out for a slightly darker appearance */
  -moz-border-image: url("chrome://browser/skin/bottom-box.png") 2 2 2 2 / 2px 1px 0 0 stretch !important;
}

#aios-toggle-toolbar *,
#aios-toggle-toolbar *:hover {
  -moz-appearance: none !important;
  color: transparent !important;
  margin-top: -1px !important;
  background-color: rgba(217,217,217,0.8) !important;
  border-top: 1px solid rgba(219,219,219,0.9) !important;
  border-right: 1px solid rgba(0,0,0,0.2) !important;
  -moz-border-image: url("chrome://browser/skin/bottom-box.png") 2 2 2 2 / 2px 2px 0 0 stretch !important;
}

/* only the sidebar header gets glassed */

#aios-sidebarheader-top,
#aios-sidebarheader-bottom,
#aios-toolbox-sidebartop2,
#aios-sidebardivider-1,
#aios-sidebardivider-2 {
  -moz-appearance: -moz-win-glass !important;
  background: black !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: black !important;            /* WITHOUT glass enabled, this just appears...black */

/* Data URI for StrataBuddy's [optional] 3.7-style toolbar background image */
/* (this is exactly the same as "chrome://stratabuddy/skin/css/options/tabs/personaltoolbar-bg.png") */ 
/* credit for image: Spewboy and/or BoneyardBrew */

  -moz-border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAYCAYAAADH2bwQAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiZIAANiCWAmJxKP8lED8D4l8gDrusrKzTw4cPZ/z58+ckCIPYIDGQHCOQUHj8+HGVjIyMIJD9CGqC3JMnT94DFbWxADkSQMmPQPofEP+AKngLFPsMkmMCEqxQu/4wIMAfqBgrEwMBMEIUsEDph0DMDcRfoXw4ezSgqKUAIMAAO6cn9/SKuswAAAAASUVORK5CYII=") 0 3 0 3 / 2px 3px 2px 3px !important;

  height: 30px !important;  /* must be the EXACT height of your tab-bar */
  border: none !important;
  padding-right: 1px !important;
  margin: 0px -5px 0px -1px !important;    /* I finally got this to line up */
}

#mediaSplitter,
#themeSplitter {
  -moz-appearance: none !important;
  background: none !important;
  border: none !important;
}

/* button drop arrow = hidden */
#aios-toolbar toolbarbutton dropmarker { display: none !important;}

/* Sidebar title label */
#sidebars-titlebutton > label {
  -moz-appearance: none !important;
  color: black !important;
  opacity: 0.99 !important;
  background: none !important;
  text-shadow: white 0 0 12px, white 0 0 12px, white 0 0 12px !important;
}

/* buttons in Sidebar  */
#viewButton,
#clearListButton,
#aios .toolbarbutton-1,
#styles-sort,
#mainDeck button,
#mainDeck .caption-text,
#styles button,
#extensionsManager toolbarbutton,
#extensionsView .addonInstallButton,
#styles .button-text {
  color: #024 /*#020*/ !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: black !important;
  text-shadow: white 0 0 6px, white 0 0 6px !important;
  margin: 2px !important;                /* give the search bar some space */
}

/* NEW! 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: none !important;
}

#downloadManager #search { margin: -3px !important; padding: 2px !important;} 
#downloadManager #searchbox { margin: 3px !important;}
#downloadManager #searchbox .textbox-input-box {
  margin: 1px !important;
  opacity: 0.99 !important;
  color: black !important;
}