/* Demo Respiratory Analysis Page Styles - Professional */
.demo-container {
  max-width: 600px;
  margin: 3.5rem auto 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.09);
  padding: 2.7rem 2.2rem 2.2rem 2.2rem;
  border: 1px solid #e6eaf0;
}
.demo-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a3557;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}
.demo-desc {
  color: #3a4a5d;
  margin-bottom: 1.7rem;
  font-size: 1.08rem;
  line-height: 1.7;
}
.demo-hr {
  border: none;
  border-top: 1.5px solid #e6eaf0;
  margin: 1.5rem 0 2.2rem 0;
}
.demo-form {
  margin: 2rem 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.demo-form label {
  font-weight: 600;
  color: #1a3557;
  margin-bottom: 0.2rem;
}
.demo-form input[type="file"] {
  border: 1px solid #d0d6e0;
  border-radius: 7px;
  padding: 0.6rem;
  background: #f7fafd;
  font-size: 1rem;
}
.demo-form button {
  width: 100%;
  padding: 0.9rem 0;
  font-size: 1.13rem;
  border-radius: 9px;
  background: #0077B6;
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
}
.demo-form button:hover {
  background: #0096c7;
}
.demo-result {
  margin-top: 2.2rem;
}
.demo-result table {
  width: 100%;
  background: #f7fafd;
  border-radius: 9px;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.demo-result th, .demo-result td {
  padding: 12px 14px;
  text-align: left;
  font-size: 1.04em;
}
.demo-result th {
  background: #e6f7ee;
  color: #0077B6;
  font-weight: 700;
}
.demo-result tr:not(:last-child) td {
  border-bottom: 1px solid #e0e0e0;
}
.demo-result pre {
  background: #f7fafd;
  border-radius: 9px;
  padding: 1.3rem;
  color: #1a3557;
  font-size: 1.01em;
  margin: 0;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
}
/* API DOCS Section */
.api-docs-section {
  margin-top: 3.5rem;
  background: #f8fafc;
  border-radius: 14px;
  padding: 2.2rem 1.5rem 2.5rem 1.5rem;
  border: 1px solid #e6eaf0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  color: #3D3D3D;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.api-docs-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #3D3D3D;
  margin-bottom: 1.1rem;
}
.api-docs-hr {
  border: none;
  border-top: 1.5px solid #e6eaf0;
  margin: 1.1rem 0 1.7rem 0;
}
.api-docs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2rem;
}
.api-docs-table th, .api-docs-table td {
  border: 1px solid #e0eaf0;
  padding: 8px 12px;
  font-size: 1em;
  color: #3D3D3D;
}
.api-docs-table th {
  background: #e6f7ee;
  color: #0077B6;
  font-weight: 600;
}
.api-docs-code {
  background: #f4f4f4;
  border-radius: 7px;
  padding: 0.9rem 1.1rem;
  color: #3D3D3D;
  font-size: 1em;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
  margin: 0.5rem 0 1.2rem 0;
  overflow-x: auto;
}
.api-docs-section ul {
  margin: 0.5em 0 1.2em 1.2em;
  color: #3D3D3D;
  font-size: 1em;
}
/* Markdown Content Styles */
.markdown-content {
  color: #3D3D3D;
  line-height: 1.6;
  font-size: 1rem;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  color: #1a3557;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.markdown-content h1 {
  font-size: 1.8rem;
  border-bottom: 2px solid #e6eaf0;
  padding-bottom: 0.5rem;
}

.markdown-content h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid #e6eaf0;
  padding-bottom: 0.3rem;
}

.markdown-content h3 {
  font-size: 1.3rem;
}

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

.markdown-content ul,
.markdown-content ol {
  margin: 1rem 0 1rem 1.5rem;
}

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

.markdown-content code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
  font-size: 0.9em;
  color: #d63384;
}

.markdown-content pre {
  background: #f7fafd;
  border-radius: 7px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid #e6eaf0;
}

.markdown-content pre code {
  background: none;
  padding: 0;
  color: #1a3557;
  font-size: 0.9em;
}

.markdown-content blockquote {
  border-left: 4px solid #0077B6;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #666;
  font-style: italic;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  border: 1px solid #e6eaf0;
}

.markdown-content th,
.markdown-content td {
  border: 1px solid #e6eaf0;
  padding: 0.5rem;
  text-align: left;
}

.markdown-content th {
  background: #f7fafd;
  font-weight: 600;
  color: #1a3557;
}

.markdown-content a {
  color: #0077B6;
  text-decoration: none;
}

.markdown-content a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .api-docs-section {
    max-width: 100%;
    padding: 1.2rem 0.5rem;
  }
  
  .markdown-content {
    font-size: 0.95rem;
  }
  
  .markdown-content h1 {
    font-size: 1.6rem;
  }
  
  .markdown-content h2 {
    font-size: 1.4rem;
  }
} 