/* ==========================================================
   LEVEL 11 + LEVEL 12 — GLOBAL DARK THEME
   (NO forced display:none — visibility controlled ONLY by .hidden)
========================================================== */

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

/* Visibility control — this is the ONLY rule that hides screens */
.hidden {
  display: none;
}

/* When not hidden, screens naturally display as block */
.level11-screen:not(.hidden),
.level12-screen:not(.hidden) {
  display: block;
}

/* ==========================================================
   TITLES
========================================================== */

.level11-screen .title,
.level12-screen .title {
  font-size: 32px;
  margin-bottom: 20px;
  color: #fff;
}

/* ==========================================================
   LEVEL 12 HEADER (Title + Home Button)
========================================================== */

.level12-screen .level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.level12-screen .homeBtn {
  background: #222;
  color: #fff;
  border: 1px solid #555;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

.level12-screen .homeBtn:hover {
  background: #333;
}

/* ==========================================================
   CONVERSATION WINDOW (Shared by L11 + L12)
========================================================== */

.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 (Shared by L11 + L12)
========================================================== */

.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 (Shared by L11 + L12)
========================================================== */

.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;
}

/* ==========================================================
   LEVEL 11 ONLY — 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;
}
