/* Responsive adjustments */
@media (max-width: 2048px) {
    .custom-boxes {
        flex-direction: column;
    }

    .npl-code, .noumena-runtime, .frontend-impl, .screenshot {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Full width code template and iframe */
#codeTemplate {
    display: block;
    width: 100%;
    margin: 20px 0;
}

.app-view {
    display: block;
    width: 100%;
    height: 600px;
    border: none;
    margin: 20px 0;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.code-container {
  background-color: #1a1b26;
  border-radius: 6px;
  padding: 20px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  color: #f8f8f2;
  margin: 20px 0;
  overflow-x: auto;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
}

.code-title {
  color: #bd93f9;
  font-size: 14px;
}

.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #44475a;
  color: #f8f8f2;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.code-container:hover .code-copy-btn {
  opacity: 1;
}

.code-copy-btn:hover {
  background-color: #6272a4;
}

.code-content {
  line-height: 1.5;
  font-size: 14px;
}

.code-line {
  display: flex;
}

.line-number {
  color: #6272a4;
  text-align: right;
  padding-right: 12px;
  user-select: none;
  min-width: 40px;
}

.line-code {
  white-space: pre;
}

/* Syntax highlighting */
.keyword {
  color: #f7768e;
}

.function {
  color: #bb9af7;
}

.string {
  color: #9d7cd8;
}

.comment {
  color: #565f89;
  font-style: italic;
}

.number {
  color: #ff9e64;
}

.operator {
  color: #89ddff;
}

.api-annotation {
  color: #7dcfff;
}
