html, body {
    margin: 0;
    padding: 0;
    height: 100%;
  }
  #map {
    height: 100%;
    width: 100%; /* Ensure width is also set */
    margin: 0; /* Add explicitly */
    padding: 0; /* Add explicitly */
    z-index: 1;
    position: absolute;
    top:0;
    left: 0;
  }
  /* Styling for the cog icon */
  #cog {
    position: absolute;
    right: -25px; /* Adjust position so it's outside the autocomplete bar */
    top: 50%;
    transform: translateY(-55%);
    cursor: pointer;
    height: 20px; /* half the height of the autocomplete bar */
    width: 20px;
    fill: gray
  }


  #advanced-options {
    display: none;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 15px;
    margin: 10px auto 0;
    width: 95%; /* Make it wider */
    max-width: 580px; /* Adjust max-width if needed */
    font-family: 'Noto Sans', sans-serif;
    text-align: left; /* Align labels left */
}
#advanced-options h4 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    color: #555;
}
.adv-option-group {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.adv-option-group:last-of-type {
  border-bottom: none;
  margin-bottom: 10px;
}
.adv-option-group label {
  display: block; /* Make label take full width */
  margin-bottom: 8px;
  font-size: 0.9em;
  color: #333;
  font-weight: bold;
}
.slider-group input[type="range"] {
  width: 100%; /* Make slider take full width */
  height: 8px;
  cursor: pointer;
  appearance: none; /* Override default look */
  background: #ddd;
  border-radius: 5px;
  outline: none;
}
.slider-group input[type="range"]::-webkit-slider-thumb {
appearance: none;
width: 18px;
height: 18px;
background: #10a37f; /* Use your theme color */
border-radius: 50%;
cursor: pointer;
}
.slider-group input[type="range"]::-moz-range-thumb {
width: 18px;
height: 18px;
background: #10a37f;
border-radius: 50%;
cursor: pointer;
border: none;
}
.slider-group output {
  display: inline-block; /* Keep it next to label text */
  font-weight: normal;
  color: #10a37f;
  min-width: 30px; /* Give it some space */
  text-align: right;
}
.status-group #status-checkboxes {
  display: grid; /* Use grid for neat columns */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive columns */
  gap: 5px 10px; /* Spacing between checkboxes */
  font-size: 0.85em;
  margin-top: 5px;
  padding-left: 10px;
}
.status-group #status-checkboxes div {
  display: flex;
  align-items: center; /* Align checkbox and label */
}
.status-group #status-checkboxes input[type="checkbox"] {
  margin-right: 6px;
  cursor: pointer;
}
.status-group #status-checkboxes label {
  margin-bottom: 0; /* Override default label margin */
  font-weight: normal;
  cursor: pointer;
  color: #444;
}
.status-group .select-all-status {
  display: flex;
  align-items: center;
  margin-bottom: 8px; /* Add some space below it */
  padding-left: 5px; /* Align slightly */
}
.status-group .select-all-status input[type="checkbox"] {
  margin-right: 6px;
  cursor: pointer;
}
.status-group .select-all-status label {
  margin-bottom: 0;
  font-weight: bold; /* Make it bold */
  cursor: pointer;
  color: #333;
  font-size: 0.9em;
}

