/* Navigation Isolation - Prevent style leakage both ways */
.app-bar, .app-bar *, .app-bar *::before, .app-bar *::after {
    box-sizing: border-box;
}

/* Re-establish app-bar positioning */
.app-bar {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    isolation: isolate !important;
}

.app-bar * {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
    background: transparent;
}

/* Re-establish app-bar positioning with exact dimensions */
.app-bar {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    isolation: isolate !important;
    height: 36px !important; /* EXACT height */
    max-height: 36px !important;
    min-height: 36px !important;
    overflow: visible !important; /* Allow dropdown to show */
}

.app-bar {
    --ButtonAlternateFace: rgb(180, 180, 180);
    --HotTrackingColor: rgb(0, 0, 255);
    --checker: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGklEQVR4AWL6DwRXLpz4z3T14kkGbX1zBgAAAAD//xwRztIAAAAGSURBVAMAd9gKbH37UjoAAAAASUVORK5CYII=");
    --button-active-border-image: url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256px%22%20height%3D%22256px%22%20viewBox%3D%220%200%20256%20256%22%3E%0A%09%09%09%0A%09%09%3Cpath%20d%3D%22M0%200h256v256h-256v-256z%22%20fill%3D%22rgb(64%2C%2064%2C%2064)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M32%2032h192v192h-192v-192z%22%20fill%3D%22rgb(128%2C%20128%2C%20128)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M64%2064h128v128h-128v-128z%22%20fill%3D%22rgb(212%2C%20208%2C%20200)%22%2F%3E%0A%09%0A%09%09%3C%2Fsvg%3E") 64 / 2px;
    --button-normal-border-image: url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256px%22%20height%3D%22256px%22%20viewBox%3D%220%200%20256%20256%22%3E%0A%09%09%09%0A%09%09%3Cpath%20d%3D%22M0%200h224v32h-192v192h-32v-224z%22%20fill%3D%22rgb(255%2C%20255%2C%20255)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M224%200h32v256h-256v-32h224v-224z%22%20fill%3D%22rgb(64%2C%2064%2C%2064)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M32%2032h160v32h-128v128h-32v-160z%22%20fill%3D%22rgb(212%2C%20208%2C%20200)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M192%2032h32v192h-192v-32h160v-160z%22%20fill%3D%22rgb(128%2C%20128%2C%20128)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M64%2064h128v128h-128v-128z%22%20fill%3D%22rgb(212%2C%20208%2C%20200)%22%2F%3E%0A%09%0A%09%09%3C%2Fsvg%3E") 64 / 2px;
    --inset-deep-border-image: url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256px%22%20height%3D%22256px%22%20viewBox%3D%220%200%20256%20256%22%3E%0A%09%09%09%0A%09%09%3Cpath%20d%3D%22M0%200h224v32h-192v192h-32v-224z%22%20fill%3D%22rgb(64%2C%2064%2C%2064)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M224%200h32v256h-256v-32h224v-224z%22%20fill%3D%22rgb(255%2C%20255%2C%20255)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M32%2032h160v32h-128v128h-32v-160z%22%20fill%3D%22rgb(128%2C%20128%2C%20128)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M192%2032h32v192h-192v-32h160v-160z%22%20fill%3D%22rgb(212%2C%20208%2C%20200)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M64%2064h128v128h-128v-128z%22%20fill%3D%22rgb(212%2C%20208%2C%20200)%22%2F%3E%0A%09%0A%09%09%3C%2Fsvg%3E") 64 / 2px;
    --ActiveTitle: rgb(10, 36, 106);
    --Background: rgb(58, 110, 165);
    --Hilight: rgb(10, 36, 106);
    --HilightText: rgb(255, 255, 255);
    --TitleText: rgb(255, 255, 255);
    --Window: rgb(255, 255, 255);
    --WindowText: rgb(0, 0, 0);
    --Scrollbar: rgb(212, 208, 200);
    --InactiveTitle: rgb(128, 128, 128);
    --Menu: rgb(212, 208, 200);
    --WindowFrame: rgb(0, 0, 0);
    --MenuText: rgb(0, 0, 0);
    --ActiveBorder: rgb(212, 208, 200);
    --InactiveBorder: rgb(212, 208, 200);
    --AppWorkspace: rgb(128, 128, 128);
    --ButtonFace: rgb(212, 208, 200);
    --ButtonShadow: rgb(128, 128, 128);
    --GrayText: rgb(128, 128, 128);
    --ButtonText: rgb(0, 0, 0);
    --InactiveTitleText: rgb(212, 208, 200);
    --ButtonHilight: rgb(255, 255, 255);
    --ButtonDkShadow: rgb(64, 64, 64);
    --ButtonLight: rgb(212, 208, 200);
    --InfoText: rgb(0, 0, 0);
    --InfoWindow: rgb(255, 255, 225);
    --GradientActiveTitle: rgb(166, 202, 240);
    --GradientInactiveTitle: rgb(192, 192, 192);
    --pointer: url('https://bigdogal.neocities.org/cursors/pointer.png'), pointer;
    --default-cursor: url('https://bigdogal.neocities.org/cursors/default.png'), default;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'MS Sans Serif', Tahoma, Geneva, sans-serif;
    font-size: 11px;
    margin: 0;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    cursor: var(--default-cursor);
}

