/* ==========================================================================
   Bimble Chat Vue Documentation - Main CSS
   ========================================================================== */

/* Custom Variables - Matching Vue App Light Theme */
:root {
  --primary-color: #2687e5;
  --secondary-color: #49BEFF;
  --lightprimary: #ECF2FF;
  --lightsecondary: #E8F7FF;
  --info-color: #539BFF;
  --success-color: #13DEB9;
  --warning-color: #FFAE1F;
  --error-color: #F44336;
  --accent-color: #FFAB91;
  --lightinfo: #EBF3FE;
  --lightsuccess: #E6FFFA;
  --lightwarning: #FEF5E5;
  --lighterror: #FDEDE8;
  --text-primary: #2A3547;
  --text-secondary: #2A3547;
  --border-color: #e5eaef;
  --input-border: #A0AFC7;
  --container-bg: #ffffff;
  --background: #ffffff;
  --hover-color: #f6f9fc;
  --surface: #fff;
  --grey100: #F2F6FA;
  --grey200: #EAEFF4;
  --soft-bg: #F8FAFC;
  --sidebar-width: 280px;
  --header-height: 70px;
}

/* Global Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.75rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Global Overrides */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--soft-bg);
  font-size: 16px;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* Custom Bootstrap Overrides */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(38, 135, 229, 0.2);
}

.btn-primary:hover {
  background-color: #1976d2;
  border-color: #1976d2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(38, 135, 229, 0.3);
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Documentation Layout */
.docs-wrapper {
  min-height: 100vh;
  display: flex;
}

/* Sidebar Styles */
.docs-sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  color: var(--text-primary);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  border-right: 1px solid var(--border-color);
  box-shadow: none;
}

.docs-sidebar::-webkit-scrollbar {
  width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
  background: var(--grey100);
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--input-border);
}

/* Sidebar Header */
.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--surface);
  text-align: center;
}

.logo-container {
  margin-bottom: 1rem;
}

.sidebar-logo {
  height: 40px;
  width: auto;
  max-width: 100%;
}

