/* CSS Variables – change them to tweak the theme */
:root {
  --chat-bg: #37475e;
  --background: #222;
  --panels: #222;
  --user-bubble: #dcf8c6;
  --bot-bubble: #e5e5ea;
  --border-radius: 18px;
  --font-size: 15px;
  --chat-text: #222;
  --text-color: white;
  --button-color: limegreen;
  --button-hover: green;
}



/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  /* Disable transitions during initial load */
.preload * {
    transition: none !important;
  }
  
  html, body {
    height: 100%;
    font-family: Arial, sans-serif;
  }
  
  /* Layout */
  #app {
    display: flex;
    height: 100vh;
  }
  
  /* Sidebar (default = CLOSED) */
  #sidebar {
    background: var(--panels);
    color: var(--text-color);
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  /* OPEN state */
  #sidebar.active {
    width: 250px;
    padding: 20px;
  }
  
  /* Sidebar header */
  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  #collapse-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
  }
  
  /* Links */
  #sidebar nav a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    margin: 10px 0;
  }
  
  /* Main */
  #main {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  /* Top bar */
  #topbar {
    height: 60px;
    background: var(--panels);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    border-bottom: 1px solid var(--text);
    color: var(--text-color);
  }
  
  #menu-btn {
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
  }
  
  /* Content */
  #content {
    flex: 1;
    /* padding: 20px; */
  }
  
  /* Desktop: sidebar OPEN by default */
  @media (min-width: 769px) {
    #sidebar {
      width: 250px;
      padding: 20px;
    }
  
    #sidebar:not(.active) {
      width: 0;
      padding: 0;
    }
  }
  
  /* Mobile: sidebar is overlay */
  @media (max-width: 768px) {
    #sidebar {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      z-index: 1000;
    }
  }

h1 a {
  color: var(--text-color);
  text-decoration: none;
  margin-right: 10px;
}