/* ── Base ── */
* { box-sizing: border-box; }

window {
  background-color: #ECE9D8;  /* XP Luna beige */
  font: 11px "Tahoma", "MS Sans Serif", sans-serif;
  color: #000;
}

/* ── Menubar ── */
menubar {
  background-color: #ECE9D8;
  border-bottom: 1px solid #B5B3A7;
  padding: 1px 2px;
}
menu:hover {
  background-color: #2868C0;
  color: #FFFFFF;
}

/* ── IE6 Standard Toolbar ── */
/* Vivid XP Luna blue gradient */
.ie6-toolbar {
  background: linear-gradient(to bottom, #78B4EC 0%, #2E7FD8 45%, #1660C0 100%);
  border-bottom: 2px solid #0E4DA8;
  padding: 2px 4px;
  min-height: 32px;
}

/* Nav buttons: IE6 style */
.nav-btn {
  -moz-appearance: none;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #FFFFFF;
  padding: 1px 4px;
  margin: 0 1px;
  min-width: 28px;
  min-height: 26px;
  cursor: pointer;
}
.nav-btn:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.70);
}
.nav-btn:active {
  background: rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.4);
}
.nav-btn[disabled="true"] {
  opacity: 0.38;
  cursor: default;
}

/* Icon images per nav button */
#back-button {
  list-style-image: url("chrome://epoch/skin/toolbar-back.png");
}
#forward-button {
  list-style-image: url("chrome://epoch/skin/toolbar-forward.png");
}
#stop-button {
  list-style-image: url("chrome://epoch/skin/toolbar-stop.png");
}
#reload-button {
  list-style-image: url("chrome://epoch/skin/toolbar-reload.png");
}
#home-button {
  list-style-image: url("chrome://epoch/skin/toolbar-home.png");
}

/* "Address:" label — XP-style chip panel */
.urlbar-label {
  color: #FFFFFF;
  font-size: 11px;
  font-style: normal;
  font-weight: bold;
  margin: 0 3px 0 5px;
  padding: 1px 5px 1px 4px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 2px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

/* IE6 URL bar — classic white sunken box */
.ie6-urlbar {
  flex: 1;
  height: 22px;
  border: 2px inset #7F9DB9;
  background: #FFFFFF;
  color: #000000;
  font-size: 12px;
  font-family: "Tahoma", sans-serif;
  padding: 1px 3px;
  margin: 0 2px;
}
.ie6-urlbar:focus {
  border-color: #2868C0;
}

/* "Go" button */
.go-btn {
  -moz-appearance: button;
  background: linear-gradient(to bottom, #F0EDE2 0%, #DEDAD0 100%);
  border: 1px solid #9B9989;
  border-radius: 2px;
  color: #000;
  font-size: 11px;
  padding: 2px 8px;
  height: 22px;
  cursor: pointer;
}
.go-btn:hover  { background: linear-gradient(to bottom, #FAFAF4 0%, #ECEADC 100%); border-color: #2868C0; }
.go-btn:active { background: linear-gradient(to bottom, #D8D4C4 0%, #C8C4B4 100%); }

/* Throbber */
#throbber {
  width: 22px;
  height: 22px;
  margin: 0 4px;
}

/* ── Links Bar (IE6-style) ── */
.ie6-links-bar {
  background-color: #ECE9D8;
  border-bottom: 1px solid #B5B3A7;
  padding: 1px 4px;
  min-height: 22px;
}
.links-label {
  font-size: 11px;
  font-style: italic;
  color: #333;
  margin-right: 4px;
}
.links-bar-btn {
  -moz-appearance: none;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #00008B;
  font-size: 11px;
  padding: 1px 6px;
  margin: 0 1px;
  cursor: pointer;
  text-decoration: underline;
}
.links-bar-btn:hover {
  background: #EFF3FB;
  border-color: #2868C0;
  color: #0000EE;
}

/* ── Tab Strip (IE7-style addition) ── */
.ie-tab-strip {
  background-color: #D4D0C4;
  border-bottom: 1px solid #9B9989;
  padding: 2px 4px 0;
}

tab {
  -moz-appearance: none;
  background: linear-gradient(to bottom, #F0EDDE 0%, #DDD9CC 100%);
  border: 1px solid #9B9989;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  padding: 2px 10px;
  margin: 0 2px 0 0;
  max-width: 180px;
  font-size: 11px;
  cursor: pointer;
  color: #333;
}
tab[selected="true"] {
  background: linear-gradient(to bottom, #FFFFFF 0%, #F7F5EC 100%);
  border-color: #9B9989;
  color: #000;
  font-weight: bold;
  margin-bottom: -1px;
  padding-bottom: 3px;
  z-index: 1;
}
tab:hover:not([selected="true"]) {
  background: linear-gradient(to bottom, #F5F2E3 0%, #E8E4D5 100%);
}
tab[busy="true"] {
  color: #2868C0;
}

.new-tab-btn {
  -moz-appearance: none;
  border: 1px solid transparent;
  border-radius: 3px 3px 0 0;
  background: transparent;
  padding: 1px 8px;
  font-size: 14px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 0;
}
.new-tab-btn:hover {
  background: #E8E4D4;
  border-color: #9B9989;
}

/* ── Tabpanel / content area ── */
tabpanel {
  padding: 0;
  background: #FFF;
}
browser {
  background: #FFF;
}

/* ── Find bar ── */
findbar {
  border-top: 1px solid #B5B3A7;
  background: #FFFFAA;
  padding: 2px 6px;
  font-size: 11px;
}

/* ── IE6 Status Bar ── */
.ie6-statusbar {
  background-color: #ECE9D8;
  border-top: 2px groove #B5B3A7;
  min-height: 22px;
  padding: 1px 4px;
}
#status-text {
  font-size: 11px;
  color: #000;
}
#progress-bar {
  min-width: 120px;
  max-width: 120px;
  height: 14px;
  margin: 0 4px;
}
.zone-panel {
  font-size: 11px;
  border-left: 1px solid #B5B3A7;
  padding-left: 6px;
  min-width: 80px;
  text-align: center;
}

/* Security icon */
#security-icon[level="high"]   { list-style-image: url("chrome://global/skin/icons/lock.png"); }
#security-icon[level="broken"] { list-style-image: url("chrome://global/skin/icons/lock-broken.png"); }
#security-icon[level="none"]   { list-style-image: none; }
