:root {
    --bg-main: #2b1f1e;
    --bg-sidebar: #4c4341;
    --bg-input: #3f3331;
    --text-primary: #e5dbd6;
    --text-secondary: #cbb8ae;
    --bubble-user: #ded3cd;
    --bubble-bot: #5d4a46;
    --accent: #cbb8ae;
    --rounded: 16px;
  }
  
  body.light-theme {
    --bg-main: #f3ece6;
    --bg-sidebar: #efe8e3;
    --bg-input: #e1d7d2;
    --text-primary: #3b2f2c;
    --text-secondary: #715c56;
    --bubble-user: #ffffff;
    --bubble-bot: #cab6ae;
    --accent: #a18c82;
  }
  
  body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Segoe UI', sans-serif;
  }
  
  .navbar {
    background-color: var(--bg-sidebar);
    color: var(--text-primary);
    border-bottom: 1px solid #444;
    font-family: 'Georgia', serif;
  }
  
  .sidebar {
    width: 280px;
    background: linear-gradient(to bottom, #999999 0%, #999999 60px, #6f6f6f 10%);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1rem;
    border-right: 1px solid #444;
    border-radius: 0 var(--rounded) var(--rounded) 0;
    border-top-right-radius: var(--rounded);
    border-bottom-right-radius: var(--rounded);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    box-sizing: border-box;
    border: 8px solid #574949;
    border-left: none;
    z-index: 100;
  }

  .sidebar h6 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }
  
  #chatList > div {
    padding: 0.7rem 1rem;
    border-radius: var(--rounded);
    background-color: #4c3a3f;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: 0.2s;
    color: var(--text-primary);
  }
  #chatList > div:hover {
    background-color: #665058;
  }
  #chatList > div.active {
    background-color: var(--bg-main);
    border: 1px solid var(--accent);
  }
  
  .bg-chat-background {
    background-color: var(--bg-main);
  }
  
  #chatMessages {
    padding: 1rem 2.5rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #777 transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 1500px;
  }
  
  .message {
    max-width: 75%;
    margin-bottom: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--rounded);
    font-size: 0.95rem;
    line-height: 1.4;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    align-self: center;
  }
  
  .user-message {
    background-color: #EBECE6DE;
    align-self: flex-end;
    color: var(--text-primary);
  }
  
  .bot-message {
    background-color: #574949;
    align-self: flex-start;
    color: var(--text-primary);
  }
  
  .bg-input-area {
    background-color: #EBECE6DE;
    border-top: 1px solid var(--accent);
    border-radius: 0 0 var(--rounded) var(--rounded);
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    max-width: 1100px;
    width: 100%;
    min-height: 80px;
    font-size: 1.15rem;
    padding: 1.2rem 2rem;
  }
  
  #messageForm {
    background-color: #3f3035;
    padding: 0.5rem 1rem;
    border-radius: var(--rounded);
    display: flex;
    align-items: center;
  }
  
  #messageInput {
    background: transparent;
    border: none;
    color: var(--text-primary);
    resize: none;
    width: 100%;
    font-size: 0.95rem;
  }
  #messageInput:focus {
    outline: none;
  }
  
  #fileInput + label,
  #messageForm button[type="submit"] {
    margin-left: 0.5rem;
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
  }
  
  #messageForm button[type="submit"] {
    background-color: #6c4e57;
    color: white;
    border-radius: 50%;
    padding: 0.4rem 0.7rem;
  }
  