/* App Bar */
.app-bar {
    background: #c0c0c0;
    border-bottom: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #808080;
    padding: 2px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 36px;
    overflow-y: hidden;
}

.app-bar .toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding-right: 10px;
    width: 100%;
}

.app-bar .nav-section {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Start Button */
.app-bar .start-button {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #808080;
    padding: 12px 12px;
    font-family: Arial;
    font-size: 16px;
    font-weight: bold;
    cursor: var(--pointer);
    height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 5px;
    position: relative;
    outline: none;
}

.start-button:active,
.start-button.active {
    border-image: var(--inset-deep-border-image);
    border-color: var(--ButtonShadow);
    border-style: solid;
    border-width: 2px 2px;
    background: var(--checker) repeat;
    image-rendering: pixelated;
}

.app-bar .start-button:focus::before {
    content: "";
    display: block;
    position: absolute;
    left: 4px;
    top: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px dotted var(--ButtonDkShadow);
    pointer-events: none;
}

.app-bar .start-button img {
    width: 16px;
    height: 16px;
}

/* Dropdown Container */
.app-bar .dropdown {
    position: relative;
    display: inline-block;
}

/* Start Menu */
.app-bar .start-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 3px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    display: none;
    z-index: 1001;
    padding: 2px;
}

.app-bar .start-menu.show {
    display: block;
}

/* Menu Items */
.app-bar .menu-item {
    padding: 8px 20px 8px 8px;
    cursor: var(--pointer);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000000;
    position: relative;
    margin: 1px 2px;
    min-height: 32px;
    font-size: 14px;
}

.app-bar .menu-item:hover {
    background: #000080;
    color: #ffffff;
}

.app-bar .menu-item.disabled {
    color: #808080;
    cursor: var(--default-cursor);
    text-shadow: 1px 1px 0 #ffffff;
}

.app-bar .menu-item.disabled:hover {
    background: transparent;
    color: #808080;
}

.app-bar .menu-item.has-submenu::after {
    content: '▶';
    position: absolute;
    right: 8px;
    font-size: 10px;
    color: #000000;
}

.app-bar .menu-item.has-submenu:hover::after {
    color: #ffffff;
}

.app-bar .menu-item .icon {
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.app-bar .menu-item .icon img {
    width: 32px;
    height: 32px;
}

/* Separator */
.app-bar .separator {
    height: 1px;
    background: #808080;
    margin: 2px 2px;
    box-shadow: 0 1px 0 #ffffff;
}

/* Submenu */
.app-bar .submenu {
    position: absolute;
    left: 100%;
    top: -4px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    display: none;
    z-index: 1002;
    padding: 2px;
}

.app-bar .menu-item:hover .submenu {
    display: block;
}

.app-bar .submenu .menu-item {
    font-size: 12px;
    min-height: 24px;
    padding: 4px 20px 4px 4px;
}

.app-bar .submenu .menu-item .icon {
    width: 20px;
}

.app-bar .submenu .menu-item .icon img {
    width: 16px;
    height: 16px;
}

/* Search Container */
.app-bar .search-container {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-image: var(--inset-deep-border-image);
    background-color: var(--ButtonFace);
    height: 28px;
    line-height: 28px;
}

.app-bar #audio-toggle, #mail-toggle {
    flex-shrink: 0;
}

