* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
  font-size: 11px;
}

body {
  background-color: #008080;
  height: 100vh;
  overflow: hidden;
  user-select: none;
}

.win-outset {
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf;
}

.win-inset {
  background: #ffffff;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  box-shadow: inset 1px 1px #000000, inset -1px -1px #dfdfdf;
}

#desktop-icons {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-wrap: wrap;
  max-height: 90vh;
  width: 210px;
}

.icon {
  width: 78px;
  text-align: center;
  cursor: pointer;
}

.icon-img {
  font-size: 26px;
  margin-bottom: 3px;
}

.icon span {
  color: #ffffff;
  padding: 2px;
  display: inline-block;
  text-shadow: 1px 1px 1px #000;
  line-height: 12px;
}

.window {
  position: absolute;
  min-width: 320px;
  display: none;
  z-index: 10;
}

.title-bar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: white;
  padding: 3px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  cursor: move;
}

.title-bar-controls button {
  width: 16px;
  height: 14px;
  font-size: 9px;
  font-weight: bold;
  padding: 0;
  line-height: 10px;
  cursor: pointer;
}

.window-body {
  padding: 8px;
}

input, select, textarea {
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  padding: 3px 4px;
  background: #fff;
  outline: none;
}

button {
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  padding: 3px 8px;
  cursor: pointer;
}

button:active {
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
  z-index: 1000;
}

#start-btn {
  font-weight: bold;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
}

#tray {
  padding: 2px 8px;
  height: 20px;
  line-height: 16px;
  font-size: 11px;
}

.top-secret-stamp {
  border: 2px dashed #b22222;
  color: #b22222;
  font-family: monospace;
  font-weight: bold;
  font-size: 12px;
  padding: 4px;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #c0c0c0;
  padding: 4px;
  text-align: left;
}

th {
  background: #e0e0e0;
}

.terminal-box {
  background: #000000;
  color: #00ff66;
  font-family: monospace;
  padding: 8px;
  border: 2px inset #fff;
}

.beacon-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.beacon-green {
  background-color: #00ff66;
  box-shadow: 0 0 8px #00ff66;
}
.beacon-red {
  background-color: #ff2222;
  box-shadow: 0 0 10px #ff2222;
}

.chat-image {
  max-width: 220px;
  max-height: 160px;
  border: 2px solid #444;
  margin-top: 4px;
  display: block;
  cursor: pointer;
  background: #111;
}
.chat-image:hover {
  border-color: #00ff66;
}
