* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
    font-size: 15px;
    line-height: 1.5;
    color: #e5e5e5;
    overflow: hidden;
}

.terminal {
    width: 100vw;
    height: 100vh;
    background: #0c0c0c;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    cursor: text;
}

.terminal::-webkit-scrollbar {
    width: 10px;
}

.terminal::-webkit-scrollbar-track {
    background: #0c0c0c;
}

.terminal::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

.terminal::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.output {
    margin-bottom: 10px;
}

.line {
    margin: 2px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.input-line {
    display: flex;
    align-items: baseline;
}

.prompt {
    color: #0f0;
    font-weight: 700;
    margin-right: 8px;
    user-select: none;
}

.input {
    flex: 1;
    outline: none;
    border: none;
    background: transparent;
    color: #fff;
    caret-color: transparent;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.input:empty::before {
    content: attr(data-placeholder);
    color: #555;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #0f0;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.system {
    color: #0ff;
}

.error {
    color: #f44;
}

.success {
    color: #0f0;
}

.warning {
    color: #fa0;
}

.file {
    color: #f0f;
}

.response {
    color: #e5e5e5;
    margin: 5px 0;
}

.typing {
    display: inline;
}

.typing::after {
    content: '▊';
    animation: blink 0.5s infinite;
    color: #0f0;
}

/* Selection */
::selection {
    background: #0f03;
    color: #fff;
}

/* Hide contenteditable outline */
[contenteditable]:focus {
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .terminal {
        padding: 10px;
        font-size: 13px;
    }
}


.code-block {
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 8px 0;
  font-family: "JetBrains Mono", monospace;
}

.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 6px;
}

.code-copy-btn {
  background: #222;
  color: #0f0;
  border: 1px solid #0f0;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
}

.code-copy-btn:hover {
  background: #0f0;
  color: #000;
}

.code-block pre {
  margin: 0;
  white-space: pre;
  overflow-x: auto;
  font-size: 13px;
}


/* Syntax Highlighting Colors (VS Code Dark+ theme) */
.keyword {
  color: #569cd6; /* Blue for keywords */
}

.string {
  color: #ce9178; /* Orange for strings */
}

.comment {
  color: #6a9955; /* Green for comments */
  font-style: italic;
}

.number {
  color: #b5cea8; /* Light green for numbers */
}

.function {
  color: #dcdcaa; /* Yellow for functions */
}

.variable {
  color: #9cdcfe; /* Light blue for variables */
}

.tag {
  color: #569cd6; /* Blue for HTML tags */
}

.attribute {
  color: #9cdcfe; /* Light blue for attributes */
}

.property {
  color: #9cdcfe; /* Light blue for CSS properties */
}

.selector {
  color: #d7ba7d; /* Gold for CSS selectors */
}

.annotation {
  color: #4ec9b0; /* Cyan for annotations/decorators */
}

.json-key {
  color: #9cdcfe; /* Light blue for JSON keys */
}