body {
  background-color: #000;
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  cursor: default;
  background-image: radial-gradient(rgba(0, 50, 0, 0.3) 1px, transparent 1px);
  background-size: 4px 4px;
}

#screen {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(0, 10, 0, 0.7);
  min-height: 100vh;
  border-left: 1px solid #0a0;
  border-right: 1px solid #0a0;
  box-shadow: 0 0 30px rgba(0, 50, 0, 0.5);
}

.header {
  border-bottom: 2px solid #0a0;
  padding-bottom: 10px;
  margin-bottom: 15px;
  text-align: center;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #0f0;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

.tagline {
  font-size: 12px;
  color: #0a0;
  margin-top: 5px;
}

/* Consistent navigation styles */
.navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border: 1px solid #0a0;
  margin-bottom: 20px;
  background-color: #001200;
  width: 100%;
  box-sizing: border-box;
}
.nav-item {
  color: #0f0;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-right: 1px solid #0a0;
  flex: 1 1 0;
  text-align: center;
  transition: background 0.2s;
}
.nav-item:last-child {
  border-right: none;
}
.nav-item:hover,
.nav-item.active {
  background-color: #003300;
  font-weight: bold;
}

.board-info {
  margin-bottom: 20px;
}

.board-title {
  font-size: 16px;
  color: #0f0;
  text-align: center;
  padding: 5px;
  border: 1px dashed #0a0;
  background-color: #001500;
  margin-bottom: 10px;
}

.board-stats {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 11px;
  color: #090;
  background-color: #000800;
  padding: 5px;
  border: 1px solid #030;
}

.board-stats span {
  margin-right: 10px;
}

.thread-container {
  border: 1px solid #0a0;
  margin-bottom: 20px;
  background-color: #001000;
}

.thread-header {
  background-color: #002200;
  padding: 10px;
  border-bottom: 1px solid #0a0;
}

.thread-title {
  font-size: 16px;
  font-weight: bold;
  color: #0f0;
  margin-bottom: 5px;
}

.thread-info {
  font-size: 11px;
  color: #090;
}

.mod-name {
  color: #ff0;
  font-weight: bold;
}

.posts-container {
  padding: 10px;
}

.message {
  margin-bottom: 15px;
  border: 1px solid #040;
  background-color: #001800;
  border-radius: 2px;
}

.message-header {
  background-color: #002200;
  padding: 5px 10px;
  border-bottom: 1px dashed #040;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

.author {
  color: #0c0;
  font-weight: bold;
}

.timestamp {
  color: #080;
  font-size: 10px;
}

.message-content {
  padding: 10px;
  color: #0f0;
  white-space: pre-wrap;
  word-break: break-word;
}

.system-message {
  color: #aaffaa;
  border: 1px dashed #00aa00;
  padding: 10px;
  text-align: center;
  margin: 20px 0;
  background-color: #001200;
}

.system-message kbd {
  background-color: #003300;
  border: 1px solid #00aa00;
  border-radius: 3px;
  box-shadow: 0 1px 0 #00aa00;
  color: #00ff00;
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 2px 4px;
  white-space: nowrap;
}

.blink {
  animation: blink-animation 1s steps(2, start) infinite;
  -webkit-animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
  to {
    visibility: hidden;
  }
}

@-webkit-keyframes blink-animation {
  to {
    visibility: hidden;
  }
}

/* Form Overlay Styles */
#form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 15, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#config-panel {
  background-color: #001500;
  width: 80%;
  max-width: 600px;
  border: 2px solid #00aa00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  color: #00ff00;
  font-family: 'Courier New', monospace;
}

.form-header {
  background-color: #003300;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #00aa00;
}

.form-header h2 {
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
}

.close-btn {
  cursor: pointer;
  font-size: 24px;
  color: #00ff00;
}

.close-btn:hover {
  color: #ff0000;
}

.panel-content {
  padding: 15px;
  max-height: 70vh;
  overflow-y: auto;
}

.form-section {
  margin-bottom: 20px;
}

.form-section h3 {
  margin-top: 0;
  font-size: 14px;
  border-bottom: 1px dashed #004400;
  padding-bottom: 5px;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 8px;
  background-color: #001800;
  border: 1px solid #00aa00;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  box-sizing: border-box;
}

textarea {
  height: 80px;
  resize: vertical;
}

button {
  background-color: #004400;
  color: #00ff00;
  border: 1px solid #00aa00;
  padding: 8px 15px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  margin-top: 10px;
}

button:hover {
  background-color: #006600;
}

.examples-btn {
  background-color: #003366;
  border-color: #005599;
}

