#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--taskbar-h);
  z-index: var(--z-taskbar);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url('../../assets/gui/taskbar/taskbar-bg.webp') repeat-x left / auto 100%;
}

#start-btn {
  height: var(--taskbar-h);
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter .1s;
}
#start-btn:hover         { filter: brightness(1.15); }
#start-btn.active,
#start-btn:active        { filter: brightness(.9); }
#start-btn img           { height: var(--taskbar-h); display: block; border: none; }

#taskbar-programs {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  height: 100%;
  overflow: hidden;
  min-width: 0;
}

.tb-item {
  height: 36px;
  padding: 0 12px;
  min-width: 160px;
  max-width: 240px;
  background: linear-gradient(180deg, #3ba0e7 0, #3295eb 50%, #3389d4);
  border: 1px solid #0e63ad;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-family: Tahoma, Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 1;
  text-shadow: 1px 1px 1px rgba(0,0,0,.3);
  white-space: nowrap;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.2);
}
.tb-item img    { height: 20px; width: 20px; flex-shrink: 0; }
.tb-item span   { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.tb-item:hover:not(.active) {
  background: linear-gradient(180deg, #56b6fc 0, #52aeff 50%, #0e81ec);
  border-color: #2176c7;
}
.tb-item.active {
  background: linear-gradient(0deg, #1a5a99 0, #2176c7);
  border-color: #174a7c;
  box-shadow: inset 1px 1px 1px rgba(0,0,0,.4);
}

#system-tray {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 16px;
}
.system-tray-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.tray-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tray-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
}
.tray-icon {
  height: 22px;
  width: 22px;
  cursor: pointer;
  object-fit: contain;
  transition: filter .1s;
}
.tray-icon:hover { filter: brightness(1.3); }

#clock {
  color: #fff;
  font-size: 14px;
  text-shadow: 1px 1px 1px rgba(0,0,0,.6);
  white-space: nowrap;
  text-align: center;
  line-height: 1.3;
}
