/* Simple Material theme customizations */

/* Copy button styling */
.copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  opacity: 0;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 1);
  color: #333;
  border-color: #ccc;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-button.copied {
  background: #4caf50;
  color: white;
  border-color: #4caf50;
}

/* Show copy button on hover */
pre:hover .copy-button {
  opacity: 1;
}

/* Dark theme copy button */
[data-md-color-scheme="slate"] .copy-button {
  background: rgba(0, 0, 0, 0.8);
  border-color: #444;
  color: #ccc;
}

[data-md-color-scheme="slate"] .copy-button:hover {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  border-color: #666;
}

[data-md-color-scheme="slate"] .copy-button.copied {
  background: #4caf50;
  color: white;
  border-color: #4caf50;
}

/* Code block styling */
pre {
  position: relative;
  border-radius: 4px;
  margin: 1.5em 0;
}

/* Improve code block readability */
code {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 0.85em;
}

[data-md-color-scheme="slate"] code {
  background: rgba(255, 255, 255, 0.1);
}

/* Improve admonitions */
.admonition {
  border-radius: 4px;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Improve tables */
table {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive improvements */
@media screen and (max-width: 768px) {
  .copy-button {
    opacity: 1;
    font-size: 11px;
    padding: 3px 6px;
  }
}

/* Print styles */
@media print {
  .copy-button {
    display: none !important;
  }
} 