/* ===========================================================
   RETRO WINDOWS 95/98 STYLING
   - Softer edges, dithered grays, pixel fonts
   - Keeps ALL your original structure
===========================================================*/

/* Taskbar */
#taskbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 8;
  height: 38px;
  background: repeating-linear-gradient(
    45deg,
    #c0c0c0,
    #c0c0c0 2px,
    #d4d4d4 2px,
    #d4d4d4 4px
  ); /* subtle dither pattern */
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
}

#startBtn {
  background: #c0c0c0 url("Assets/IMG/retroicon.png") no-repeat 6px center;
  background-size: 16px 16px;
  border: 2px solid #fff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  padding: 6px 10px 4px 26px; /* icon space */
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  cursor: pointer;
}

#taskApps { display: flex; gap: 6px; flex: 1; }

.task {
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  padding: 2px 8px;
  cursor: pointer;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
}

#clock {
  min-width: 88px;
  text-align: right;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
}

/* Windows */
.win {
  position: fixed;
  top: 120px; left: 120px;
  min-width: 320px; min-height: 160px;
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  /* remove blur shadow, replace with crisp outline */
  box-shadow: 2px 2px 0 #404040;
  z-index: 6;
  display: none;
  max-width: 80vw;
  max-height: 80vh;
}

.win.active { display: block; }

.titlebar {
  background: linear-gradient(#000080, #000060);
  color: #fff;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  cursor: move;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
}

.winbtns { display: flex; gap: 2px; }

.winbtn {
  width: 18px; height: 16px;
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.win .content {
  background: #efefef;
  padding: 8px;
  overflow: auto;
  max-height: calc(80vh - 26px);
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
}

/* Buttons / Inputs */
.btn {
  padding: 4px 8px;
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  cursor: pointer;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
}
.btn:active {
  border-top-color: #808080;
  border-left-color: #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

.input, select {
  padding: 2px 4px;
  border: 2px solid #000;
  background: #fff;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  color: #111;
}

/* Files Window */
.files95 { font-family: "MS Sans Serif", Tahoma, sans-serif; font-size: 11px; }
.files-bar { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.files-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 10px; }
.file-card {
  background: #d4d4d4;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  padding: 4px;
}
.file-thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #fff; border: 1px solid #000; }
.file-title { font-size: 11px; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-actions { display: flex; gap: 6px; flex-wrap: wrap; }
