/* ==========================================================
   LEVEL 11 — GLOBAL DARK THEME
========================================================== */

.level11-screen {
  background: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  padding: 40px;
  display: none;
}

.level11-screen:not(.hidden) {
  display: block;
}

/* Title (if you ever add one) */
.level11-screen .title {
  font-size: 32px;
  margin-bottom: 20px;
  color: #fff;
}

/* ==========================================================
   SCENARIO CARD
========================================================== */

.scenario-card {
  background: #111;
  border: 1px solid #444;
  padding: 18px 22px;
  border-radius: 10px;
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #ddd;
}

/* ==========================================================
   CONVERSATION WINDOW
========================================================== */

.conversation-container {
  background: #0d0d0d;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 20px;
  height: 55vh;
  overflow-y: auto;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Scrollbar styling */
.conversation-container::-webkit-scrollbar {
  width: 8px;
}
.conversation-container::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}
.conversation-container::-webkit-scrollbar-track {
  background: #1a1a1a;
}

/* ==========================================================
   MESSAGE BUBBLES (Corrected to match JS)
========================================================== */

.system-message,
.user-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.5;
  font-size: 1.1rem;
}

/* System bubble */
.system-message {
  background: #222;
  border: 1px solid #444;
  align-self: flex-start;
  color: #eee;
}

/* User bubble */
.user-message {
  background: #2a4b8d;
  border: 1px solid #3a5bb0;
  align-self: flex-end;
  color: #fff;
}

/* ==========================================================
   INPUT AREA
========================================================== */

.conversation-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.conversation-textbox {
  flex: 1;
  background: #111;
  border: 1px solid #444;
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 1.1rem;
  resize: none;
  height: 70px;
  line-height: 1.4;
}

.conversation-textbox:focus {
  outline: none;
  border-color: #666;
}

/* Send button */
.sendBtn {
  background: #222;
  color: #fff;
  border: 1px solid #555;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

.sendBtn:hover {
  background: #333;
}

/* ==========================================================
   END-OF-SCENARIO CONTROLS
========================================================== */

#l11EndControls {
  margin-top: 25px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

#l11EndControls .iconBtn {
  background: #222;
  color: #fff;
  border: 1px solid #555;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}

#l11EndControls .iconBtn:hover {
  background: #333;
}
.kanaBtn {
  margin-right: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #aaa;
  background: #eee;
  cursor: pointer;
}
.kanaBtn.active {
  background: #4a90e2;
  color: white;
}
