/* Element selectors in alphabetical order */

a {
  color: #00ff00;
}

a:visited {
  color: #22c55e;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  line-height: 1.6;
  margin: 2rem auto;
  max-width: 680px;
  padding: 0 1rem;
  color: #ffffff;
  background: #111827;
}

code {
  background: #1f2937;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
}

h1,
h2 {
  color: #60a5fa;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

pre {
  background: #1f2937;
  padding: 1rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th,
td {
  padding: 0.5rem;
  border: 1px solid #374151;
  text-align: left;
}

ul {
  list-style: none;
  margin: 0;
}

/* Class selectors in alphabetical order */
.assets-list {
  padding-left: 0;
}

.code-container {
  position: relative;
  margin-top: 8px;
}

/* Copy Button */
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #333;
  color: #fff; /* white text */
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.9em;
  cursor: pointer;
  margin-left: 0.15rem;
  transition: transform 0.1s, background 0.2s;
}

.copy-btn:hover {
  transform: scale(1.15);
  background: #444;
}

.copy-icon {
  color: #fff;
  /* white rectangles on dark bg */
  vertical-align: middle;
}

  .custom-context-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
  }
  .custom-context-menu li {
    padding: 8px 16px;
    cursor: pointer;
  }
  .custom-context-menu li:hover {
    background-color: #f2f2f2;
  }

details summary {
  cursor: pointer;
  color: #60a5fa;
  font-size: 0.9em;
}

.diagram-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #374151;
}

.diagram-note {
  margin-top: 0.25rem;
  font-size: 0.8em;
  color: #9ca3af;
}

.file-block {
  margin-bottom: 1.5em;
}

.file-header {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.file-header a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: bold;
}

pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0;
  font-size: 0.9em;
}

.tools-table {
  border-collapse: collapse;
}
