/* ==========================
   GLOBAL STYLES
========================== */
* {
  box-sizing: border-box; /* Ensures padding/border don't increase element width/height */
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif; /* Base font */
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh; /* Full height layout */
}

/* ==========================
   USER MESSAGE COLOR SCHEME
========================== */
.blue{
  color: blue;
      text-align: right;
      padding-right: 20px; /* Adjust padding as needed */ 
}
.orange{
  color: orange;
      text-align: right;
      padding-right: 30px; /* Adjust padding as needed */ 
}
.green{
  color: green;
      text-align: right;
      padding-right: 40px; /* Adjust padding as needed */ 
}
.red{
  color: red;
      text-align: right;
      padding-right: 50px; /* Adjust padding as needed */   
}
.black{
  color:black;
      text-align: right;
      padding-right: 60px; /* Adjust padding as needed */   
}
.darkmagenta{
  color:darkmagenta;
      text-align: right;
      padding-right: 70px; /* Adjust padding as needed */   
}
.dodgerblue{
  color:dodgerblue;
      text-align: right;
      padding-right: 80px; /* Adjust padding as needed */   
}

/* ==========================
   HEADER
========================== */
header {
  background-color: #2d3e50; /* Dark blue-gray */
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
}

/* ==========================
   APP LAYOUT
========================== */
.app-container {
  display: flex;
  flex: 1;
  overflow: hidden; /* Prevent content overflow */
}

/* ==========================
   SIDEBAR (LEFT PANEL)
========================== */
.sidebar {
  width: 250px;
  background-color: #f4f4f4; /* Light gray */
  border-right: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

/* Chat list inside the sidebar */
.chat-list {
  flex: 1;
  overflow-y: auto;
  margin-top: 1rem;
}

/* Individual chat item styling */
.chat-item {
  background-color: white;
  border: 1px solid #ddd;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-item:hover {
  background-color: #eaeaea; /* Highlight on hover */
}

/* Placeholder text when no chats exist */
.empty-state {
  text-align: center;
  color: #888;
  margin-top: 2rem;
  font-style: italic;
}

/* Button to create a new chat */
.new-chat-btn {
  padding: 0.5rem;
  background-color: #2d3e50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 1rem;
}

/* ==========================
   CHAT AREA (RIGHT PANEL)
========================== */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

/* Container for displaying chat messages */
.messages-container {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fafafa; /* Very light gray */
}

/* ==========================
   MESSAGE INPUT FORM
========================== */
.message-form {
  display: flex;
}

/* Text input inside the form */
.message-form input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px;
}

/* Send button inside the form */
.message-form button {
  padding: 0.5rem 1rem;
  background-color: #2d3e50;
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}