#submit-advanced {
  display: block; /* Make button take full width */
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background-color: #10a37f;
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#submit-advanced:hover {
  background-color: #0e8a68;
}

  .set-scope-panel {
    position: absolute;
    top: 20px;
    left: 55%;
    font-family: 'Noto Sans', sans-serif;
    transform: translateX(-50%);
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 950; /* Below chat container/resizer */
    width: 600px;
  }
  .radar-autocomplete-results-list{
    font-family: 'Noto Sans', sans-serif; 
  }
  #chat-container {
    position: fixed;
    left: 20px;
    top: 20px;
    width: 30%;
    min-width: 30%; /* Optional: absolute minimum in pixels */
    max-width: 50vw; /* MAXIMUM width */
    height: 90%;
    background: #ffffffe5;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    overflow-x: hidden; /* Hide horizontal overflow */
    z-index: 1000; /* Ensure it sits above other elements */
    border-radius: 30px; /* Rounded container edges */
    padding: 30px 0 30px 30px; /* Padding on top, bottom, and left */
    font-family: 'Noto Sans', sans-serif;
    transition: width 0.3s ease-out;
  }
  #resizer {
    position: fixed;
    top: 50px; /* Match chat container top */
    left: calc(30% + 20px); /* Adjust based on initial chat width + left */
    width: 8px; /* Width of the handle */
    height: 90%; /* Match chat container height */
    background-color: #ddd; /* Visible handle color */
    border-left: 1px solid #bbb;
    border-right: 1px solid #bbb;
    cursor: col-resize; /* Horizontal resize cursor */
    z-index: 1001; /* Above chat, below modals */
    display: none; /* Hidden by default, shown when conversation is active */
    transition: left 0.3s ease-out; /* Match chat container transition */
  }
  #resizer:hover {
      background-color: #ccc;
  }
  #start-conversation {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
    font-size: 1.5em;
    text-align: center;
    font-family:'Noto Sans', sans-serif;
  }
  #conversation {
    display: none;
    flex-direction: column;
    height: 100%;
    font-family:'Noto Sans', sans-serif;
  }
/* Chat History Specific Styles */
#chat-history {
  flex-grow: 1;
  padding: 10px 20px 10px 10px; /* Adjusted padding */
  overflow-y: auto;
  border-bottom: 1px solid #ddd;
  font-family:'Noto Sans', sans-serif;
  display: flex; /* Use flexbox for messages */
  flex-direction: column; /* Stack messages vertically */
}
.message {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 85%; /* Limit message width */
  word-wrap: break-word; /* Wrap long words */
  line-height: 1.4;
  font-size: 0.95em;
}
.message.user {
  background-color: #dcf8c6; /* Light green for user */
  align-self: flex-end; /* Align user messages to the right */
  border-bottom-right-radius: 5px; /* Slightly different rounding */
  margin-left: 15%; /* Push from left */
}

.message.assistant {
  background-color: #f1f0f0; /* Light gray for assistant */
  align-self: flex-start; /* Align assistant messages to the left */
  border-bottom-left-radius: 5px; /* Slightly different rounding */
  margin-right: 15%; /* Push from right */
}

/*.message .message-content {
    Basic text content 
}*/

/* Chart container */
.chart-container {
  /* background-color: #ffffff; */ /* Optional background for chart area */
  padding: 5px;
  border-radius: 5px;
  margin-top: 10px;
  height: 300x; /* Example max height */
  min-height: 200px;
  max-height: 400px;
  width: 100%; /* Ensure it tries to fill the message width */
  position: relative; /* CRITICAL: Needed for canvas absolute positioning used by Chart.js */
}
.chart-container canvas {
    max-width: 100%;
    display: block;
}

/* SQL Info Display Adjustment */
.sql-info {
  background-color: #f0f8ff; /* Lighter AliceBlue */
  border: 1px solid #e0efff;
  border-radius: 5px;
  margin-top: 10px;
  padding: 5px 10px;
  font-size: 0.85em;
}
/* Optional: Styling for <details>/<summary> if used for SQL */
.sql-info details > summary {
  cursor: pointer;
  font-weight: bold;
  color: #334;
  padding: 3px 0;
}
.sql-info details[open] > summary {
  margin-bottom: 5px;
}

.sql-info pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 5px 0;
  padding: 8px;
  background-color: #eef; /* Lighter background */
  border-radius: 4px;
  overflow-x: auto;
  max-height: 150px; /* Limit height of SQL display */
}
.sql-info code {
 font-family: 'Courier New', Courier, monospace;
}

