/* HODL Desktop - Taskbar */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--taskbar-height);
  background: linear-gradient(180deg, #3168d5 0%, #2352ad 3%, #1941a5 6%, #1941a5 94%, #163b9e 97%, #122e8a 100%);
  display: flex;
  align-items: center;
  z-index: var(--z-taskbar);
  border-top: 1px solid #0c48c4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Start Button */
#start-button {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 100%;
  padding: 0 10px 0 3px;
  background: linear-gradient(180deg, #408f40 0%, #3c8f3c 30%, #378b37 50%, #367c36 100%);
  border: none;
  border-right: 2px solid rgba(0,0,0,0.2);
  border-radius: 0 8px 8px 0;
  color: #fff;
  font-family: var(--font-system);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -1px 0 rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

#start-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  pointer-events: none;
}

#start-button:hover {
  background: linear-gradient(180deg, #4da84d 0%, #45a145 30%, #3f9a3f 50%, #3e8f3e 100%);
}

#start-button:active,
#start-button.active {
  background: linear-gradient(180deg, #367c36 0%, #2e6e2e 30%, #276627 50%, #245e24 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

#start-button .start-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

/* Taskbar App Tabs */
#taskbar-apps {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 2px 4px;
  gap: 2px;
  overflow: hidden;
}

.taskbar-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  background: linear-gradient(180deg, #3c7fe1 0%, #2f6fd4 50%, #2862c0 100%);
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 2px;
  color: #fff;
  font-size: 11px;
  font-family: var(--font-system);
  cursor: pointer;
  max-width: 160px;
  min-width: 50px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  flex-shrink: 1;
}

.taskbar-tab:hover {
  background: linear-gradient(180deg, #4a8fe8 0%, #3c7fd8 50%, #3472cc 100%);
}

.taskbar-tab.active {
  background: linear-gradient(180deg, #e4ecf5 0%, #d4dfe8 50%, #c4d3e0 100%);
  color: #000;
  text-shadow: none;
  border: 1px solid #7a9cc6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -1px 0 rgba(0,0,0,0.05);
  font-weight: 700;
}

.taskbar-tab.minimized {
  opacity: 0.7;
}

.taskbar-tab-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* System Tray */
#system-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  height: 100%;
  background: linear-gradient(180deg, #1290e9 0%, #1070c4 50%, #0e5fad 100%);
  border-left: 2px solid rgba(0,0,0,0.15);
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.08);
}

#tray-clock {
  color: #fff;
  font-size: 11px;
  font-family: var(--font-system);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
  white-space: nowrap;
}

/* Start Menu */
#start-menu {
  position: fixed;
  bottom: var(--taskbar-height);
  left: 0;
  width: 380px;
  background: #fff;
  border: 2px solid #1f5fc4;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  box-shadow: 2px -2px 10px rgba(0,0,0,0.4);
  z-index: var(--z-start-menu);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#start-menu.hidden {
  display: none;
}

/* Start Menu User Banner */
.start-menu-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: linear-gradient(180deg, var(--hodl-orange-light) 0%, var(--hodl-orange) 30%, var(--hodl-orange-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.start-menu-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.6);
  object-fit: cover;
}

/* Start Menu Body */
.start-menu-body {
  display: flex;
  flex: 1;
  min-height: 300px;
}

.start-menu-left {
  flex: 1;
  background: #fff;
  padding: 4px 0;
  border-right: 1px solid #d6d2c2;
}

.start-menu-right {
  width: 160px;
  background: #d3e5fa;
  padding: 4px 0;
}

.start-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 11px;
  font-family: var(--font-system);
  color: #000;
  white-space: nowrap;
}

.start-menu-item:hover {
  background: #2b71b8;
  color: #fff;
}

.start-menu-item svg,
.start-menu-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.start-menu-right .start-menu-item {
  font-weight: 700;
}

.start-menu-right .start-menu-item svg,
.start-menu-right .start-menu-item img {
  width: 20px;
  height: 20px;
}

.start-menu-separator {
  height: 1px;
  background: #d6d2c2;
  margin: 4px 8px;
}

.start-menu-right .start-menu-separator {
  background: #a8c9e8;
}

/* Start Menu Footer */
.start-menu-footer {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 10px;
  background: linear-gradient(180deg, #3168d5 0%, #2352ad 50%, #1941a5 100%);
  border-top: 1px solid #0c48c4;
}

.start-menu-footer-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 11px;
  font-family: var(--font-system);
  cursor: pointer;
  border-radius: 2px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

.start-menu-footer-btn:hover {
  background: rgba(255,255,255,0.15);
}

.start-menu-footer-btn svg {
  width: 16px;
  height: 16px;
}
