/* =============================================
   Interpol – Windows 95 desktop theme
   ============================================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --desktop-bg: #008080;
  --win-bg: #c0c0c0;
  --win-title: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  --btn-face: #c0c0c0;
  --btn-highlight: #ffffff;
  --btn-shadow: #808080;
  --btn-dark: #000000;
  --ink: #000000;
  --navy: #000080;
  --red: #cc0000;
  --green: #008000;
  --font: "MS Sans Serif", Tahoma, Geneva, sans-serif;
  --chunky: 2px;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink);
  background: var(--desktop-bg);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

img { user-select: none; -webkit-user-drag: none; }

/* ------------------------------------------------------------
   Bevel helpers (Win95 chunky borders)
   ------------------------------------------------------------ */
.bevel-out {
  border-style: solid;
  border-width: var(--chunky);
  border-color: var(--btn-highlight) var(--btn-shadow) var(--btn-shadow) var(--btn-highlight);
}

.bevel-in {
  border-style: solid;
  border-width: var(--chunky);
  border-color: var(--btn-shadow) var(--btn-highlight) var(--btn-highlight) var(--btn-shadow);
}

button {
  font-family: var(--font);
  font-size: 13px;
}

/* ------------------------------------------------------------
   Dashboard base
   ------------------------------------------------------------ */
.dashboard {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* ------------------------------------------------------------
   Window
   ------------------------------------------------------------ */
.window {
  position: absolute;
  background: var(--win-bg);
  border-style: solid;
  border-width: var(--chunky);
  border-color: var(--btn-highlight) var(--btn-dark) var(--btn-dark) var(--btn-highlight);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  min-width: 260px;
  min-height: 160px;
}

.window--inactive .window__header {
  background: #7b7b9a;
}

.window--minimized {
  display: none !important;
}

.window__header {
  background: var(--win-title);
  color: #fff;
  font-weight: bold;
  padding: 3px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: default;
  height: 22px;
  flex-shrink: 0;
}

.window--active .window__header {
  background: var(--win-title);
}

.window__title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.window__content {
  flex: 1;
  overflow: auto;
  padding: 12px;
  border-style: solid;
  border-width: var(--chunky);
  border-color: var(--btn-shadow) var(--btn-highlight) var(--btn-highlight) var(--btn-shadow);
  background: var(--win-bg);
}

/* ------------------------------------------------------------
   Taskbar
   ------------------------------------------------------------ */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: var(--win-bg);
  border-top: 2px solid var(--btn-highlight);
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 2px 4px;
  z-index: 100;
}