/* DataTables Container */
.datatable-container {
    margin-top: 15px;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow-x: auto;
}
.datatable-container p { /* Style for the "Detailed Results:" label */
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 0.9em;
}
.dt-layout-cell {
  max-height: '300px';
}
/* DataTables specific overrides (Optional) */
/* Ensure table width fits container */
table.dataTable {
  width: 100% !important; /* Force width */
  margin: 0 auto;
}
/* Adjust font size within table */
table.dataTable td, table.dataTable th {
  font-size: 0.85em; /* Smaller font in table */
  padding: 6px 8px; /* Adjust cell padding */
}
/* Style DataTables controls if needed */
.dataTables_wrapper .dataTables_filter input {
  margin-left: 0.5em;
  display: inline-block;
   width: auto;
}
.dataTables_wrapper .dataTables_length select {
   display: inline-block;
   width: auto;
   margin: 0 0.5em;
}
table.dataTable tbody td.td-scrollable {
  max-height: 100px; /* <<< Adjust max height as needed (e.g., 5-6 lines) */
  overflow-y: auto; /* Add vertical scrollbar when content exceeds max-height */
  white-space: normal; /* Allow text wrapping (default usually) */
  word-wrap: break-word; /* Break long words if needed */
  display: block; /* Needed for max-height and overflow to work reliably on TDs */
  /* Optional: Add some padding inside the cell */
  /* padding: 4px 6px; */
}
table.dataTable tbody td.td-scrollable::-webkit-scrollbar {
  width: 6px;
}
table.dataTable tbody td.td-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
table.dataTable tbody td.td-scrollable::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 3px;
}
table.dataTable tbody td.td-scrollable::-webkit-scrollbar-thumb:hover {
  background: #888;
}

  /* Chat input container: aligns input and send button in a row */
  #chat-input-container {
    display: flex;
    align-items: center;
    margin: 10px;
  }
  /* Chat text input styling (similar to ChatGPT) */
  #chat-input {
    flex-grow: 1;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #d1d5da;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
  }
  #chat-input:focus {
    border-color: #6a737d;
  }
  /* Send button styled as a circle with a send icon */
  #chat-send {
    margin-left: 10px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background-color: #10a37f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  #chat-send:hover {
    background-color: #0e8a68;
  }
  .set-scope-panel.disabled {
    opacity: 0.6;
  }
  /* Transaction count box styling */
  #transaction-count {
    width: 60%;
    margin: 5px auto; /* 5px on top, auto centers horizontally */
    text-align: center;
    font-size: 0.9em;
    color: #333;
  }
  #profile-section {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1005; /* Ensure it's above map but below modals */
  }
  #profile-button {
      background: white;
      border: 1px solid #ccc;
      border-radius: 50%; /* Make it circular */
      width: 36px;
      height: 36px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  }
  #profile-button:hover {
      background-color: #f0f0f0;
  }

  #profile-dropdown {
      display: none; /* Hidden by default */
      position: absolute;
      top: 45px; /* Position below button */
      right: 0;
      background-color: white;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      min-width: 160px;
      z-index: 1006; /* Above profile button */
      border: 1px solid #eee;
      overflow: hidden; /* Ensures border-radius applies to items */
      font-family:'Noto Sans', sans-serif;
  }
  #profile-dropdown ul {
      list-style: none;
      margin: 0;
      padding: 5px 0; /* Padding top/bottom */
  }
  #profile-dropdown li {
      padding: 10px 20px;
      cursor: pointer;
      font-size: 0.95em;
      font-family:'Noto Sans', sans-serif;
  }
  #profile-dropdown li:hover {
      background-color: #f5f5f5;
  }

  /* Modal styling */
  #modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    font-family:'Noto Sans', sans-serif;
  }
  .modal-overlay-style {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    font-family:'Noto Sans', sans-serif;
  }
  .modal-content-style {
    background: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 450px; /* Adjust as needed */
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }
  .modal-content-style h2 {
      margin-top: 0;
      margin-bottom: 15px;
  }
  .modal-content-style p {
      margin-bottom: 10px;
      line-height: 1.5;
      text-align: left; /* Align profile details left */
  }
  #profile-modal-content p:last-of-type {
      margin-bottom: 25px; /* More space before buttons */
  }
  #delete-confirm-modal-content p {
      margin-bottom: 25px;
      text-align: center; /* Center confirm message */
  }
  #modal-error {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    font-family:'Noto Sans', sans-serif;
  }
  #modal {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    font-family:'Noto Sans', sans-serif;
  }
  #modal h2 {
    margin-top: 0;
    font-family:'Noto Sans', sans-serif;
  }
  /* Container for modal buttons */
  .modal-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
  }
  .modal-buttons button {
    flex: 1;
    margin: 0 10px;
    padding: 10px;
    border-radius: 8px;
    border-color: gray;
    font-size: 1em;
    cursor: pointer;
    font-family:'Noto Sans', sans-serif;
  }
  #welcome-screen, #denial-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Vertical center */
    justify-content: center; /* Horizontal center */
    z-index: 3000; /* Ensure it's on top */
    font-family: 'Noto Sans', sans-serif;
  }

  .content-box {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
  }

  .content-box h1 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
  }
   .content-box h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
  }
  .content-box p {
      margin-bottom: 25px;
      color: #555;
      line-height: 1.6;
  }

  .content-box button {
    padding: 12px 25px;
    font-size: 1.1em;
    background-color: #10a37f;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .content-box button:hover {
    background-color: #0e8a68;
  }

  /* Denial Screen Specifics */
  #denial-screen input[type="text"] {
    width: 80%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
  }
  #denial-error {
      color: red;
      margin-top: 15px;
      min-height: 1.2em; /* Reserve space */
  }
  #main-app-container {
    display: none; /* Keep this */
    height: 100%;
    width: 100%;
    margin: 0; /* Add explicitly */
    padding: 0; /* Add explicitly */
    position: relative; /* Good for positioning children like the scope panel */
    }
  #loading-indicator {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.8);
        display: none; /* Hidden by default */
        align-items: center;
        justify-content: center;
        z-index: 4000; /* Above everything */
        font-size: 1.5em;
        font-family: 'Noto Sans', sans-serif;
  }
   /* Specific Button Colors */
   .danger-button {
    background-color: #e53e3e; /* Red */
    color: white;
    border-color: #e53e3e;
}
.danger-button:hover {
    background-color: #c53030;
     border-color: #c53030;
}
.success-button {
   background-color: #48bb78; /* Green */
   color: white;
   border-color: #48bb78;
}
.success-button:hover {
   background-color: #38a169;
   border-color: #38a169;
}
/* Default OK/Cancel button style */
#profile-modal-ok, #delete-confirm-cancel {
   background-color: #eee;
   color: #333;
   border-color: #ccc;
}
#profile-modal-ok:hover, #delete-confirm-cancel:hover {
   background-color: #ddd;
   border-color: #bbb;
}
.error-message-style {
     color: red;
     margin-top: 15px;
     min-height: 1.2em;
     text-align: center;
     font-size: 0.9em;
}

