body {
  margin: 0;
  padding: 0;
  font-family: 'Tahoma', sans-serif;
  overflow: hidden;
  height: 100vh;
}

#desktop {
  width: 100vw;
  height: 100vh;
  background: url('https://i.imgur.com/Zk6TR5k.jpg') center/cover;
  position: relative;
}

#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, #245edb, #245edb 50%, #0046c4);
  display: flex;
  align-items: center;
  padding: 0 10px;
  z-index: 10001;
}

#start-button {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(to bottom, #3c843c, #1c541c);
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

#start-button img {
  width: 20px;
  height: 20px;
}

#clock {
  margin-left: auto;
  color: white;
  font-size: 14px;
}

#start-menu {
  position: fixed;
  bottom: 40px;
  left: 0;
  width: 300px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 5px 5px 0 0;
  box-shadow: 2px -2px 5px rgba(0,0,0,0.2);
  z-index: 10000;
}

.hidden {
  display: none;
}

.user-info {
  padding: 15px;
  background: linear-gradient(to bottom, #245edb, #0046c4);
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

#user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.programs {
  padding: 10px;
}

.program {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  cursor: pointer;
}

.program:hover {
  background: #e8e8e8;
}

.program img {
  width: 24px;
  height: 24px;
}

.window {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  min-width: 300px;
  min-height: 200px;
}

.title-bar {
  background: linear-gradient(to bottom, #0078d7, #0063b1);
  color: white;
  padding: 5px;
  display: flex;
  align-items: center;
  cursor: move;
}

.title {
  flex-grow: 1;
  padding: 0 5px;
}

.title-bar button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0 5px;
}

.title-bar button:hover {
  background: rgba(255,255,255,0.1);
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-window {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#chat {
  top: 20px;
  right: 20px;
  width: 300px;
  height: 600px;
}

.messages {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 10px;
}

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

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.message-content {
  flex-grow: 1;
}

.username {
  font-weight: bold;
  margin-bottom: 2px;
}

.input-form {
  display: flex;
  gap: 5px;
}

.input-form input {
  flex-grow: 1;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.input-form button {
  padding: 5px 10px;
  background: #0078d7;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.player-list {
  border-top: 1px solid #ccc;
  padding: 10px;
  background: #f5f5f5;
  max-height: 150px;
  overflow-y: auto;
}

.player-list-header {
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.players {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 4px;
}

.player:hover {
  background: #e8e8e8;
}

.player-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.player-name {
  font-size: 14px;
  color: #333;
}

.cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 9999;
  background-size: contain;
  background-repeat: no-repeat;
  transform-origin: center;
}

.cursor.spinning {
  animation: spin 0.5s linear;
}

.cursor::after {
  content: attr(data-username);
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 12px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.minimized {
  display: none;
}