/* ============================================
   TASKBAR.CSS — Bottom taskbar
   ============================================ */

#taskbar {
  grid-row: 3;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(42, 42, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

#taskbar::-webkit-scrollbar {
  display: none;
}

/* Taskbar Item */
.taskbar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.1s ease;
  flex-shrink: 0;
  position: relative;
}

.taskbar__item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.taskbar__item--active {
  background: rgba(255, 255, 255, 0.12);
}

/* Active indicator dot */
.taskbar__item::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3DF2E5;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.taskbar__item--active::after {
  opacity: 1;
}

.taskbar__item--minimized {
  opacity: 0.6;
}

.taskbar__item--minimized::after {
  opacity: 0.5;
}

/* Taskbar Icon */
.taskbar__icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* Taskbar Title */
.taskbar__title {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.taskbar__item--active .taskbar__title {
  color: #fff;
}

/* Empty State */
.taskbar__empty {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #555;
  padding: 0 8px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  #taskbar {
    height: 52px;
    justify-content: center;
    gap: 2px;
  }

  .taskbar__title {
    display: none;
  }

  .taskbar__icon {
    width: 24px;
    height: 24px;
    font-size: 18px;
  }

  .taskbar__item {
    padding: 6px 10px;
  }
}