/* Make active display relative for icon positioning */
#active-conversation-display {
  position: relative;
  padding-right: 30px;
  cursor: default;
  min-height: 1.5em;
   /* Ensure text doesn't overlap icon */
   overflow: hidden;
   white-space: nowrap;
   text-overflow: ellipsis;
}

#active-conversation-display.editing-active {
   cursor: text;
   /* Don't hide overflow when editing, allow input to show */
   overflow: visible;
   white-space: normal;
   text-overflow: clip;
}


/* Active Edit Icon */
.active-title-edit-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1em;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  display: inline-block; /* <<< MAKE SURE IT'S DISPLAYED BY DEFAULT */
}
#active-conversation-display:hover .active-title-edit-icon {
  opacity: 1;
}
/* Hide icon ONLY when actively editing */
#active-conversation-display.editing-active .active-title-edit-icon {
  display: none;
}

/* Edit container within the active display */
.active-title-edit-container {
  display: none; /* Hidden initially */
  width: 100%;
  padding: 2px 0;
}
#active-conversation-display.editing-active .active-title-edit-container {
  display: flex;
  align-items: center;
}

/*.active-title-input { /* Styles remain the same  }*/
.active-title-edit-buttons button {
  font-size: 0.9em;      /* Match list panel button size */
  padding: 4px 8px;     /* Match list panel button padding */
  margin-left: 5px;     /* Match list panel button margin */
  cursor: pointer;
  border-radius: 4px;   /* Match list panel button radius */
  border: 1px solid #ccc; /* Match list panel button border */
}
.active-title-edit-save {
  background-color: #4CAF50; /* Green */
  color: white;
  border-color: #4CAF50;
}
.active-title-edit-cancel {
  background-color: #f1f1f1; /* Light gray */
  /* Optional: add hover styles if desired */
}
.active-title-edit-save:hover {
  background-color: #45a049; /* Darker green on hover */
}
.active-title-edit-cancel:hover {
  background-color: #ddd; /* Darker gray on hover */
}

