/* Manual Content Page Styles - VisuaLeaf Documentation */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body * {
  max-width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1e2024;
  color: #e5e7eb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /*padding: 2rem;*/
  /*max-width: 1000px;*/
  margin: 0 auto;
}
.manual-content-area {
  padding: 3rem;
  overflow-y: auto;
  background: #1e2024;
  width: 100%;
  box-sizing: border-box;
}
.manual-body {

}
.manual-document {
  margin: 0 auto;
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
}
.manual-document {
  background: #23262b;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
  word-wrap: break-word;
}
/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1d21;
}

::-webkit-scrollbar-thumb {
  background-color: #3f4147;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #4e5158;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #f1f5f9;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.manual-content-area h1 {
  font-size: 2.5rem;
  color: #10b981;
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #10b981;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h1 i {
  font-size: 2rem;
}

h2 {
  font-size: 1.875rem;
  color: #10b981;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h2 i {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h3 i {
  color: #34d399;
  font-size: 1.25rem;
}

h4 {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h4 i {
  color: #059669;
  font-size: 1rem;
}

/* Paragraphs */
p {
  margin-bottom: 1rem;
  color: #d1d5db;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Lists */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: #94a3b8;
}

/* Links */
a {
  color: #10b981;
  text-decoration: underline;
}

a:hover {
  color: #34d399;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Doc screenshots - prevent scaling larger than original size */
img.doc-screenshot {
  width: auto;
  align-self: flex-start;
}

/* Code */
code {
  background: #1a1d21;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #e2e8f0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  border: 1px solid rgba(16, 185, 129, 0.15);
  word-break: break-word;
}

pre {
  background: #1a1d21;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  max-width: 100%;
}

pre code {
  padding: 0;
  background: none;
}

/* Feature list with better visual separation */
.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: #2c2f35;
  border-radius: 0.5rem;
  margin-bottom: 0;
  transition: all 0.2s ease;
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.feature-list li:hover {
  background: #32353b;
  border-color: rgba(16, 185, 129, 0.2);
}

.feature-list li i {
  color: #10b981;
  font-size: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}

.feature-list li strong {
  color: #e2e8f0;
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 3rem 2rem;
  margin: -2rem -2rem 2rem;
  text-align: center;
  border-radius: 0;
}

.hero-section .hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.hero-section .hero-icon i {
  font-size: 2.5rem;
}

.hero-section h1 {
  color: white;
  font-size: 3rem;
  margin: 0 0 1rem;
  border: none;
  padding: 0;
}

.hero-section .hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
}

/* Boxes */
.highlight-box,
.video-demo-section,
.feature-card,
.trouble-card {
  background: #2c2f35;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.highlight-box h3,
.video-demo-section h3,
.feature-card h3,
.trouble-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.feature-card,
.type-card,
.use-case-item {
  transition: all 0.2s;
}

.feature-card:hover,
.type-card:hover,
.use-case-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  border-color: #10b981;
}

/* Video Demo Section */
.video-demo-section {
  padding: 2rem;
  text-align: center;
}

.video-demo-section .video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.video-demo-section .video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.75rem;
}

/* Grids */
.feature-grid,
.comparison-types,
.use-cases,
.troubleshooting-grid,
.action-grid,
.workflow-container {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-grid,
.troubleshooting-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.comparison-types,
.use-cases,
.action-grid,
.workflow-container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.highlights-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Icons */
.feature-icon,
.action-icon,
.use-case-icon,
.highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

.feature-icon i,
.action-icon i,
.use-case-icon i,
.highlight-icon i {
  color: white;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #10b981, #059669);
  margin-bottom: 1rem;
}

.feature-icon i {
  font-size: 1.5rem;
}

.action-icon,
.use-case-icon,
.highlight-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.action-icon i,
.use-case-icon i,
.highlight-icon i {
  font-size: 1.25rem;
}

.action-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.use-case-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.highlight-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* Items */
.highlight-item,
.action-item,
.use-case-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #313338;
  border-radius: 0.75rem;
}

.highlight-item {
  border-left: 4px solid #10b981;
}

.action-item,
.type-card {
  border: 1px solid #4e5058;
  transition: all 0.2s;
}

