/* css/vm-shell.css - Windows 98 theme */

/* Desktop */
.wm98-desktop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: #008080;
  font-family: "MS Sans Serif", Tahoma, Verdana, sans-serif;
  font-size: 11px;
}

.wm98-wallpaper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #008080;
}

/* Desktop Icons */
.wm98-icons {
  position: relative;
  z-index: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 90px;
}

.wm98-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 3px;
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.wm98-icon:focus,
.wm98-icon:hover {
  outline: none;
  background: rgba(0, 0, 128, 0.4);
  border: 1px dotted #fff;
}

.wm98-icon:active {
  background: rgba(0, 0, 128, 0.6);
}

.wm98-icon__glyph {
  font-size: 32px;
  line-height: 1;
}

.wm98-icon__label {
  font-size: 11px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
  word-wrap: break-word;
  max-width: 80px;
  line-height: 1.2;
}

/* Taskbar */
.wm98-taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: #c0c0c0;
  z-index: 1000;
  border-top: 1px solid #ffffff;
}

.wm98-start {
  height: 22px;
  padding: 0 8px 0 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #c0c0c0;
  color: #000;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 11px;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
}

.wm98-start:active {
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  padding: 1px 7px 0 5px;
}

.wm98-start__logo {
  font-size: 14px;
  line-height: 1;
}

.wm98-taskbar__divider {
  width: 2px;
  height: 20px;
  background: #808080;
  box-shadow: 1px 0 0 #fff;
  margin: 0 2px;
}

.wm98-task {
  height: 22px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #c0c0c0;
  color: #000;
  border: none;
  cursor: pointer;
  font-size: 11px;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  min-width: 150px;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
}

.wm98-task:active,
.wm98-task.active {
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  padding: 1px 7px 0 9px;
}

.wm98-task__glyph {
  font-size: 14px;
  line-height: 1;
}

.wm98-tray {
  margin-left: auto;
  height: 24px;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #c0c0c0;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
}

.wm98-clock {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  text-align: center;
  min-width: 55px;
}

/* Start Menu */
.wm98-start-menu {
  position: absolute;
  bottom: 28px;
  left: 0;
  width: 200px;
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  z-index: 1000;
  display: flex;
}

.wm98-start-menu--hidden {
  display: none;
}

.wm98-start-menu__sidebar {
  background: linear-gradient(to bottom, #000080 0%, #1084d0 100%);
  color: #fff;
  padding: 8px 4px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  width: 24px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
}

.wm98-start-menu__logo {
  transform: rotate(180deg);
}

.wm98-start-menu__items {
  flex: 1;
  padding: 2px 0;
}

.wm98-menu-item {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 11px;
  gap: 6px;
  position: relative;
  white-space: nowrap;
}

.wm98-menu-item:hover {
  background: #000080;
  color: #fff;
}

.wm98-menu-icon {
  font-size: 14px;
  line-height: 1;
  width: 16px;
  text-align: center;
}

.wm98-menu-text {
  flex: 1;
}

.wm98-menu-arrow {
  font-size: 6px;
  margin-left: auto;
}

.wm98-menu-separator {
  height: 1px;
  background: #808080;
  margin: 2px 4px;
  box-shadow: 0 1px 0 #fff;
}

/* Start Submenu */
.wm98-start-submenu {
  position: absolute;
  left: 200px;
  bottom: 0;
  width: 180px;
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  padding: 2px 0;
}

.wm98-start-submenu--hidden {
  display: none;
}

/* Window */
.wm98-window {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1100px;
  max-width: calc(100vw - 40px);
  height: 700px;
  max-height: calc(100vh - 80px);
  background: #c0c0c0;
  z-index: 10;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  box-shadow: 1px 1px 0 1px rgba(0, 0, 0, 0.2);
}

.wm-window--hidden {
  display: none;
}

.wm-window--max {
  left: 0;
  top: 0;
  transform: none;
  width: 100vw;
  height: calc(100vh - 28px);
  max-width: none;
  max-height: none;
}

/* Active window (on top) */
.wm98-window.wm-window--active {
  z-index: 100;
}

/* Titlebar */
.wm98-titlebar {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 2px 4px;
  background: linear-gradient(to right, #000080, #1084d0);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  cursor: move;
  user-select: none;
}

.wm98-titlebar__left {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.wm98-appicon {
  font-size: 14px;
  line-height: 1;
}

.wm98-titlebar__text {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wm98-controls {
  display: flex;
  gap: 2px;
}

.wm98-btn {
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  color: #000;
  border: none;
  cursor: pointer;
  line-height: 1;
  font-size: 9px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
}

.wm98-btn:active {
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
}

.wm98-btn--close {
  font-weight: bold;
}

/* Browser Chrome */
.browser-chrome {
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
}

/* Menu Bar */
.browser-menubar {
  height: 18px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  background: #c0c0c0;
  font-size: 11px;
  border-bottom: 1px solid #fff;
}

.browser-menu-item {
  padding: 2px 8px;
  cursor: pointer;
}

.browser-menu-item:hover {
  background: #000080;
  color: #fff;
}

/* Toolbar */
.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  background: #c0c0c0;
  border-bottom: 1px solid #fff;
}

.browser-btn {
  width: 24px;
  height: 22px;
  background: #c0c0c0;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
}

.browser-btn:hover {
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
}

.browser-btn:active {
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
}

.browser-btn--go {
  width: 40px;
  font-size: 11px;
  font-weight: bold;
}

.browser-divider {
  width: 1px;
  height: 18px;
  background: #808080;
  margin: 0 2px;
}

/* Address Bar */
.browser-addressbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px;
  background: #c0c0c0;
  border-bottom: 1px solid #fff;
}

.browser-addressbar__label {
  font-size: 11px;
  font-weight: bold;
  min-width: 50px;
}

.browser-addressbar__input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 2px 4px;
  height: 20px;
}

.browser-addressbar__icon {
  font-size: 12px;
  line-height: 1;
}

.browser-addressbar__input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 11px;
  background: transparent;
  font-family: "MS Sans Serif", Tahoma, Verdana, sans-serif;
}

/* Links Bar */
.browser-linksbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  font-size: 11px;
}

.browser-linksbar__label {
  font-weight: bold;
  padding-right: 8px;
  border-right: 1px solid #808080;
}

.browser-link {
  color: #000080;
  text-decoration: underline;
  cursor: pointer;
}

.browser-link:hover {
  color: #ff0000;
}

/* Status Bar */
.browser-statusbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  background: #c0c0c0;
  border-top: 1px solid #fff;
  font-size: 11px;
}

.browser-statusbar__left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.browser-statusbar__icon {
  font-size: 12px;
}

.browser-statusbar__right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.browser-statusbar__zone {
  padding: 0 8px;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  height: 16px;
  display: flex;
  align-items: center;
}

/* Window content - adjusted for browser chrome */
.wm-window__content {
  height: calc(100% - 18px - 100px - 20px);
  overflow: auto;
  background: var(--color-background);
  border: 1px solid #808080;
  margin: 0 2px 2px 2px;
}

/* Browser iframe content */
.browser-content {
  padding: 0;
  overflow: hidden;
}

.browser-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}

/* Hidden taskbar button */
.wm-task--hidden {
  display: none;
}

/* Scrollbar styling */
.wm-window__content::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

.wm-window__content::-webkit-scrollbar-track {
  background: #c0c0c0;
}

.wm-window__content::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border: 1px solid #000;
}

.wm-window__content::-webkit-scrollbar-button {
  background: #c0c0c0;
  border: 1px solid #000;
  height: 16px;
  width: 16px;
}