/* Hide original text span when editing */
#active-conversation-display.editing-active .active-title-text {
    display: none;
}
/* Conversation Panel Container - Positions the whole thing */
#conversation-panel-container {
  position: absolute;
  top: 70px;
  right: 0; /* Container sticks to the right edge of the viewport */
  height: calc(100% - 90px);
  width: 350px; /* Width of the panel when open */
  z-index: 1002;
  pointer-events: none; /* Allow clicks through */
  /* No overflow hidden here, let children control visibility */
}

/* Conversation List Panel - The actual sliding part */
#conversation-list-panel {
  position: absolute;
  top: 0;
  left: 0; /* Relative to container */
  width: 100%; /* Full width of container */
  height: 100%;
  background-color: #ffffffea;
  border: 1px solid #ccc;
  /* No border-right needed */
  border-radius: 10px 0 0 10px; /* Rounding on the left */
  box-shadow: -3px 0 6px rgba(0,0,0,0.15);
  /* SLIDING LOGIC */
  transform: translateX(100%); /* Start completely off-screen to the right */
  transition: transform 0.3s ease-in-out;
  pointer-events: auto; /* Interact with the panel */
  display: flex; /* Use flex for list */
  flex-direction: column;
  overflow: hidden; /* Clip list content inside panel */
}

/* Make the panel slide fully out when open */
#conversation-panel-container.open #conversation-list-panel {
    transform: translateX(0); /* Slide fully into view */
}

/* Conversation Tab - Positioned relative to the CONTAINER now */
#conversation-tab {
  position: absolute;
  /* Position based on the RIGHT edge of the container */
  right: 0px; /* Stick to the very right edge */
  top: 20px;  /* Adjust vertical position */
  width: 40px;
  height: 60px;
  background-color: #ffffffea;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 10px 0 0 10px; /* Rounding facing left */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out, background-color 0.2s ease; /* Animate 'right' property */
  pointer-events: auto; /* Tab is always clickable */
  z-index: 1002; /* Ensure tab is above the panel */
}
#conversation-panel-container.open #conversation-tab {
  right: 350px; /* Move left by the width of the panel */
}


/* Chevron Icon Styles - Logic based on .open class on CONTAINER */
.chevron-icon {
  fill: #333;
  transition: opacity 0.2s ease-in-out;
}
/* Default state (panel closed): Show left chevron, hide right */
#conversation-panel-container .chevron-left { display: block; }
#conversation-panel-container .chevron-right { display: none; }
/* Open state (panel open): Hide left chevron, show right */
#conversation-panel-container.open .chevron-left { display: none; }
#conversation-panel-container.open .chevron-right { display: block; }