.examples-btn:hover {
  background-color: #004488;
}

.danger-btn {
  background-color: #660000;
  border-color: #990000;
}

.danger-btn:hover {
  background-color: #990000;
}

#message-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #004400;
  background-color: #001200;
}

#message-list li {
  padding: 5px 10px;
  border-bottom: 1px dashed #004400;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#message-list li:last-child {
  border-bottom: none;
}

.msg-content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.msg-actions {
  display: flex;
  gap: 5px;
}

.small-btn {
  padding: 2px 5px;
  font-size: 10px;
  margin: 0;
}

.edit-btn {
  background-color: #003366;
}

.delete-btn {
  background-color: #660000;
}

.keyboard-shortcuts {
  background-color: #002200;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px dashed #004400;
}

.keyboard-shortcuts h3 {
  margin-top: 0;
  font-size: 14px;
  border-bottom: 1px dashed #004400;
  padding-bottom: 5px;
}

.keyboard-shortcuts ul {
  padding-left: 20px;
  margin: 0;
}

.keyboard-shortcuts li {
  margin-bottom: 5px;
}

kbd {
  background-color: #003300;
  border: 1px solid #00aa00;
  border-radius: 3px;
  box-shadow: 0 1px 0 #00aa00;
  color: #00ff00;
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 2px 4px;
  white-space: nowrap;
}

.queue-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.queue-storage-controls {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.save-btn {
  background-color: #006633;
  border-color: #008844;
}

.save-btn:hover {
  background-color: #008844;
}

.load-btn {
  background-color: #005588;
  border-color: #0077aa;
}

.load-btn:hover {
  background-color: #0077aa;
}

/* Thread list styles for the board pages */
.thread-list-container {
  border: 1px solid #0a0;
  margin-bottom: 20px;
  background-color: #001000;
}

.thread-list-header {
  background-color: #002200;
  padding: 10px;
  border-bottom: 1px solid #0a0;
  display: flex;
}

.thread-list {
  display: flex;
  flex-direction: column;
}

.thread-item {
  padding: 8px 10px;
  border-bottom: 1px dashed #040;
  display: flex;
  background-color: #001200;
}

.thread-item:hover {
  background-color: #001a00;
}

.thread-item.sticky {
  background-color: #001800;
}

.thread-item.urgent {
  background-color: #180000;
}

.thread-item.locked {
  opacity: 0.8;
}

.col-topic {
  flex: 3;
}

.col-author {
  flex: 1;
  text-align: center;
}

.col-replies {
  flex: 0.5;
  text-align: center;
}

.col-activity {
  flex: 1;
  text-align: right;
}

.thread-item a {
  color: #0f0;
  text-decoration: none;
}

.thread-item a:hover {
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  padding: 10px;
  background-color: #001800;
  border-top: 1px solid #040;
}

.page-link {
  padding: 5px 10px;
  margin: 0 5px;
  color: #0f0;
  text-decoration: none;
  border: 1px solid #040;
}

.page-link.active {
  background-color: #004400;
  border-color: #0a0;
}

/* Home page styles */
.home-container {
  padding: 15px;
  background-color: #001000;
  border: 1px solid #0a0;
}

.welcome-message {
  text-align: center;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px dashed #0a0;
  background-color: #001800;
}

.welcome-message h2 {
  margin-top: 0;
  color: #0f0;
}

.welcome-message p {
  margin: 10px 0;
}

.welcome-message .warning {
  color: #f00;
  margin-top: 15px;
  font-weight: bold;
}

.board-list {
  margin-bottom: 20px;
}

.board-list h3, .system-notices h3 {
  background-color: #002200;
  padding: 8px;
  margin: 0;
  border: 1px solid #0a0;
  border-bottom: none;
}

.board-item {
  padding: 10px;
  border: 1px solid #040;
  border-top: none;
  background-color: #001500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.board-link {
  color: #0f0;
  text-decoration: none;
  font-weight: bold;
}

.board-link:hover {
  text-decoration: underline;
}

.board-meta {
  font-size: 12px;
  color: #0a0;
}

.system-notices {
  margin-bottom: 20px;
}

.notice-item {
  padding: 10px;
  border: 1px solid #040;
  border-top: none;
  background-color: #001500;
}

.notice-item.urgent {
  background-color: #100500;
  border-color: #600;
}

.notice-title {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #0f0;
}

.notice-date {
  font-size: 12px;
  color: #0a0;
  float: right;
}

.notice-content {
  margin-top: 10px;
  padding: 5px;
  border-left: 2px solid #040;
}

/* Access denied page */
.access-denied {
  text-align: center;
  padding: 40px 20px;
  background-color: #100500;
  border: 2px solid #800;
}

.access-title {
  color: #f00;
  margin-bottom: 20px;
}

.access-message {
  margin-bottom: 20px;
  color: #ff0;
}

.access-code {
  font-family: monospace;
  color: #f00;
  padding: 5px;
  background-color: #000;
  display: inline-block;
  border: 1px solid #800;
}

/* Marketplace styles */
.market-warning {
  background-color: #300;
  border: 1px solid #800;
  margin-bottom: 20px;
  padding: 10px;
}

.warning-header {
  color: #f00;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.warning-content {
  color: #ff0;
  font-size: 12px;
  line-height: 1.4;
}

.market-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.category-item {
  flex: 1;
  min-width: 200px;
  padding: 10px;
  background-color: #001800;
  border: 1px solid #0a0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-link {
  color: #0f0;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 5px;
}

.category-count {
  font-size: 12px;
  color: #0a0;
}

.featured-listings {
  border: 1px solid #0a0;
  background-color: #001200;
}

.featured-header {
  background-color: #002200;
  padding: 10px;
  border-bottom: 1px solid #0a0;
  font-weight: bold;
}

.listing-item {
  padding: 10px;
  border-bottom: 1px dashed #040;
  background-color: #001500;
}

.listing-title {
  margin-bottom: 5px;
}

.listing-title a {
  color: #0f0;
  text-decoration: none;
}

.listing-title a:hover {
  text-decoration: underline;
}

.listing-meta {
  display: flex;
  font-size: 12px;
  color: #0a0;
}

.listing-meta span {
  margin-right: 15px;
}

.listing-price {
  color: #ff0;
}

/* Search page styles */
.search-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 15px;
  background-color: #001000;
  border: 1px solid #0a0;
}

