/* style.css — Clean, Pro & Responsive */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f4f4;
  color: #333;
  padding: 20px;
  display: flex;
  min-height: 100vh;
  gap: 20px;
}

#left {
  flex: 2;
  display: flex;
  flex-direction: column;
}

#right {
  flex: 1;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
}

h2, h3 {
  margin-bottom: 10px;
}

#chatbox {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  padding: 10px;
  height: 300px;
  overflow-y: auto;
  margin-bottom: 10px;
}

#input,
#ai-name,
#gameName {
  width: calc(100% - 20px);
  padding: 10px;
  margin: 5px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

#send,
#setNameBtn,
button {
  padding: 10px 15px;
  font-size: 15px;
  background-color: #007bff;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  margin: 5px 0;
  transition: 0.2s;
}

button:hover {
  background-color: #0056b3;
}

.user, .bot {
  padding: 6px;
  margin-bottom: 5px;
  border-radius: 4px;
  white-space: pre-line;
}

.user {
  background: #e0ffe0;
  color: #2d572c;
}

.bot {
  background: #e7f0ff;
  color: #0d3b66;
}

.pink-bot {
  background: #ffe0f0;
  color: #b00074;
}

textarea {
  width: 100%;
  height: 100px;
  resize: vertical;
  margin-bottom: 10px;
  font-family: monospace;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

iframe {
  width: 100%;
  height: 200px;
  border: 1px solid #ccc;
  margin-top: 10px;
  background: white;
}

.code-editor {
  display: none;
  margin-top: 15px;
}

#convoList {
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  margin-bottom: 20px;
  display: none;
}

#convoList div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

#convoList div:last-child {
  border-bottom: none;
}

@media screen and (max-width: 800px) {
  body {
    flex-direction: column;
  }

  #left, #right {
    width: 100%;
    padding: 0;
  }
}
