/* Print styles for modern API manager */
@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
  }

  .toc-wrapper {
    display: none !important;
  }

  .page-wrapper {
    margin-left: 0 !important;
    background: #fff !important;
  }

  .page-wrapper .dark-box {
    display: none !important;
  }

  .lang-selector {
    display: none !important;
  }

  .content {
    padding: 20px !important;
    background: #fff !important;
    color: #000 !important;
    max-width: none !important;
  }

  .content > h1 {
    background: #ffa500 !important;
    color: #fff !important;
    padding: 16px 0 !important;
    margin: 0 0 24px 0 !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-size: 2em !important;
  }

  .content > h2 {
    color: #000 !important;
    border-bottom: 2px solid #ffa500 !important;
    padding: 12px 0 !important;
    margin: 32px 0 16px 0 !important;
    font-size: 1.5em !important;
  }

  .content > h3, .content > h4 {
    color: #333 !important;
    margin: 24px 0 12px 0 !important;
    font-size: 1.2em !important;
  }

  .content > h5, .content > h6 {
    color: #555 !important;
    margin: 20px 0 10px 0 !important;
    font-size: 1.1em !important;
  }

  .content > p {
    color: #333 !important;
    margin: 12px 0 !important;
  }

  .content table {
    border: 1px solid #ccc !important;
    background: #fff !important;
    margin: 16px 0 !important;
  }

  .content table th {
    background: #f5f5f5 !important;
    color: #000 !important;
    border-bottom: 2px solid #ccc !important;
    font-weight: bold !important;
  }

  .content table td {
    color: #333 !important;
    border-bottom: 1px solid #eee !important;
  }

  .content table tr:nth-child(odd) > td {
    background: #fff !important;
  }

  .content table tr:nth-child(even) > td {
    background: #f9f9f9 !important;
  }

  .content pre, .content blockquote {
    background: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    padding: 16px !important;
    margin: 16px 0 !important;
    overflow-x: auto !important;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace !important;
    font-size: 12px !important;
  }

  .content pre:before {
    display: none !important;
  }

  .content code {
    background: rgba(255, 165, 0, 0.1) !important;
    color: #ffa500 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace !important;
    font-size: 0.9em !important;
  }

  .content aside {
    background: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    border-left: 4px solid !important;
    padding: 16px !important;
    margin: 16px 0 !important;
    border-radius: 4px !important;
  }

  .content aside.warning {
    border-left-color: #f59e0b !important;
    background: #fef3c7 !important;
    color: #92400e !important;
  }

  .content aside.success {
    border-left-color: #10b981 !important;
    background: #d1fae5 !important;
    color: #065f46 !important;
  }

  .content aside.notice {
    border-left-color: #3b82f6 !important;
    background: #dbeafe !important;
    color: #1e40af !important;
  }

  .content a {
    color: #ffa500 !important;
    text-decoration: underline !important;
  }

  .content ul, .content ol {
    margin: 12px 0 !important;
    padding-left: 20px !important;
  }

  .content li {
    color: #333 !important;
    margin: 6px 0 !important;
  }

  .content img {
    max-width: 100% !important;
    border-radius: 4px !important;
    margin: 12px 0 !important;
  }

  .content hr {
    border: none !important;
    height: 1px !important;
    background: #ccc !important;
    margin: 20px 0 !important;
  }

  .content .search-highlight {
    background: #fef3c7 !important;
    color: #92400e !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
  }

  /* Page breaks */
  .content > h1, .content > h2 {
    page-break-after: avoid !important;
  }

  .content pre, .content blockquote, .content table {
    page-break-inside: avoid !important;
  }

  /* Links */
  .content a[href^="http"]:after {
    content: " (" attr(href) ")" !important;
    font-size: 0.8em !important;
    color: #666 !important;
  }
}