.search-form {
  background-color: #001800;
  padding: 15px;
  border: 1px solid #040;
}

.search-form h3 {
  margin-top: 0;
  border-bottom: 1px dashed #040;
  padding-bottom: 5px;
}

.search-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.search-input {
  flex: 1;
  padding: 8px;
  background-color: #000;
  border: 1px solid #0a0;
  color: #0f0;
  font-family: 'Courier New', monospace;
}

.search-button {
  padding: 8px 15px;
  background-color: #004400;
  border: 1px solid #0a0;
  color: #0f0;
  cursor: pointer;
  font-family: 'Courier New', monospace;
}

.search-button:hover {
  background-color: #005500;
}

.search-options, .search-boards {
  margin-bottom: 15px;
}

.search-options {
  display: flex;
  gap: 15px;
}

.board-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.search-results {
  min-height: 200px;
  background-color: #001200;
  border: 1px solid #040;
  padding: 15px;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #090;
  font-style: italic;
}

/* Chat styles */
.chat-container {
  background: #000;
  border: 1px solid #0a0;
  border-radius: 4px;
  margin: 0 auto;
  max-width: 600px;
  height: calc(100vh - 200px);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 10px #001a00;
}

.chat-title {
  background: #001200;
  color: #0f0;
  font-weight: bold;
  padding: 10px;
  border-bottom: 1px solid #0a0;
  text-align: left;
  font-size: 16px;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 0;
  min-height: 0;
}

.message {
  background: #001800;
  border-radius: 3px;
  padding: 8px 12px;
  color: #0f0;
  max-width: 80%;
  word-break: break-word;
  font-size: 14px;
  align-self: flex-start;
}

.message .author {
  color: #aaffaa;
  font-weight: bold;
  margin-right: 8px;
}

.message .timestamp {
  color: #090;
  font-size: 10px;
  margin-left: 8px;
}

.message.self {
  background: #003300;
  align-self: flex-end;
}

/* Chat link styles */
.chat-link {
  color: #66ff66;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.2s ease;
}

.chat-link:hover {
  color: #aaffaa;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  cursor: pointer;
}

.chat-link:visited {
  color: #55cc55;
}

/* Chat image styles */
.chat-img {
  border: 1px solid #0a0;
  border-radius: 3px;
  background-color: #001100;
  padding: 2px;
  max-width: 100%;
}

/* Remove PM overlay styles */
#pm-overlay, .pm-modal, .pm-header, .pm-title, .pm-close, .pm-messages { display: none !important; }

.copy-query-btn {
  margin: 10px 0 0 0;
  background: #002200;
  color: #0f0;
  border: 1px solid #0a0;
  border-radius: 3px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  display: block;
}
.copy-query-btn:hover {
  background: #005500;
}

