/* Windows 98 Taskbar Styles */

.win98-taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28px;
  background-color: var(--win98-window-bg);
  border-top: 2px solid var(--win98-button-highlight);
  display: flex;
  z-index: 9999;
}

/* Start button */
.win98-start-button {
  width: 56px;
  height: 22px;
  margin: 2px;
  background-color: var(--win98-button-face);
  border: 2px solid;
  border-color: var(--win98-button-highlight) var(--win98-button-shadow) var(--win98-button-shadow) var(--win98-button-highlight);
  display: flex;
  align-items: center;
  padding: 0 2px;
  cursor: pointer;
}

.win98-start-button.active {
  border-color: var(--win98-button-shadow) var(--win98-button-highlight) var(--win98-button-highlight) var(--win98-button-shadow);
}

.win98-start-button img {
  width: 16px;
  height: 16px;
  margin-right: 2px;
}

.win98-start-button span {
  font-weight: bold;
  font-size: 11px;
}

/* Taskbar items container */
.win98-taskbar-items {
  flex-grow: 1;
  display: flex;
  padding: 2px;
  overflow-x: auto;
  overflow-y: hidden;
}

/* Taskbar item (window button) */
.win98-taskbar-item {
  height: 22px;
  min-width: 120px;
  max-width: 200px;
  margin-right: 2px;
  background-color: var(--win98-button-face);
  border: 2px solid;
  border-color: var(--win98-button-highlight) var(--win98-button-shadow) var(--win98-button-shadow) var(--win98-button-highlight);
  display: flex;
  align-items: center;
  padding: 0 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.win98-taskbar-item.active {
  border-color: var(--win98-button-shadow) var(--win98-button-highlight) var(--win98-button-highlight) var(--win98-button-shadow);
}

.win98-taskbar-item-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.win98-taskbar-item-text {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* System tray */
.win98-system-tray {
  height: 22px;
  margin: 2px 2px 2px 0;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--win98-button-shadow);
  padding-left: 4px;
  position: relative;
}

/* System tray icons */
.win98-system-tray-icons {
  display: flex;
  align-items: center;
  margin-right: 4px;
}

.win98-system-tray-icon {
  width: 16px;
  height: 16px;
  margin: 0 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.win98-system-tray-icon:hover {
  border: 1px solid var(--win98-button-shadow);
  background-color: var(--win98-button-face);
}

.win98-system-tray-icon:active {
  border-color: var(--win98-button-shadow) var(--win98-button-highlight) var(--win98-button-highlight) var(--win98-button-shadow);
}

/* System tray clock */
.win98-system-tray-clock {
  min-width: 60px;
  text-align: center;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  border: 1px solid transparent;
}

.win98-system-tray-clock:hover {
  border: 1px solid var(--win98-button-shadow);
  background-color: var(--win98-button-face);
}

.win98-system-tray-clock:active {
  border-color: var(--win98-button-shadow) var(--win98-button-highlight) var(--win98-button-highlight) var(--win98-button-shadow);
}

/* System tray dialogs */
.win98-system-tray-dialog {
  position: absolute;
  bottom: 30px;
  right: 0;
  width: 220px;
  background-color: var(--win98-window-bg);
  border: 2px solid;
  border-color: var(--win98-button-highlight) var(--win98-button-shadow) var(--win98-button-shadow) var(--win98-button-highlight);
  box-shadow: 2px 2px 0 0 var(--win98-button-dark-shadow);
  z-index: 10001;
}

.win98-dialog-titlebar {
  height: 18px;
  background-color: var(--win98-title-active);
  color: var(--win98-title-text-active);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 11px;
  font-weight: bold;
}

.win98-dialog-close {
  width: 16px;
  height: 14px;
  background-color: var(--win98-button-face);
  border: 1px solid;
  border-color: var(--win98-button-highlight) var(--win98-button-shadow) var(--win98-button-shadow) var(--win98-button-highlight);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win98-dialog-close:active {
  border-color: var(--win98-button-shadow) var(--win98-button-highlight) var(--win98-button-highlight) var(--win98-button-shadow);
}

.win98-dialog-content {
  padding: 8px;
}

.win98-dialog-section {
  margin-bottom: 8px;
  font-size: 11px;
}

.win98-dialog-buttons {
  padding: 4px 8px 8px;
  text-align: right;
}

/* Volume control styles */
.win98-volume-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.win98-volume-slider-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.win98-volume-slider {
  width: 100%;
  height: 20px;
  background-color: var(--win98-button-face);
  border: 2px solid;
  border-color: var(--win98-button-shadow) var(--win98-button-highlight) var(--win98-button-highlight) var(--win98-button-shadow);
  outline: none;
  cursor: pointer;
}

.win98-volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background-color: var(--win98-button-face);
  border: 2px solid;
  border-color: var(--win98-button-highlight) var(--win98-button-shadow) var(--win98-button-shadow) var(--win98-button-highlight);
  cursor: pointer;
}

.win98-volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background-color: var(--win98-button-face);
  border: 2px solid;
  border-color: var(--win98-button-highlight) var(--win98-button-shadow) var(--win98-button-shadow) var(--win98-button-highlight);
  cursor: pointer;
  border-radius: 0;
}

.win98-volume-level {
  text-align: center;
  font-size: 11px;
  font-weight: bold;
}

.win98-volume-mute {
  align-self: center;
  min-width: 60px;
}

/* System notifications */
.win98-system-notifications {
  position: absolute;
  bottom: 30px;
  right: 0;
  width: 250px;
  z-index: 10002;
}

.win98-system-notification {
  background-color: var(--win98-window-bg);
  border: 2px solid;
  border-color: var(--win98-button-highlight) var(--win98-button-shadow) var(--win98-button-shadow) var(--win98-button-highlight);
  margin-bottom: 4px;
  padding: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.win98-notification-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win98-notification-content {
  flex-grow: 1;
  font-size: 11px;
}

.win98-notification-title {
  font-weight: bold;
  margin-bottom: 2px;
}

.win98-notification-message {
  line-height: 1.3;
}

.win98-notification-close {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 14px;
  background-color: var(--win98-button-face);
  border: 1px solid;
  border-color: var(--win98-button-highlight) var(--win98-button-shadow) var(--win98-button-shadow) var(--win98-button-highlight);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win98-notification-close:active {
  border-color: var(--win98-button-shadow) var(--win98-button-highlight) var(--win98-button-highlight) var(--win98-button-shadow);
}

/* Start menu */
.win98-start-menu {
  position: absolute;
  bottom: 28px;
  left: 2px;
  width: 200px;
  background-color: var(--win98-window-bg);
  border: 2px solid;
  border-color: var(--win98-button-highlight) var(--win98-button-shadow) var(--win98-button-shadow) var(--win98-button-highlight);
  box-shadow: 2px 2px 0 0 var(--win98-button-dark-shadow);
  z-index: 10000;
  display: flex;
}

.win98-start-menu-sidebar {
  width: 25px;
  background-color: var(--win98-title-active);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 10px;
}

.win98-start-menu-sidebar-text {
  color: var(--win98-title-text-active);
  font-weight: bold;
  font-size: 15px;
  transform: rotate(-90deg);
  white-space: nowrap;
  transform-origin: center;
  margin-bottom: 40px;
}

.win98-start-menu-items {
  flex-grow: 1;
  padding: 2px 0;
}

.win98-start-menu-item {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  cursor: pointer;
}

.win98-start-menu-item:hover {
  background-color: var(--win98-title-active);
  color: var(--win98-title-text-active);
}

.win98-start-menu-item-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.win98-start-menu-item-text {
  font-size: 11px;
}

.win98-start-menu-divider {
  height: 1px;
  background-color: var(--win98-button-shadow);
  margin: 2px 0;
}

/* Responsive design for taskbar */
@media (max-width: 640px) {
  .win98-taskbar {
    height: 24px;
  }
  
  .win98-start-button {
    width: 40px;
    height: 20px;
  }
  
  .win98-start-button span {
    display: none;
  }
  
  .win98-taskbar-item {
    min-width: 80px;
    height: 20px;
  }
  
  .win98-start-menu {
    bottom: 24px;
    width: 180px;
  }
}