/* Modern theme for Scribe AI */

:root {
  --primary-color: #4361ee;
  --primary-hover: #3a56d4;
  --secondary-color: #7209b7;
  --accent-color: #4cc9f0;
  --light-bg: #f8f9fa;
  --dark-text: #2b2d42;
  --light-text: #8d99ae;
  --success-color: #06d6a0;
  --warning-color: #ffd166;
  --danger-color: #ef476f;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}
  margin: 0 auto;
  padding: 0 1rem;
}

.welcome-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.welcome-section p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.primary-btn, .secondary-btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.primary-btn {
  background-color: white;
  color: var(--primary-color);
}

.primary-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
}

.secondary-btn {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.features {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.feature-card p {
  color: var(--light-text);
  line-height: 1.6;
}

.stats {
  background-color: rgba(67, 97, 238, 0.05);
  padding: 4rem 0;
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.1rem;
  color: var(--dark-text);
}

.cta-section {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: white;
  padding: 4rem 0;
  text-align: center;
  margin-top: 3rem;
  width: 100%;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.footer {
  background-color: #2b2d42;
  color: white;
  padding: 4rem 0 2rem;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: white;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .welcome-section {
    padding: 4rem 1rem;
  }
  
  .welcome-section h1 {
    font-size: 2.5rem;
  }
  
  .welcome-section p {
    font-size: 1.2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .features-grid, .stats-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
}

body {
  background-color: var(--light-bg) !important;
  color: var(--dark-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Navbar styling */
.navbar {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 1rem;
}

.navbar-brand, .navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
}

.navbar-brand {
  font-size: 1.4rem;
}

.navbar-nav .nav-link {
  position: relative;
  margin: 0 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
  border: none;
  box-shadow: var(--card-shadow);
  border-radius: 8px;
}

.dropdown-item:hover {
  background-color: rgba(67, 97, 238, 0.1);
}

/* Card styling */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-header {
  background-color: rgba(248, 249, 250, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Chat styling */
#chat .card {
  margin-bottom: 1.5rem;
}

/* User message */
#chat li:nth-child(odd) .card {
  background-color: white;
}

/* AI message */
#chat li:nth-child(even) .card {
  background-color: rgba(67, 97, 238, 0.03);
  border-left: 4px solid var(--primary-color);
}

/* Form controls */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

textarea.form-control {
  border-radius: 12px;
  resize: none;
}

/* Buttons */
.btn {
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-danger {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}

/* Spinner */
.spinner-grow, .spinner-border {
  color: var(--accent-color) !important;
}

.spinner-color {
  color: var(--secondary-color) !important;
}

#spinner {
  font-weight: 500;
  color: var(--secondary-color);
}

/* Text colors */
.text-primary {
  color: var(--primary-color) !important;
}

/* Fix for spinner animation */
@keyframes spinner-grow {
  0% {
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: none;
  }
}

.spinner-grow {
  animation: spinner-grow .75s linear infinite;
}

/* Button sizes */
.btn-xs {
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  line-height: 1.2;
  border-radius: 0.2rem;
}

/* Accordion */
.accordion {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.accordion-item {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-button {
  background-color: white;
  font-weight: 500;
  padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(67, 97, 238, 0.05);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

/* Speech to text button */
#speech-to-text-btn, #send-message-btn {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
}

.text-to-speech-btn {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Basic styling for markdown content */
.markdown-content {
  line-height: 1.6;
}

.markdown-content ul, 
.markdown-content ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.markdown-content li {
  margin-bottom: 0.5rem;
}

.markdown-content p {
  margin-bottom: 1rem;
}

/* Fix for bullet points */
.markdown-content ul {
  list-style-type: disc;
}

/* Fix for numbered lists */
.markdown-content ol {
  list-style-type: decimal;
}

/* Add a subtle animation to the chat messages */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#chat li {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Knowledge scope dropdown styling */
.knowledge-scope-container {
  background-color: white;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
}

.form-label {
  font-weight: 500;
  color: var(--dark-text);
}

.form-text {
  color: var(--light-text);
}
body {
  background-color: var(--light-bg) !important;
  color: var(--dark-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Navbar styling */
.navbar {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 1rem;
}

.navbar-brand, .navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
}

.navbar-brand {
  font-size: 1.4rem;
}

.navbar-nav .nav-link {
  position: relative;
  margin: 0 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
  border: none;
  box-shadow: var(--card-shadow);
  border-radius: 8px;
}

.dropdown-item:hover {
  background-color: rgba(67, 97, 238, 0.1);
}

/* Card styling */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-header {
  background-color: rgba(248, 249, 250, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Chat styling */
#chat .card {
  margin-bottom: 1.5rem;
}

/* User message */
#chat li:nth-child(odd) .card {
  background-color: white;
}

/* AI message */
#chat li:nth-child(even) .card {
  background-color: rgba(67, 97, 238, 0.03);
  border-left: 4px solid var(--primary-color);
}

/* Form controls */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

textarea.form-control {
  border-radius: 12px;
  resize: none;
}

/* Buttons */
.btn {
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-danger {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}

/* Spinner */
.spinner-grow, .spinner-border {
  color: var(--accent-color) !important;
}

.spinner-color {
  color: var(--secondary-color) !important;
}

#spinner {
  font-weight: 500;
  color: var(--secondary-color);
}

/* Text colors */
.text-primary {
  color: var(--primary-color) !important;
}

/* Fix for spinner animation */
@keyframes spinner-grow {
  0% {
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: none;
  }
}

.spinner-grow {
  animation: spinner-grow .75s linear infinite;
}

/* Button sizes */
.btn-xs {
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  line-height: 1.2;
  border-radius: 0.2rem;
}

/* Accordion */
.accordion {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.accordion-item {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-button {
  background-color: white;
  font-weight: 500;
  padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(67, 97, 238, 0.05);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

/* Speech to text button */
#speech-to-text-btn, #send-message-btn {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
}

.text-to-speech-btn {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Basic styling for markdown content */
.markdown-content {
  line-height: 1.6;
}

.markdown-content ul, 
.markdown-content ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.markdown-content li {
  margin-bottom: 0.5rem;
}

.markdown-content p {
  margin-bottom: 1rem;
}

/* Fix for bullet points */
.markdown-content ul {
  list-style-type: disc;
}

/* Fix for numbered lists */
.markdown-content ol {
  list-style-type: decimal;
}

/* Add a subtle animation to the chat messages */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#chat li {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Knowledge scope dropdown styling */
.knowledge-scope-container {
  background-color: white;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
}

.form-label {
  font-weight: 500;
  color: var(--dark-text);
}

.form-text {
  color: var(--light-text);
}