/* Mobile-friendly adjustments */
@media (max-width: 600px) {
  #screen {
    padding: 5px;
    min-width: 0;
    max-width: 100vw;
    border: none;
  }
  .header {
    padding-bottom: 5px;
    margin-bottom: 8px;
  }
  .logo {
    font-size: 20px;
    letter-spacing: 1px;
  }
  .navigation {
    flex-direction: column;
    border: none;
    margin-bottom: 10px;
    background: none;
  }
  .nav-item {
    border: none;
    border-bottom: 1px solid #0a0;
    padding: 12px 0;
    font-size: 16px;
  }
  .nav-item:last-child {
    border-bottom: none;
  }
  .chat-container {
    max-width: 100vw;
    min-width: 0;
    height: calc(100vh - 120px);
    min-height: 300px;
    border-radius: 0;
    box-shadow: none;
  }
  .chat-title {
    font-size: 14px;
    padding: 8px;
  }
  .chat-messages {
    padding: 8px;
    font-size: 13px;
  }
  .chat-form {
    padding: 6px;
  }
  .chat-input {
    font-size: 13px;
    padding: 6px 8px;
  }
  .chat-send {
    font-size: 13px;
    padding: 6px 10px;
  }
  .copy-query-btn {
    font-size: 13px;
    padding: 6px 10px;
  }
  #form-overlay #config-panel {
    width: 98vw;
    max-width: 98vw;
    min-width: 0;
    left: 1vw;
    right: 1vw;
    border-radius: 0;
  }
  .panel-content {
    padding: 8px;
  }
  .form-section h3 {
    font-size: 13px;
  }
  .form-group label {
    font-size: 13px;
  }
  input[type="text"],
  input[type="number"],
  textarea {
    font-size: 13px;
    padding: 6px;
  }
}

/* Attention blinking animation for chat menu button */
.nav-item.chat-menu-blink:not(.active) {
  animation: blink-menu-combo 1.5s steps(2, start) infinite;
  color: #0f0;
  box-sizing: border-box;
}
@keyframes blink-menu-combo {
  0% {
    background: #006622;
  }
  100% {
    background: #001200;
  }
}

/* PARTICIPANT PROFILE STYLES - EARLY 2000s FEEL */
.participant-profile {
  background: #010;
  border: 1px solid #0a0;
  max-width: 500px;
  margin: 24px auto 0 auto;
  padding: 8px 6px 8px 6px;
}
.participant-main {
  display: table;
  width: 100%;
  margin-bottom: 8px;
  table-layout: fixed;
}
.participant-img {
  display: table-cell;
  width: 220px;
  height: 220px;
  object-fit: cover;
  border: 1px solid #0f0;
  background: #000;
  vertical-align: middle;
}
.participant-info {
  display: table-cell;
  vertical-align: middle;
  padding-left: 18px;
  text-align: left;
  min-width: 120px;
}
.participant-name {
  font-size: 20px;
  color: #0f0;
  margin: 0 0 4px 0;
  font-weight: bold;
  font-family: 'Courier New', Courier, monospace;
}
.participant-country {
  color: #0a0;
  font-size: 14px;
  margin-bottom: 2px;
  font-family: 'Courier New', Courier, monospace;
}
.participant-details {
  list-style: square inside;
  padding: 0;
  margin: 0 0 8px 0;
  font-family: 'Courier New', Courier, monospace;
}
.participant-details li {
  color: #0f0;
  background: none;
  border: none;
  margin-bottom: 2px;
  padding: 0;
  font-size: 14px;
}
.participant-details strong {
  color: #7fff7f;
  font-weight: bold;
}
.participant-objective {
  background: #020;
  border: 1px dotted #0f0;
  padding: 8px 6px;
  color: #aaffaa;
  margin-top: 8px;
  font-size: 14px;
  font-family: 'Courier New', Courier, monospace;
}
.participant-objective h3 {
  color: #0f0;
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 15px;
  font-family: 'Courier New', Courier, monospace;
}
@media (max-width: 600px) {
  .participant-profile {
    padding: 4px 1vw 6px 1vw;
    max-width: 99vw;
  }
  .participant-main {
    display: block;
  }
  .participant-img {
    display: block;
    width: 140px;
    height: 140px;
    margin: 0 auto 8px auto;
  }
  .participant-info {
    display: block;
    padding-left: 0;
    text-align: center;
    min-width: 0;
  }
  .participant-name {
    font-size: 16px;
  }
  .participant-details li {
    font-size: 13px;
  }
  .participant-objective {
    padding: 7px 4px;
    font-size: 13px;
  }
}
