body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #0f0f0f;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
  }
  
  .banner {
    background-color: #151515;
    padding: 1em 2em;
    border-bottom: 1px solid #333;
  }
  
  .back-link {
    color: #66ccff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
  }
  
  .container {
    padding: 2em;
    max-width: 800px;
    margin: 0 auto;
  }
  
  h1 {
    color: #66ccff;
    margin-bottom: 0.5em;
  }
  
  .subtitle {
    color: #ccc;
    margin-bottom: 2em;
  }
  
  .chat-container {
    background-color: #1a1a1a;
    padding: 1.5em;
    border-radius: 8px;
  }
  
  .chat-log {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #444;
    padding: 1em;
    border-radius: 6px;
    margin-bottom: 1em;
    background-color: #121212;
  }
  
  .chat-log p {
    margin: 0.5em 0;
    line-height: 1.4;
  }
  
  .input-container {
    display: flex;
    gap: 0.5em;
  }
  
  #userInput {
    flex-grow: 1;
    padding: 0.8em;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
  }
  
  #sendBtn {
    padding: 0.8em 1.2em;
    background-color: #66ccff;
    color: #0f0f0f;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
  }
  
  #sendBtn:hover {
    background-color: #4fb8eb;
  }
  .sources {
  font-size: 0.9em;
  color: #ccc;
  margin-top: 0.5em;
}

.sources ul {
  padding-left: 1.2em;
}

.sources li {
  list-style: disc;
  margin-bottom: 0.3em;
}
/* === Side-by-side layout container === */
.layout {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  min-height: calc(100vh - 60px); /* adjusts for banner/header */
}

/* === Left column: Chat interface === */
.chat-section {
  flex: 2;
  padding: 2em;
  max-width: 65%;
}

/* === Right column: Sources panel === */
.sources-panel {
  flex: 1;
  padding: 2em;
  background-color: #1a1a1a;
  border-left: 1px solid #333;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

.sources-panel h2 {
  color: #66ccff;
  font-size: 1.4em;
  margin-top: 0;
}

.source-list {
  list-style: disc;
  padding-left: 1.2em;
}

.source-list li {
  margin-bottom: 0.5em;
  font-size: 0.9em;
  color: #ccc;
}

.source-title {
  font-weight: bold;
  color: #66ccff;
}

.source-title:hover {
  text-decoration: underline;
}

.law-listing {
  margin: 2em;
  padding: 1em 2em;
  background-color: #1a1a1a;
  border-top: 1px solid #333;
  border-radius: 8px;
  color: #ccc;
  font-size: 1em;
}

.law-listing h3 {
  color: #66ccff;
  margin-bottom: 0.5em;
}

.law-listing ul {
  list-style: disc;
  padding-left: 1.5em;
}

.law-listing li {
  margin-bottom: 0.3em;
}


@media (max-width: 960px) {
  .layout {
    flex-direction: column;
  }
  .chat-section, .sources-panel {
    max-width: 100%;
  }
}
