/* === [ TASKBAR TABS CONTAINER DAN TRAY ] === */

.win-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--taskbar-height);
  background-color: var(--win-gray);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 3px;
  z-index: 9999;
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-frame);
  border-bottom: 1px solid var(--win-frame);
  box-shadow: inset 1px 1px 0px var(--win-gray-light),
              inset -1px -1px 0px var(--win-gray-dark);
}

/* start button logo windows klasik */
.start-button {
  height: 26px;
  min-width: 68px;
  padding: 0 8px 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: bold;
  color: var(--win-black);
  cursor: pointer;
  flex-shrink: 0;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-frame);
  border-bottom: 1px solid var(--win-frame);
  box-shadow: inset 1px 1px 0px var(--win-gray-light),
              inset -1px -1px 0px var(--win-gray-dark);
}

.start-button img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  width: 16px;
  height: 16px;
}

.start-button.active,
.start-button:active {
  border-top: 1px solid var(--win-frame);
  border-left: 1px solid var(--win-frame);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
  box-shadow: inset 1px 1px 0px var(--win-gray-dark),
              inset -1px -1px 0px var(--win-gray-light);
  padding: 1px 7px 0 7px;
  background-color: var(--win-gray-light);
}

/* vertical 3d divider ridge pembatas */
.taskbar-divider {
  width: 2px;
  height: 22px;
  margin: 0 2px;
  border-left: 1px solid var(--win-gray-dark);
  border-right: 1px solid var(--win-white);
  flex-shrink: 0;
}

/* running windows tab container */
.taskbar-tabs-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  height: 100%;
}

.taskbar-tabs-container::-webkit-scrollbar {
  display: none;
}

/* individual taskbar tab button */
.taskbar-tab {
  height: 24px;
  min-width: 120px;
  max-width: 180px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--win-black);
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-frame);
  border-bottom: 1px solid var(--win-frame);
  box-shadow: inset 1px 1px 0px var(--win-gray-light),
              inset -1px -1px 0px var(--win-gray-dark);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.taskbar-tab img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.taskbar-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* active window sunken dither pattern retro os */
.taskbar-tab.active {
  background-color: var(--win-gray-light);
  background-image: linear-gradient(45deg, #ffffff 25%, transparent 25%),
                    linear-gradient(-45deg, #ffffff 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #ffffff 75%),
                    linear-gradient(-45deg, transparent 75%, #ffffff 75%);
  background-size: 4px 4px;
  background-position: 0 0, 0 2px, 2px -2px, -2px 0px;
  border-top: 1px solid var(--win-frame);
  border-left: 1px solid var(--win-frame);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
  box-shadow: inset 1px 1px 0px var(--win-gray-dark),
              inset -1px -1px 0px var(--win-gray-light);
  padding: 1px 5px 0 7px;
  font-weight: bold;
}

/* system tray container pojok kanan */
.system-tray {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 8px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-gray-dark);
  border-left: 1px solid var(--win-gray-dark);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
  flex-shrink: 0;
}

.tray-icon-btn {
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.tray-icon-btn img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.tray-clock {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--win-black);
  min-width: 42px;
  text-align: right;
  letter-spacing: 0.3px;
}
