@tailwind base;
@tailwind components;
@tailwind utilities;
/* Additions to styles/theme.css */
:root {
  /* Darcula Theme Color Variants */
  --chai-border-width: 1px;
  --chai-border-radius: var(--sl-border-radius-medium);
  --chai-content-max-width: 860px;
  --chai-sidebar-width: 320px;
  --chai-sidebar-transition-speed: 250ms;
  --chai-content-toc-max-width: 260px;
  --chai-content-padding: 2rem;
  --chai-content-vertical-spacing: 2rem;
  --chai-search-overlay-background: rgb(0 0 0 / 0.2);

  /* CHAAC Themed colors */
  --color-primary: #03213A;
  --color-primary-accent: #063359;
  --color-secondary: #FF7634;
  --color-secondary-lighter: #FFBA7B;
  --color-secondary-darker: #FF7634;
  --color-secondary-accent: #D85615 ;
  --color-background: #03213A; /* hsl(240 5.7% 18.2%); */
  --color-background-darker: #02172b; /* hsl(240 5.7% 18.2%); */
  --color-background-accent: #103b5e; /* hsl(240 5.7% 18.2%); */
  --color-background-light: #F3F4F6; /* hsl(240 5.7% 18.2%); */
  --color-text-secondary: #e4e8ff;


  --color-text: #e4e8ff;
  --color-accent: #619647;
  --color-accent-secondary: #867f9b;
  --color-error: #ff6b68;
  --color-warning: #bbb529;
  /* Lighter and Darker Variants */

  --color-text-lighter: #c4ced4;
  --color-text-darker: #7f8c8d;
  --color-accent-lighter: #83a668;
  --color-accent-darker: #495c2b;
  --color-accent-secondary-lighter: #9f92ac;
  --color-accent-secondary-darker: #605d72;
  --color-error-lighter: #ff847c;
  --color-error-darker: #e2463f;
  --color-warning-lighter: #d4d06f;
  --color-warning-darker: #a7a527;
  /* Other */
  --base-font-size: 1rem;
  --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Modern, sans-serif font family */
  /*--font-family: 'Consolas', 'Courier New', monospace;*/
  --font-size: 1rem; /* Slightly smaller font size for a more professional look */
  --line-height: 1.8; /* Increase line height for better readability */
  --border-radius: 0.1rem;
}

/* Reset and normalize styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Apply global styles */
body {
  background-color: var(--color-background-darker);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: none;
}

main {
  display: flex;
  min-height: 93vh;
  padding: 2rem 5%;
  background-color: var(--color-background-darker);
}

#content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: scroll;
  overflow-x: hidden;
}

/* Style for links and accents */
a, .accent {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease; /* Smooth transition for hover effects */

}

a:hover, .accent-hover:hover {
  color: var(--color-accent-lighter);
}

/* Secondary text styling */
.text-secondary {
  color: var(--color-text-secondary);
}

/* Apply a sophisticated focus style for keyboard navigation */
:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-background-darker);
}

/* Global element styles with better spacing and typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  font-weight: 300; /* Lighter font-weight for headings */
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

p {
  margin-bottom: 1em;
}

ul, ol {
  list-style: none;
  margin-left: 0;
}

/* Apply styles to form elements for a cohesive look */
/*
button, input, textarea, select {
  font: inherit;
  color: inherit;
  background-color: var(--color-background-lighter);
  padding: 0.5em;
  border-radius: 4px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
*/

button:hover, input:hover, textarea:hover, select:hover {
  background-color: var(--color-background);
  border-color: var(--color-background-darker);
}


.chat-dialogue {
  display: flex;
  flex-direction: column;
  height: 100%; /* Adjust as needed, e.g., `500px` */
}

.messages-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1em;
  margin: 0;
}

/* Placeholder styling for individual messages */
.message-item {
  margin-bottom: 1em;
  /* Style for message bubbles can be added here */
}

/* You may want to add additional styles for disabled state, focus state, etc. */
.message-input-area {
  display: flex;
  padding: 1rem 0;

  background-color: var(--color-background);
  background-color: transparent;
  border-top: 1px solid var(--color-accent-secondary);
  /*box-shadow: var(--box-shadow) inset;*/
}

.message-input, .context-input {
  flex-grow: 1;
  padding: 0.5em;
  margin-right: 0.5em;
  border: 1px solid whitesmoke;
  background-color: transparent;
  border-radius: 0.3rem;
  color: var(--color-text);
  border-radius: 0.3rem;
  transition: border-color 0.3s ease;
  margin: 0 0.5rem;
}

.message-input:focus, .context-input:focus {
  border-color: var(--color-accent);
  outline: none; /* Remove default focus outline and use border color change */
}

/* styles/chat-history.css */
.conversation-history {
  background-color: var(--color-accent-darker);
}


.message-item {
  margin-bottom: 1em;
  padding: 0.5em 1em;
  border-radius: var(--border-radius);
  max-width: 80%;
}

.message-item.incoming {
  background-color: var(--color-accent);
  align-self: flex-start;
}

.message-item.outgoing {
  background-color: var(--color-accent-secondary);
  align-self: flex-end;
  color: var(--color-background);
}


/* Quick actions styling */
.quick-actions {
  display: none; /* Hidden by default, shown on hover or swipe */
  position: absolute;
  right: 10px; /* Adjust as needed */
  top: 10px; /* Adjust as needed */
}

.message-item:hover .quick-actions,
.message-item:focus-within .quick-actions {
  display: block;
}

.quick-action {
  /* Style your quick action buttons here */
  margin-left: 5px;
}

/* Custom Scrollbar styling */
.messages-list::-webkit-scrollbar {
  width: 8px;
}

.messages-list::-webkit-scrollbar-track {
  background: var(--color-background);
}

.messages-list::-webkit-scrollbar-thumb {
  background: var(--color-accent-secondary);
  border-radius: 4px;
}

.messages-list::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}


/* ---------------------------------------------------------------------------- */
/*                                   USEFUL                                     */
/* ---------------------------------------------------------------------------- */
.spacer-y-sm {
  display: block;
  min-height: 0.5rem;
}

.ge-input {
  margin-top: 1rem ;
}