/* GENERAL PAGE LAYOUT */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5;
}

/* MAIN CONTAINER */
.layout {
  display: flex;
  height: 100vh; /* Full screen height */
}

/* LEFT SIDE */
.left-panels {
  width: 60%;
  display: flex;
  flex-direction: column;
  
  /* 🔥 IMPORTANT FIX: ensure non-zero width for AdSense */
  min-width: 300px;
}

.panel {
  flex: 1; /* Make each take equal height */
  background: #eee;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;

  /* 🔥 IMPORTANT FIX: ensure ads have measurable width */
  min-width: 250px;
}

/* RIGHT SIDE: CHAT */
.chat-container {
  width: 40%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-left: 2px solid #ddd;
  box-shadow: -2px 0 6px rgba(0,0,0,0.05);
}

/* CHAT HEADER */
.chat-header {
  padding: 1rem;
  font-size: 1.3rem;
  font-weight: bold;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
}

/* CHAT MESSAGES */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  max-width: 80%;
}

/* BOT MESSAGE */
.message.bot {
  background: #e6f0ff;
  align-self: flex-start;
}

/* USER MESSAGE */
.message.user {
  background: #d1ffd6;
  align-self: flex-end;
}

/* INPUT BAR */
.chat-input {
  display: flex;
  padding: 1rem;
  border-top: 1px solid #ddd;
  background: #fafafa;
}

.chat-input input {
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-right: 0.5rem;
}

.chat-input button {
  padding: 0.75rem 1.2rem;
  border: none;
  background: #4a76ff;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.chat-input button:hover {
  background: #335df5;
}
