/* src/App.css */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main app layout */
.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100vh;
  overflow: hidden;
}

/* Global scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Prevent text selection in UI elements */
.sidebar, .sidebar *, .query-input-container {
  user-select: none;
}

/* Allow text selection in messages from AI */
.ai-message .message-content {
  user-select: text;
}

/* Ensure MainContent takes available space and Footer stays at bottom */
.content-wrapper .main-content {
  flex-grow: 1; /* Allows main content to expand */
  overflow-y: auto; /* Add scroll to main content if it overflows */
}

/*
  Adjust Footer styling in App.css or Footer.css.
  For a footer that is part of the scrollable main area (not fixed):
*/
/* Remove fixed positioning from Footer.css if you prefer this */
/* And adjust App.css for the content-wrapper's Footer */
.content-wrapper .footer {
  flex-shrink: 0; /* Prevents footer from shrinking */
}