.taskbar__start {
  background: var(--btn-face);
  border-style: solid;
  border-width: var(--chunky);
  border-color: var(--btn-highlight) var(--btn-shadow) var(--btn-shadow) var(--btn-highlight);
  font-weight: bold;
  padding: 0 10px;
  min-width: 64px;
  text-align: center;
  cursor: default;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.taskbar__start::before {
  content: "▞ ";
  font-size: 12px;
}

.taskbar__start:active {
  border-color: var(--btn-shadow) var(--btn-highlight) var(--btn-highlight) var(--btn-shadow);
}

.taskbar__windows {
  flex: 1;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
}

.taskbar__window-button {
  background: var(--btn-face);
  border-style: solid;
  border-width: var(--chunky);
  border-color: var(--btn-highlight) var(--btn-shadow) var(--btn-shadow) var(--btn-highlight);
  font-size: 12px;
  padding: 0 12px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.taskbar__window-button--active {
  border-color: var(--btn-shadow) var(--btn-highlight) var(--btn-highlight) var(--btn-shadow);
  background: #dfdfdf;
  font-weight: bold;
}

.taskbar__clock {
  background: var(--win-bg);
  border-style: solid;
  border-width: var(--chunky);
  border-color: var(--btn-shadow) var(--btn-highlight) var(--btn-highlight) var(--btn-shadow);
  font-size: 12px;
  padding: 0 10px;
  min-width: 70px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------
   Desktop Watermark
   ------------------------------------------------------------ */
.desktop-watermark {
  position: fixed;
  right: 24px;
  bottom: 44px;
  width: 150px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 2;
}

/* ------------------------------------------------------------
   Verdachten app
   ------------------------------------------------------------ */
.verdachten-app__header {
  font-size: 14px;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--btn-shadow);
}

.verdachten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.verdachten-card {
  position: relative;
  background: #fff;
  border-style: solid;
  border-width: var(--chunky);
  border-color: var(--btn-shadow) var(--btn-highlight) var(--btn-highlight) var(--btn-shadow);
  overflow: hidden;
}

.verdachten-card__photo-wrap {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-bottom: 1px solid var(--btn-shadow);
}

.verdachten-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.verdachten-card__photo-wrap .verdachten-card__cross {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
}

.verdachten-card__cross img {
  width: 48px;
  height: 48px;
}

.verdachten-card__stamp {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border: 2px double currentColor;
  background: rgba(255, 255, 255, 0.75);
}

.verdachten-card--verdacht .verdachten-card__stamp {
  color: var(--red);
}

.verdachten-card__body {
  padding: 8px 10px;
}

.verdachten-card__name {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.3;
}

.verdachten-card__role {
  font-size: 11px;
  color: var(--btn-shadow);
  margin-top: 2px;
}

/* Weggespeeld = grijs + cross */
.verdachten-card--weggespeeld {
  opacity: 0.6;
  filter: grayscale(1);
}

.verdachten-card--weggespeeld .verdachten-card__stamp {
  color: var(--green);
}

.verdachten-card--weggespeeld .verdachten-card__cross {
  display: flex;
}

.verdachten-card--weggespeeld .verdachten-card__name,
.verdachten-card--weggespeeld .verdachten-card__role {
  color: #666;
  text-decoration: line-through;
}

/* ------------------------------------------------------------
   Hacker app (De Hacker)
   ------------------------------------------------------------ */
.hacker-app {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  overflow-y: auto;
}

.hacker-profile__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--btn-shadow);
}

.hacker-profile__photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 2px double var(--red);
  flex-shrink: 0;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.hacker-extra-photo {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 45vh;
  object-fit: contain;
  border: 1px solid var(--btn-shadow);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.hacker-profile__status {
  display: inline-block;
  color: var(--red);
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 3px double var(--red);
  padding: 3px 10px;
  transform: rotate(-4deg);
  margin-bottom: 8px;
}

.hacker-profile__name {
  font-size: 22px;
}

.hacker-profile__role {
  color: var(--btn-shadow);
  font-size: 12px;
  margin-top: 2px;
}

.hacker-profile__intro {
  font-size: 13px;
  line-height: 1.5;
}

.hacker-clues {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: clue;
}

.hacker-clues li {
  background: #fff;
  border-style: solid;
  border-width: var(--chunky);
  border-color: var(--btn-shadow) var(--btn-highlight) var(--btn-highlight) var(--btn-shadow);
  padding: 10px 12px 10px 40px;
  font-size: 12px;
  line-height: 1.5;
  position: relative;
}

.hacker-clues li::before {
  counter-increment: clue;
  content: counter(clue);
  position: absolute;
  left: 10px;
  top: 10px;
  width: 20px;
  height: 20px;
  background: var(--navy);
  color: #fff;
  font-weight: bold;
  text-align: center;
  line-height: 20px;
}

.hacker-clues strong {
  color: var(--navy);
}

/* ------------------------------------------------------------
   Team Info app
   ------------------------------------------------------------ */
.team-profile {
  text-align: center;
  margin-bottom: 14px;
}

.team-profile__photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 2px double var(--navy);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.team-name {
  font-size: 22px;
  margin-bottom: 2px;
  text-align: center;
}

.team-tagline {
  color: var(--btn-shadow);
  font-size: 12px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--btn-shadow);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.team-card {
  display: flex;
  gap: 10px;
  background: #fff;
  border-style: solid;
  border-width: var(--chunky);
  border-color: var(--btn-shadow) var(--btn-highlight) var(--btn-highlight) var(--btn-shadow);
  padding: 10px;
}

.team-card__avatar {
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.team-card__info {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  min-width: 0;
}

.team-card__info strong {
  font-size: 13px;
}

.team-card__info span {
  color: var(--navy);
  font-size: 11px;
  margin-bottom: 6px;
}

.team-card__info p {
  color: #333;
  line-height: 1.4;
}

/* ------------------------------------------------------------
   Challenges app
   ------------------------------------------------------------ */
.challenge-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.challenge-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border-style: solid;
  border-width: var(--chunky);
  border-color: var(--btn-shadow) var(--btn-highlight) var(--btn-highlight) var(--btn-shadow);
  padding: 10px;
}

.challenge-item__check {
  width: 20px;
  height: 20px;
  border: 1px solid var(--btn-shadow);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  flex-shrink: 0;
  color: var(--green);
}

.challenge-item--active .challenge-item__check {
  color: var(--navy);
}

.challenge-item--active {
  border-color: var(--navy);
}

.challenge-item div {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.challenge-item small {
  color: var(--btn-shadow);
  margin-top: 3px;
  line-height: 1.4;
}

/* ------------------------------------------------------------
   Leaderboard app
   ------------------------------------------------------------ */
.leaderboard-app__header {
  font-size: 14px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--btn-shadow);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
}

.leaderboard-table th,
.leaderboard-table td {
  text-align: left;
  padding: 6px 10px;
  border: 1px solid var(--btn-shadow);
}

.leaderboard-table th {
  background: var(--win-bg);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leaderboard-row--active {
  background: #e8f0ff;
  font-weight: bold;
}

/* ------------------------------------------------------------
   Mail app
   ------------------------------------------------------------ */
.mail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mail-item {
  background: #fff;
  border-style: solid;
  border-width: var(--chunky);
  border-color: var(--btn-shadow) var(--btn-highlight) var(--btn-highlight) var(--btn-shadow);
  padding: 10px;
}

.mail-item--hacker {
  background: #f0f0f0;
}

.mail-item__header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 6px;
  color: #333;
}

.mail-item__header span {
  color: var(--navy);
  font-size: 11px;
  white-space: nowrap;
}

.mail-item p {
  font-size: 12px;
  line-height: 1.5;
  color: #333;
}

/* ------------------------------------------------------------
   Suspect app (Verdachte)
   ------------------------------------------------------------ */
.suspect-app {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  overflow-y: auto;
}

.suspect-profile__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--btn-shadow);
}

