/* ========== TASKBAR ========== */
.taskbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  font-size: 14px;
  z-index: 100;
}

.taskbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Start Button */
.start-button img {
  width: 28px;
  height: 28px;
  cursor: pointer;
}

/* Taskbar Window Tabs */
.taskbar-window-buttons {
  display: flex;
  gap: 6px;
  margin-left: 10px;
}

.taskbar-window {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #1e1e1e;
  color: #fff;
  font-family: monospace;
  font-size: 13px;
  border: 1px solid transparent;
  border-radius: 3px;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}

.taskbar-window i {
  font-size: 14px;
}

.taskbar-window:hover {
  background: #2a2a2a;
}

.taskbar-window.active-tab {
  background: #3a3a3a;
  border-bottom: 2px solid #00aaff;
}

.taskbar-window.minimized-tab {
  opacity: 0.5;
}


/* Optional notification badge for future use */
.tab-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff5c5c;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 10px;
  color: #fff;
  display: none;
}



.taskbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.taskbar-left {
  display: flex;
  align-items: center;
  overflow: hidden;
}

#taskbar-windows {
  display: flex;
  overflow-x: auto;
  max-width: calc(100vw - 250px);
  /* Leaves space for icons + clock */
  gap: 6px;
  scrollbar-width: none;
}

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

.taskbar-window {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1a1a1a;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background 0.2s ease;
}

.taskbar-window:hover {
  background: #333;
}

.taskbar-window.active-tab {
  background: #3a3a3a;
  border-bottom: 2px solid #00aaff;
}

.taskbar-window.minimized-tab {
  opacity: 0.5;
}

#clock {
  color: #ccc;
  font-family: monospace;
  padding: 0 10px;
  text-align: right;
  min-width: 100px;
}


.taskbar-window.dragging {
  opacity: 0.5;
  background: #444;
}



/* CLOCK / CALANDER*/

#clock {
  cursor: pointer;
  transition: color 0.2s ease;
}

#clock.active {
  color: #00aaff;
}

.calendar-popup {
  position: fixed;
  bottom: 40px;
  right: 10px;
  width: 240px;
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  font-family: monospace;
  box-shadow: 0 0 10px #000;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.calendar-popup.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  font-weight: bold;
  border-bottom: 1px solid #333;
}

.calendar-header button {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 16px;
}

.calendar-header button:hover {
  color: #fff;
}

#calendar-body table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 13px;
  padding: 10px;
}

#calendar-body th {
  color: #aaa;
  padding-bottom: 4px;
}

#calendar-body td {
  padding: 4px;
  cursor: default;
}

#calendar-body td.today {
  background: #0078D7;
  color: #fff;
  border-radius: 4px;
}