.action-item:hover,
.type-card:hover {
  border-color: #10b981;
  box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.25);
}

/* Workflow Steps */
.workflow-step {
  padding: 1.5rem;
  background: #313338;
  border-radius: 0.75rem;
  border: 1px solid #4e5058;
}

.workflow-step h4 {
  color: #34d399;
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.workflow-step p {
  color: #e5e7eb;
  margin: 0;
  font-size: 0.95rem;
}

/* Advanced Features */
.advanced-features .feature-row {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #313338;
  border-radius: 0.75rem;
  border-left: 4px solid #10b981;
}

/* Tips Section */
.tips-section {
  background: linear-gradient(135deg, #064e3b, #065f46);
  border: 1px solid #10b981;
  border-radius: 0.75rem;
  padding: 2rem;
  margin: 3rem 0;
}

.tips-section h3 {
  color: #a7f3d0;
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
}

.tips-section h3 i {
  color: #34d399;
  font-size: 1.25rem;
}

.tips-section .tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tips-section .tip-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tips-section .tip-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: #10b981;
  color: white;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.tips-section .tip-item p {
  color: #d1fae5;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: #2c2f35;
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

table th,
table td {
  padding: 0.625rem 0.875rem;
  text-align: left;
  border-bottom: 1px solid #4e5058;
}

table th {
  background: #3f4147;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

table td {
  color: #94a3b8;
}

table td code {
  background: #1e1e1e;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  color: #f1f5f9;
}

table tr:last-child td {
  border-bottom: none;
}

table tr:hover td {
  background: rgba(16, 185, 129, 0.05);
}

/* Media Placeholders - hidden by default */
.media-placeholder {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 0.375rem;
  border: 1px dashed;
  font-size: 0.85rem;
}

.media-placeholder .placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.media-placeholder .placeholder-icon i {
  font-size: 0.85rem;
  color: white;
}

.media-placeholder .placeholder-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
  min-width: 0;
}

.media-placeholder .placeholder-content strong {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.media-placeholder .placeholder-content .code {
  font-family: monospace;
  font-size: 0.7rem;
  opacity: 0.7;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.media-placeholder .placeholder-content span {
  font-size: 0.8rem;
  opacity: 0.75;
  line-height: 1.4;
}

.screenshot-placeholder {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.4);
}

.screenshot-placeholder .placeholder-icon {
  background: #3b82f6;
}

.screenshot-placeholder .placeholder-content strong {
  color: #60a5fa;
}

.screenshot-placeholder .placeholder-content span {
  color: #93c5fd;
}

.video-placeholder {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.4);
}

.video-placeholder .placeholder-icon {
  background: #ef4444;
}

.video-placeholder .placeholder-content strong {
  color: #f87171;
}

.video-placeholder .placeholder-content span {
  color: #fca5a5;
}

/* Quick Start List */
.quick-start-list {
  list-style: decimal;
  padding-left: 1.5rem;
}

.quick-start-list li {
  padding: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 0rem;
  }

  .manual-content-area {
    padding: 1rem !important;
  }

  .manual-document {
    padding: 1.5rem !important;
    margin-bottom: 1rem;
  }

  .manual-content-area h1 {
    font-size: 1.75rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero-section {
    margin: -1rem -1rem 1.5rem;
    padding: 2rem 1rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .feature-grid,
  .comparison-types,
  .use-cases,
  .troubleshooting-grid,
  .action-grid,
  .workflow-container,
  .highlights-container {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.8rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .feature-list li {
    padding: 0.75rem 1rem;
  }

  .highlight-box,
  .video-demo-section,
  .feature-card,
  .trouble-card {
    padding: 1rem;
  }

  img.doc-screenshot {
    max-width: 100%;
    height: auto;
  }

  ul, ol {
    padding-left: 1.25rem;
  }

  .quick-start-list {
    padding-left: 1.25rem;
  }

  pre code {
    font-size: 0.75rem;
  }

  code {
    font-size: 0.8rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .manual-document {
    padding: 1rem !important;
    border-radius: 8px;
  }

  .manual-content-area {
    padding: 0.75rem !important;
  }

  .manual-content-area h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  table {
    font-size: 0.75rem;
  }

  .feature-list li {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