/* Conversation List (UL) Styling */
#conversation-list {
  list-style: none;
  padding: 0; /* Remove padding */
  margin: 0;
  overflow-y: auto; /* Enable scrolling */
  flex-grow: 1; /* Take remaining space in panel */
  /* No absolute positioning needed now */
}

#conversation-list li {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  padding-right: 35px;
  cursor: pointer;
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.9em;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}
#conversation-list li:last-child {
  border-bottom: none;
}
#conversation-list li:hover {
  background-color: #f0f0f0;
}
#conversation-list li .conv-title {
  font-weight: bold;
  display: block; /* Ensure it behaves like a block for overflow */
  white-space: nowrap; /* Prevent wrapping */
  overflow: hidden; /* Hide overflow */
  text-overflow: ellipsis; 
  margin-bottom: 3px;
  color: #333;
}
#conversation-list li .conv-date {
  font-size: 0.8em;
  color: #666;
  display: block;
}
/* Style for loading/empty message */
#conversation-list li:only-child {
  cursor: default;
  text-align: center;
  color: #888;
  font-style: italic;
}
#conversation-list li:only-child:hover {
   background-color: transparent;
}
#toast-container {
  position: fixed;
  bottom: 20px; /* Position at bottom */
  right: 20px;
  z-index: 9999; /* Above everything */
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Align toasts to the right */
}

.toast-message {
  background-color: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 10px;
  font-family: 'Noto Sans', sans-serif; /* Use a common sans-serif */
  font-size: 0.9em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  opacity: 0; /* Start hidden */
  transform: translateX(100%); /* Start off-screen */
  transition: opacity 0.4s ease, transform 0.4s ease;
  max-width: 350px; /* Limit width */
}

.toast-message.show {
  opacity: 1;
  transform: translateX(0); /* Slide in */
}

/* Optional type-specific styles */
.toast-message.info { background-color: #2979ff; } /* Blue */
.toast-message.success { background-color: #4CAF50; } /* Green */
.toast-message.warning { background-color: #ff9800; } /* Orange */
.toast-message.error { background-color: #f44336; } /* Red */

.conv-edit-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.1em; /* Adjust icon size */
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
#conversation-list li:hover .conv-edit-icon {
  opacity: 1; /* Show clearly on hover */
}

/* Edit Mode UI (Hidden by default) */
.conv-edit-container {
  display: none; /* Hidden initially */
  width: calc(100% - 30px); /* Adjust width */
  padding: 5px 0;
}

.conv-title-input {
  width: calc(100% - 60px); /* Make space for buttons */
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.9em;
}

.conv-edit-buttons button {
  font-size: 0.9em;
  padding: 4px 8px;
  margin-left: 5px;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.conv-edit-save { background-color: #4CAF50; color: white; border-color: #4CAF50; }
.conv-edit-cancel { background-color: #f1f1f1; }

/* When in edit mode */
#conversation-list li.editing .conv-title,
#conversation-list li.editing .conv-date,
#conversation-list li.editing .conv-edit-icon {
  display: none; /* Hide original elements */
}
#conversation-list li.editing .conv-edit-container {
  display: block; /* Show edit container */
}
body.resizing {
  user-select: none; /* Prevent text selection during drag */
  cursor: col-resize !important; /* Force resize cursor everywhere */
}
body.resizing #chat-container,
body.resizing #resizer,
body.resizing .set-scope-panel {
    transition: none !important; /* Disable transitions during drag for direct feedback */
}
#subscription-required-screen{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  display: flex; /* Use flexbox for centering */
  align-items: center; /* Vertical center */
  justify-content: center; /* Horizontal center */
  z-index: 3000; /* Ensure it's on top */
  font-family: 'Noto Sans', sans-serif;
}
.content-box {
  font-family:'Noto Sans', sans-serif;
}