.sidebar-header h4 {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.sidebar-header p {
  margin: 0.5rem 0 0 0;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
  font-weight: 500;
}

.sidebar-header h4 {
  margin: 0;
  font-weight: 600;
  font-size: 1.25rem;
}

.sidebar-header p {
  margin: 0.5rem 0 0 0;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Sidebar Navigation */
.sidebar-nav {
  padding: 1rem 0;
}

.nav-section {
  margin-bottom: 1.5rem;
}

/* Sidebar Navigation */
.sidebar-nav {
  padding: 1rem 0;
}

.nav-section {
  margin-bottom: 1.5rem;
}

.nav-section-title {
  padding: 0.5rem 1.5rem;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  font-size: 15px;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: var(--lightprimary);
  border-left-color: var(--primary-color);
  text-decoration: none;
}

.nav-link.active {
  color: var(--primary-color);
  background-color: var(--lightprimary);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

.nav-link i {
  margin-right: 0.75rem;
  width: 16px;
  text-align: center;
  font-size: 14px;
}

/* Main Content */
.docs-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  background: var(--background);
  min-height: 100vh;
  width: 100%;
}

/* Content Header */
.content-header {
  background: var(--surface);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.content-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.content-header .lead {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 0;
  opacity: 0.8;
  font-weight: 400;
  line-height: 1.6;
}

/* Content Body */
.content-body {
  padding: 4rem 0;
}

/* Cards and Components */
.feature-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(38, 135, 229, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  background: var(--surface);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(38, 135, 229, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 1rem;
}

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

.feature-icon.info {
  background: var(--info-color);
  color: white;
}

.feature-icon.success {
  background: var(--success-color);
  color: white;
}

.feature-icon.warning {
  background: var(--warning-color);
  color: white;
}

.feature-icon.error {
  background: var(--error-color);
  color: white;
}

 
/* Dark code blocks for terminal/command examples */
.code-block.dark {
  background: #1e1e1e;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.code-block pre {
  margin: 0;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 1rem;
  line-height: 1.6;
  padding: 20px;
}

.code-block.dark pre {
  color: #e0e0e0;
  font-size: 1rem;
  line-height: 1.6;
}

.code-block code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
} 

/* Page Header - Common across all documentation pages */
.page-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-bottom: 0;
}

.page-header .breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.page-header .breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-header .breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.page-header .lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Code Tabs - Installation page style */
.code-tabs {
    margin: 1.5rem 0;
}

.tab-buttons {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-bottom: none;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 1px solid var(--border-color);
    text-align: center;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn.active {
    background: #1e1e1e;
    color: white;
    font-weight: 600;
}

.tab-btn:hover:not(.active) {
    background: #f1f3f4;
    color: var(--text-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content .code-block {
    margin-top: 0;
    border-radius: 0 0 8px 8px;
    border-top: none;
}

/* Code Blocks - Enhanced */
.code-block {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    background: transparent;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: auto;
}

.code-block pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Alert Boxes - Common alert styles */
.info-box, .alert-info {
    background: #f8f9fa;
    border: 1px solid #e3f2fd;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
}

.success-box, .alert-success {
    background: #f0f9f0;
    border: 1px solid #d4edda;
    border-left: 4px solid #28a745;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
}

.warning-box, .alert-warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid var(--warning-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
}

.error-box, .alert-error {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-left: 4px solid var(--error-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.info-icon, .alert-info .alert-icon {
    color: var(--primary-color);
}

.success-icon, .alert-success .alert-icon {
    color: #28a745;
}

.warning-icon, .alert-warning .alert-icon {
    color: var(--warning-color);
}

.error-icon, .alert-error .alert-icon {
    color: var(--error-color);
}

.alert-content {
    flex: 1;
}

.alert-content h6, .info-content h6, .success-content h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.alert-content p, .info-content p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.success-content h6 {
    color: #155724;
}

.success-content p {
    color: #155724;
}

.success-content strong {
    color: #155724;
    font-weight: 600;
}

/* Installation/Step Sections - Common for guides */
.installation-section, .step-section {
    margin-bottom: 4rem;
}

.installation-section h2, .step-section h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.installation-section h2 i, .step-section h2 i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

/* Installation Steps */
.installation-step, .guide-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.installation-step:not(:last-child)::after, .guide-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 60px;
    bottom: -3rem;
    width: 2px;
    background: var(--border-color);
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.step-content {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.step-content h4 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--text-secondary);
}

/* Features Grid - Common for feature displays */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-actions {
    margin-top: auto;
}

/* Next Steps Section - Common for all documentation */
.next-steps {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin: 4rem 0;
}

.next-steps h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-steps > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.next-step-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    text-align: center;
}

.next-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    text-decoration: none;
    color: inherit;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-icon i {
    font-size: 1.5rem;
    color: white;
}

.next-step-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.next-step-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* Troubleshooting - Common component */
.troubleshooting-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.troubleshooting-item h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.troubleshooting-item p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.troubleshooting-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.troubleshooting-item ul {
    margin-bottom: 0;
}

.troubleshooting-item li {
    margin-bottom: 0.5rem;
}

.troubleshooting-item code {
    background: var(--grey100);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

/* File Structure Display */
.file-structure {
    background: var(--grey100);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.folder {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.folder i {
    margin-right: 0.5rem;
}

.folder ul {
    list-style: none;
    padding-left: 2rem;
    margin: 0.5rem 0 0 0;
}

.folder li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0;
    color: var(--text-secondary);
    font-weight: 400;
}

.folder li i {
    margin-right: 0.5rem;
}

.folder li small {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Path Display */
.path {
    background: var(--grey100);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

/* Tech Stack Badges */
.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 0.25rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 135, 229, 0.15);
  text-decoration: none;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.tech-badge i {
  margin-right: 0.5rem;
  font-size: 16px;
}

/* Demo Images */
.demo-image {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.demo-image:hover {
  transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 992px) {
  :root {
    --sidebar-width: 250px;
  }

  .page-header {
    padding-top: 80px;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 1024px) {
  .docs-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  /* When sidebar is visible ensure it sits above the mobile toggle */
  .docs-sidebar.show {
    transform: translateX(0);
    z-index: 1101; /* higher than .mobile-toggle (1001) so the sidebar covers the toggle */
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  }

  /* Smooth toggle animation and ensure it stays behind the sidebar when opened */
  .mobile-toggle {
    transition: transform 0.2s ease, left 0.2s ease, opacity 0.2s ease;
    z-index: 1001; /* keep below the shown sidebar */
  }
  
  .docs-main {
    margin-left: 0;
  }
  
  /* Stepper responsive adjustments */
  .installation-step, .guide-step {
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .installation-step:not(:last-child)::after, .guide-step:not(:last-child)::after {
    left: 18px;
  }
  
  .step-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .content-header h1 {
    font-size: 2rem;
  }
  
  .content-header .lead {
    font-size: 1.125rem;
  }
  
  .content-body {
    padding: 2rem 0;
  }
  
  .tab-btn {
    border-right: none;
  }
  
  .tab-btn:last-child {
    border-bottom: none;
  }
  
  /* Mobile stepper adjustments */
  .installation-step, .guide-step {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .installation-step:not(:last-child)::after, .guide-step:not(:last-child)::after {
    left: 15px;
    bottom: -1.5rem;
  }
  
  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
  }
  
  .step-content h4 {
    font-size: 1.125rem;
  }
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 12px rgba(38, 135, 229, 0.2);
  font-size: 16px;
}

@media (max-width: 1024px) {
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Custom Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) 1;
}

/* Overflow Prevention Utilities */
.container-fluid {
  overflow-x: hidden;
}

.no-overflow {
  overflow-x: hidden;
}

.break-word {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.text-responsive {
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Print Styles */
@media print {
  .docs-sidebar,
  .mobile-toggle {
    display: none !important;
  }
  
  .docs-main {
    margin-left: 0 !important;
  }
}


.token.operator {
  background-color: transparent !important;
}