.app-bar .taskbar-time {
    white-space: nowrap;
    font-family: "MS Sans Serif", "Segoe UI", sans-serif;
    font-size: 12px;
    text-align: center;
    cursor: var(--default-cursor);
    -webkit-user-select: none;
    user-select: none;
    line-height: 22px;
    color: var(--ButtonText);
}

.app-bar .taskbar-time:active {
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: inset 1px 1px #dfdfdf;
}

/* Page Indicator */
.app-bar .page-indicator {
    max-width: 200px;
    width: 192px;
    min-width: 120px;
    text-align: left;
    cursor: var(--default-cursor);
    -webkit-user-select: none;
    user-select: none;
    line-height: 14px;
    padding: 2px 8px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    outline: none;
    font-weight: bold;
    color: var(--ButtonText);
    position: relative;
    height: 26px;
    font-size: 12px;
    border-image: var(--inset-deep-border-image);
    border-color: var(--ButtonShadow);
    border-style: solid;
    border-width: 2px 2px;
    background: var(--checker) repeat;
    image-rendering: pixelated;
    margin-left: 5px;
}

.app-bar .page-indicator::before {
    content: "";
    display: block;
    position: absolute;
    left: 2px;
    top: 1px;
    right: 2px;
    bottom: 2px;
    border: 1px dotted var(--ButtonDkShadow);
    pointer-events: none;
}

.app-bar .page-indicator img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    flex-shrink: 0;
}

.app-bar .page-indicator .page-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mail Tooltip */
.app-bar .mail-tooltip {
    position: absolute;
    top: 100%;
    right: 80px;
    margin-top: 2px;
    width: 220px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    font-family: 'MS Sans Serif', Tahoma, Geneva, sans-serif;
    font-size: 11px;
}

.app-bar .mail-tooltip::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 190px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #1084d0;
}

.app-bar .mail-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 190px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #1084d0;
}

.app-bar .tooltip-header {
    background: linear-gradient(to right, #000080, #1084d0);
    color: #ffffff;
    padding: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    height: 18px;
    font-size: 11px;
}

.app-bar .tooltip-close {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    width: 16px;
    height: 16px;
    font-size: 13px;
    line-height: 1px;
    cursor: var(--pointer);
    padding: 0;
    padding-bottom: 2px;
    font-weight: bold;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.app-bar .tooltip-close:hover {
    background: #c0c0c0;
}

.app-bar .tooltip-close:active {
    border-color: #000000 #ffffff #ffffff #000000;
    box-shadow: inset 1px 1px #808080;
}

.app-bar .tooltip-content {
    padding: 15px;
    padding-right: 20px;
    background: #ffffe1;
    margin: 2px;
    color: #000000;
    border: 1px solid #000000;
}

.app-bar .tooltip-content p {
    margin: 4px 0;
    line-height: 1.4;
}

/* Main Content */
.app-bar .main-content {
    margin-top: 30px;
    padding: 20px;
}


@media only screen and (max-width: 420px) {
  .app-bar .page-indicator {
      max-width: 160px;
      width: 140px;
  }
  
  .app-bar .search-container {
      padding: 3px 5px;
      height: 24px;
      line-height: 24px;
  }
  
  /* Start Button */
  .app-bar .start-button {
      padding: 10px 10px;
      font-size: 14px;
      height: 20px;
      margin-left: 4px;
  }
  
  .app-bar .toolbar {
    padding-right: 4px;
  }
  
  .app-bar .submenu {
    min-width: 150px;
  }
}













