/* Another tuff asl font */ 
@font-face {
  font-family: 'JetBrainsMono';
  src: url('../fonts/MozillaHeadline-VariableFont_wdth\,wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Window styling */
.window {
  position: absolute;
  background: transparent;
  border: 2px solid rgba(0, 38, 255, 0.6);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); 
  font-family: 'JetBrainsMono', serif;
  min-width: 200px;
  min-height: 120px;
  backdrop-filter: blur(2px);
}

.window.maximized {
  border-radius: 0;
  box-shadow: none;
}

/* Titlebar */
.titlebar {
  background: rgba(0, 38, 255, 0.6);
  color: #e1e1e1;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  flex-shrink: 0;
}

.titlebar .title {
  font-family: 'JetBrainsMono', sans-serif;
  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: 'JetBrainsMono', 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: rgb(0, 0, 0);
}

/* ── Resize handles ── */
.resize-handle {
  position: absolute;
  z-index: 10;
}

/* Edges */
.resize-n  { top: 0;    left: 6px;  right: 6px;  height: 5px; cursor: n-resize; border-radius: 2px;}
.resize-s  { bottom: 0; left: 6px;  right: 6px;  height: 5px; cursor: s-resize; border-radius: 2px;}
.resize-w  { left: 0;   top: 6px;   bottom: 6px; width: 5px;  cursor: w-resize; border-radius: 2px;}
.resize-e  { right: 0;  top: 6px;   bottom: 6px; width: 5px;  cursor: e-resize; border-radius: 2px;}

/* Corners */
.resize-nw { top: 0;    left: 0;    width: 10px; height: 10px; cursor: nw-resize; }
.resize-ne { top: 0;    right: 0;   width: 10px; height: 10px; cursor: ne-resize; }
.resize-sw { bottom: 0; left: 0;    width: 10px; height: 10px; cursor: sw-resize; }
.resize-se { bottom: 0; right: 0;   width: 10px; height: 10px; cursor: se-resize; }

/* Hide resize handles on maximized windows */
.window.maximized .resize-handle {
  display: none;
}

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

.task-item:hover { background: rgba(255,255,255,0.2); }
.task-item.active { background: rgba(255,255,255,0.7); }
.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 */
