/* Window styling */
.window {
  position: absolute;
  background: #050a14;             /* Very dark navy/black */
  border: 2px solid #1a5fb4;       /* Solid deep blue border */
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); 
  font-family: 'MartianMono', serif;
}

/* Titlebar */
.titlebar {
  background: #1a5fb4;             /* Solid deep blue (no gradient) */
  color: #e1e1e1;                  /* Off-white for softer contrast */
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  flex-shrink: 0;
}

.titlebar .title {
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Titlebar buttons */
.titlebar .buttons {
  display: flex;
  gap: 8px;
}

.titlebar button {
  background: none;
  border: none;
  color: #e1e1e1;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  font-family: 'MartianMono', serif;
  transition: background 0.2s ease;
}

.titlebar button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* Window content area */
.window-content {
  flex: 1;
  overflow: hidden;
  background: #050a14;
}

/* Taskbar styling */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: rgba(10, 12, 16, 0.9);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.5);
  z-index: 10000; /* on top of windows */
}

.task-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: transparent;
  border: none;
  color: #e1e1e1;
  cursor: pointer;
  border-radius: 4px;
  font-family: 'MartianMono', serif;
}

.task-item:hover { background: rgba(255,255,255,0.04); }
.task-item.active { background: rgba(255,255,255,0.08); }
.task-item.minimized { opacity: 0.7; }

.task-icon { width: 32px; height: 32px; object-fit: cover; border-radius: 4px; }
.task-label { font-size: 12px; }

/* Small icon in titlebar */
.title-icon { vertical-align: middle; }