/* Component code view, after the previous generator's _code.blade.php page. */
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
  min-height: 100vh;
}
.code-container {
  position: relative;
  max-width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06);
}
.copy-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #0f172a;
  color: #fff;
  border: 1px solid #1e293b;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 10;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.copy-button:hover {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transform: translateY(-1px);
}
.copy-button:active { transform: translateY(0) scale(0.98); }
.copy-button.copied { background: #16a34a; border-color: #22c55e; animation: copySuccess 0.3s ease; }
.copy-button.failed { background: #dc2626; border-color: #ef4444; }
.copy-button:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.copy-icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.code-content { padding: 1.5rem; overflow: auto; }
pre { margin: 0; white-space: pre; word-wrap: normal; overflow-x: auto; }
pre code.hljs, pre code {
  display: block;
  padding: 0;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #24292e;
}
::-webkit-scrollbar { width: 0.5rem; height: 0.5rem; }
::-webkit-scrollbar-track { background: #f3f4f6; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 0.25rem; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
@media (max-width: 640px) {
  body { padding: 1rem; }
  .code-content { padding: 1.25rem 1rem; }
  .copy-button { top: 0.75rem; right: 0.75rem; padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
  .copy-icon { width: 0.875rem; height: 0.875rem; }
  pre code.hljs, pre code { font-size: 0.8125rem; line-height: 1.6; }
}
@keyframes copySuccess { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