.suspect-profile__avatar {
  width: 64px;
  height: 64px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.suspect-profile__name {
  font-size: 20px;
}

.suspect-profile__status {
  color: var(--red);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
}

.suspect-profile__intro {
  font-size: 13px;
  line-height: 1.5;
}

.suspect-evidence,
.suspect-doubt {
  background: #fff;
  border-style: solid;
  border-width: var(--chunky);
  border-color: var(--btn-shadow) var(--btn-highlight) var(--btn-highlight) var(--btn-shadow);
  padding: 12px;
}

.suspect-evidence h3,
.suspect-doubt h3 {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--navy);
}

.suspect-evidence__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suspect-evidence__list li {
  font-size: 12px;
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.suspect-evidence__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--navy);
}

.suspect-doubt p {
  font-size: 12px;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   Scrollbar (retro-ish)
   ------------------------------------------------------------ */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: #dfdfdf; }
::-webkit-scrollbar-thumb {
  background: var(--btn-face);
  border-style: solid;
  border-width: 1px;
  border-color: var(--btn-highlight) var(--btn-shadow) var(--btn-shadow) var(--btn-highlight);
}

::-webkit-scrollbar-button {
  background: var(--btn-face);
  border-style: solid;
  border-width: 1px;
  border-color: var(--btn-highlight) var(--btn-shadow) var(--btn-shadow) var(--btn-highlight);
  height: 14px;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .dashboard {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  body {
    overflow: auto;
  }

  .taskbar {
    position: fixed;
  }

  .window {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 12px;
    z-index: auto !important;
    transform: none !important;
  }

  .dossier-app__content {
    grid-template-columns: 1fr;
  }

  .dossier-app__list {
    max-height: 220px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .taskbar__start {
    min-width: 50px;
    font-size: 11px;
  }

  .taskbar__window-button {
    max-width: 110px;
    font-size: 11px;
    padding: 0 8px;
  }

  .taskbar__clock {
    min-width: 60px;
    font-size: 11px;
  }

  .dossier-modal__body {
    flex-direction: column;
  }

  .dossier-modal__image {
    width: 100%;
    height: 180px;
  }

  .mail-item__header {
    flex-direction: column;
  }
}