/* --- AI CHATBOX STYLES --- */
#chat-container {
  position: fixed;
  right: 20px;
  top: 100px;
  width: 320px;
  height: 550px;
  background: rgba(10, 20, 40, 0.85);
  border: 1px solid #00ffff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  color: white;
  z-index: 1000;
  font-family: monospace;
}
#chat-header {
  background: #00ffff;
  color: black;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  border-radius: 10px 10px 0 0;
}
#chat-history {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  font-size: 14px;
}
.user-msg { color: #00ff00; margin-bottom: 10px; text-align: right; }
.ai-msg { color: #00ffff; margin-bottom: 10px; text-align: left; border-left: 2px solid #00ffff; padding-left: 8px;}
#chat-input-area {
  display: flex;
  padding: 10px;
  border-top: 1px solid #00ffff;
}
#user-input {
  flex-grow: 1;
  background: black;
  color: white;
  border: 1px solid #555;
  padding: 8px;
  border-radius: 5px;
}
#chat-input-area button {
  background: #00ffff;
  color: black;
  border: none;
  padding: 8px 15px;
  margin-left: 5px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}
/* --- CHATBOX MINIMIZE STATE --- */
#chat-container.minimized {
  height: auto; /* Shrinks the box to just fit the header */
}

#chat-container.minimized #chat-history,
#chat-container.minimized #chat-input-area {
  display: none; /* Completely hides the chat area and input bar */
}

