#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 48px;
  background: var(--taskbar-bg);
  color: var(--taskbar-text);
  display: flex;
  align-items: center;
  padding: 0 8px;
  z-index: 10000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#activities-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--taskbar-text);
  transition: background 0.15s;
}

#activities-btn:hover {
  background: var(--taskbar-hover);
}

#activities-btn:active {
  background: var(--taskbar-active);
}

#running-apps {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 12px;
  overflow-x: auto;
}

.taskbar-app {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  color: var(--taskbar-text);
  white-space: nowrap;
  transition: background 0.15s;
  position: relative;
}

.taskbar-app:hover {
  background: var(--taskbar-hover);
}

.taskbar-app.active {
  background: var(--taskbar-active);
}

.taskbar-app-icon {
  font-size: 16px;
}

.taskbar-app-indicator {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.taskbar-app.active .taskbar-app-indicator {
  width: 16px;
}

#system-tray {
  display: flex;
  align-items: center;
  gap: 4px;
}

#tray-clock {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: default;
  font-variant-numeric: tabular-nums;
}

#notification-bell,
#theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--taskbar-text);
  transition: background 0.15s;
  position: relative;
}

#notification-bell:hover,
#theme-toggle:hover {
  background: var(--taskbar-hover);
}

#notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

#notif-badge.hidden {
  display: none;
}

/* Notification Center */
#notification-center {
  position: fixed;
  bottom: 56px;
  right: 8px;
  width: 360px;
  max-height: 480px;
  background: var(--context-bg);
  border: 1px solid var(--window-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--context-shadow);
  z-index: 10001;
  overflow: hidden;
  animation: notifCenterOpen 0.2s ease;
}

#notification-center.hidden {
  display: none;
}

@keyframes notifCenterOpen {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--separator);
  font-weight: 600;
  font-size: 14px;
}

.notif-center-header button {
  font-size: 12px;
  color: var(--accent);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.notif-center-header button:hover {
  background: var(--bg-hover);
}

.notif-center-list {
  overflow-y: auto;
  max-height: 420px;
  padding: 4px;
}

.notif-center-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.notif-center-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.1s;
}

.notif-center-item:hover {
  background: var(--bg-hover);
}

.notif-center-item.unread {
  background: var(--bg-secondary);
}

.notif-item-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.notif-item-body {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item-time {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Toast container */
#toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 99999;
  pointer-events: none;
}

.toast {
  background: var(--toast-bg);
  color: var(--toast-text);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  min-width: 280px;
  max-width: 380px;
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  cursor: pointer;
}

.toast.toast-out {
  animation: toastOut 0.25s ease forwards;
}

.toast-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.toast-body {
  font-size: 12px;
  opacity: 0.85;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

/* App launcher / Activities overlay */
#app-launcher {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: calc(100vh - 48px);
  background: var(--overlay-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: launcherOpen 0.25s ease;
}

#app-launcher.hidden {
  display: none;
}

@keyframes launcherOpen {
  from { opacity: 0; }
  to { opacity: 1; }
}

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(4, 100px);
  gap: 24px;
}

.launcher-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background 0.15s;
}

.launcher-app:hover {
  background: rgba(255, 255, 255, 0.12);
}

.launcher-app-icon {
  font-size: 48px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.launcher-app-name {
  font-size: 12px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  text-align: center;
}
