:root {
  --background-color: #f0f0f0; /* Default light background */
  --text-color: #000; /* Default text color */
  --border-color: #ddd; /* Default border color */
  --input-background-color: #fff; /* Default input background */
  --input-border-color: #ddd; /* Default input border */
}

.dark-mode {
  --background-color: #1e1e1e; /* Dark background */
  --text-color: #c5c6c7; /* Light text */
  --border-color: #555; /* Darker border for dark mode */
  --input-background-color: #2d2d2d; /* Dark input background */
  --input-border-color: #555; /* Dark input border */
}

body, html {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column; /* Ensure full height and column layout */
  align-items: center;
  background-color: var(--background-color); /* Use variable */
  color: var(--text-color); /* Use variable */
}

.main-content {
  width: 100%;
  flex-grow: 1; /* Ensure it grows to fill space between header and footer */
  overflow-y: auto; /* Enable scrolling within the main content area */
  padding-top: 80px; /* Ensure enough space for fixed elements */
  padding-bottom: 60px; /* Ensure enough space for fixed elements at bottom */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

void-bar {
  position: fixed;
  bottom: 0;
  width: calc(100% - 20px);
  z-index: 10000; /* Ensure it's on top */
  background-color: var(--background-color); /* Ensure visibility */
}

void-logs {
  max-height: calc(100vh - 180px); /* Ensure it doesn't exceed the viewport height */
  overflow-y: auto; /* Enable scrolling within void-logs if content exceeds max-height */
  margin-bottom: 120px; /* Ensure enough space for fixed void-bar */
  position: relative;
}

#action-buttons {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000; /* Ensure it's on top */
  font-size: 24px;
  background-color: var(--background-color); /* Ensure visibility */
}

.toggle-theme {
  opacity: 0.5;
  cursor: pointer;
}

#fixed-tabs {
  position: fixed;
  top: 8px;
  left: 8px;
  right: 8px; /* Distribute across the full width */
  z-index: 10000; /* Ensure it's on top */
  display: flex;
  justify-content: space-around; /* Distribute items evenly */
  background-color: var(--background-color); /* Ensure visibility */
}

.tab-button {
  flex: 1; /* Make buttons take equal space */
  margin: 0 5px; /* Add margin between buttons */
  background-color: #6699cc; /* Less intense blue */
  border: none;
  color: white;
  padding: 5px 0; /* Reduced padding */
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px; /* Reduced font size */
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tab-button.selected {
  background-color: #336699; /* Even less intense blue for selected */
}

.tab-button:hover {
  background-color: #5588aa; /* Slightly darker on hover */
}

#messages-container {
  max-width: 1024px;
  width: 100%;
  margin-top: 20px;
  margin-right: 4px;
  font-family: serif;
}

.message, .ai-message {
  background-color: var(--message-background-color); /* Use variable */
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 5px;
  border: 1px solid var(--border-color); /* Use variable */
  color: var(--text-color); /* Use variable */
}

.ai-message {
  background-color: var(--ai-message-background-color); /* Use variable */
}

.thread {
  border-left: 3px solid #007bff;
  margin-left: 20px;
  padding-left: 15px;
}

input.reply-input {
  width: 95%;
  padding: 10px;
  margin-top: 5px;
  font-size: 16px;
  border: 2px solid var(--input-border-color); /* Use variable */
  border-radius: 5px;
  background-color: var(--input-background-color); /* Use variable */
  color: var(--text-color); /* Use variable */
  font-family: serif;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.dark-mode {
  background-color: #333;
  color: white;
}

/* Debugging CSS - remove after identifying issues */
* {
  outline: 0px solid red; /* This will outline every element on the page */
}
