/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  image-rendering: pixelated;
}

/* ===== BODY / DESKTOP ===== */
body {
  font-family: "Press Start 2P", "Courier New", monospace;
  background-color: #327375;
  color: #fff;
  cursor: url(https://qomp.club/assets/images/cursor.svg), auto;
  overflow: hidden;
}

.desktop {
  min-height: 100vh;
  background-color: #327375;
  padding: 20px 20px 50px;
  position: relative;
}

.start-button {
  background: silver;
  color: #000;
  border: 2px outset #C0C0C0;
  padding: 6px 24px;
  font-family: "Press Start 2P", monospace;
  font-size: 14px;
  cursor: pointer;
  height: 36px;
}

/* ===== MAIN WINDOW ===== */
.main-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95vw;
  max-width: 1200px;
  height: 85vh;
  background-color: #c0c0c0;
  border: 2px outset #fff;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.window-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: white;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
  cursor: move;
}

.window-title {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== TOOLBAR ===== */
.toolbar {
  background-color: #c0c0c0;
  border-bottom: 2px solid #808080;
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.toolbar-button {
  background: silver;
  color: #000;
  border: 2px outset #C0C0C0;
  padding: 6px 12px;
  font-size: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.toolbar-button:active {
  border-style: inset;
}

/* ===== SEARCH ===== */
.search-container {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.search-container input {
  padding: 4px 8px;
  border: 2px inset #fff;
  font-family: "Courier New", monospace;
  font-size: 11px;
  width: 150px;
}

/* ===== CONTENT ===== */
.window-content {
  flex: 1;
  background-color: #fff;
  overflow: auto;
  padding: 4px;
}

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  background-color: #fff;
}

th,
td {
  border: 1px solid #808080;
  padding: 6px;
  text-align: left;
  color: #000;
}

th {
  background-color: #c0c0c0;
  font-weight: bold;
  border: 2px outset #fff;
}

tr:nth-child(even) {
  background-color: #f0f0f0;
}

tr:hover {
  background-color: #000080;
}

tr:hover td {
  color: #fff;
}

/* ===== ACTIONS ===== */
.actions {
  display: flex;
  gap: 4px;
}

.actions button {
  background: silver;
  color: #000;
  border: 2px outset #C0C0C0;
  padding: 3px 8px;
  font-size: 9px;
  cursor: pointer;
  font-family: "Press Start 2P", monospace;
}

.actions button:active {
  border-style: inset;
}

.actions button.delete {
  background: #c00000;
  color: #fff;
}

/* ===== MESSAGES ===== */
.message {
  padding: 8px;
  margin: 8px;
  border: 2px solid;
  font-size: 10px;
}

.error {
  background-color: #fcc;
  border-color: #f00;
  color: #c00;
}

.success {
  background-color: #cfc;
  border-color: #0f0;
  color: #060;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}
