/* Global Styles */
body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
  }
  
  /* Image Styles */
  img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e5e7eb;
    transition: border-color 0.2s ease;
  }
  
  img:hover {
    border-color: #9ca3af;
  }
  
  /* Code Block Styles */
  pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    position: relative;
    border: 1px solid #374151;
  }
  
  /* Inline Code Styles */
  code {
    font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
    background-color: #f3f4f6;
    color: #1f2937;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
  }
  
  /* Code block inside pre should not have background */
  pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
  }
  
  /* Copy Button Styles */
  .code-block-container {
    position: relative;
  }
  
  .copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #374151;
    color: #d1d5db;
    border: 1px solid #4b5563;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Inter", sans-serif;
    z-index: 10;
  }
  
  .copy-button:hover {
    background-color: #4b5563;
    color: #f9fafb;
  }
  
  .copy-button:active {
    transform: scale(0.95);
  }
  
  .copy-button.copied {
    background-color: #059669;
    color: white;
    border-color: #059669;
  }
  
  /* Syntax Highlighting */
  .token.comment,
  .token.prolog,
  .token.doctype,
  .token.cdata {
    color: #6b7280;
  }
  
  .token.punctuation {
    color: #d1d5db;
  }
  
  .token.property,
  .token.tag,
  .token.boolean,
  .token.number,
  .token.constant,
  .token.symbol,
  .token.deleted {
    color: #f87171;
  }
  
  .token.selector,
  .token.attr-name,
  .token.string,
  .token.char,
  .token.builtin,
  .token.inserted {
    color: #34d399;
  }
  
  .token.operator,
  .token.entity,
  .token.url,
  .language-css .token.string,
  .style .token.string {
    color: #60a5fa;
  }
  
  .token.atrule,
  .token.attr-value,
  .token.keyword {
    color: #a78bfa;
  }
  
  .token.function,
  .token.class-name {
    color: #fbbf24;
  }
  
  .token.regex,
  .token.important,
  .token.variable {
    color: #fb7185;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    pre {
      font-size: 0.8rem;
      padding: 0.75rem;
    }
  
    .copy-button {
      font-size: 0.7rem;
      padding: 0.2rem 0.4rem;
    }
  }
  
  /* Print styles */
  @media print {
    .copy-button {
      display: none;
    }
  
    pre {
      background-color: #f9fafb !important;
      color: #1f2937 !important;
      border: 1px solid #d1d5db !important;
    }
  }

  /* Code Block Styles */
.code-block-container {
    position: relative;
    margin: 1rem 0;
  }
  
  pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    padding-top: 2.5rem; /* Make room for the button */
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid #374151;
    margin: 0; /* Remove default margin since container handles it */
  }
  
  /* Copy Button Styles */
  .copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #374151;
    color: #d1d5db;
    border: 1px solid #4b5563;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Inter", sans-serif;
    z-index: 10;
    user-select: none;
    outline: none;
  }
  
  .copy-button:hover {
    background-color: #4b5563;
    color: #f9fafb;
  }
  
  .copy-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
  }
  
  .copy-button:active {
    transform: scale(0.95);
  }
  
  .copy-button.copied {
    background-color: #059669;
    color: white;
    border-color: #059669;
  }