:root {
    --bg-color: #0a0a0a;
    --terminal-bg: #0d0d0d;
    --green: #00ff41;
    --green-dim: #00aa2a;
    --green-bright: #39ff14;
    --green-darker: #006b1d;
    --border-color: #1a1a1a;
    --text-dim: #555;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: var(--bg-color);
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', 'Courier New', monospace;
    font-size: 14px;
}

.terminal {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-body {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
    color: var(--green);
    line-height: 1.5;
}

/* Neofetch-style welcome */
.neofetch-welcome {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.ascii-logo {
    font-size: 10px;
    line-height: 1.1;
    margin: 0;
}

.ascii-logo .c1 { color: #50fa7b; }
.ascii-logo .c2 { color: #40e86b; }
.ascii-logo .c3 { color: #30d65b; }
.ascii-logo .c4 { color: #20c44b; }
.ascii-logo .c5 { color: #10b23b; }
.ascii-logo .runtime {
    color: var(--green-bright);
    font-weight: bold;
    font-size: 18px;
    vertical-align: middle;
}

.system-info-block {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    font-size: 14px;
    padding-top: 4px;
}

.info-title {
    color: var(--green-bright);
    font-weight: bold;
}

.info-label {
    color: var(--green-bright);
    font-weight: bold;
}

.info-label::after {
    content: '';
    color: var(--green);
    font-weight: normal;
}

@media (max-width: 600px) {
    .neofetch-welcome {
        flex-direction: column;
        gap: 16px;
    }

    .ascii-logo {
        font-size: 8px;
    }

    .ascii-logo .runtime {
        font-size: 14px;
    }
}

.cmd {
    color: var(--green-bright);
    font-weight: bold;
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.prompt {
    white-space: nowrap;
}

.prompt .user {
    color: var(--green-bright);
    font-weight: bold;
}

.prompt .host {
    color: var(--green);
}

.prompt .path {
    color: #5588ff;
    font-weight: bold;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--green);
    font-family: inherit;
    font-size: inherit;
    caret-color: var(--green-bright);
}

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

.output-line.command {
    color: var(--green);
    margin-top: 12px;
}

.output-line.error {
    color: #ff6b6b;
}

.output-line.warning {
    color: var(--yellow);
}

.output-line.info {
    color: #5588ff;
}

.output-line.success {
    color: var(--green-bright);
}

.output-line.dim {
    color: var(--text-dim);
}

/* File listing styles */
.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin: 8px 0;
    color: var(--green);
}

.file-item {
    color: var(--green);
}

.file-item.dir {
    color: #5588ff;
    font-weight: bold;
}

.file-item.exec {
    color: var(--green-bright);
}

.file-item.hidden {
    color: var(--text-dim);
}

.file-item.link {
    color: #ff79c6;
}

/* Project card */
.project {
    margin: 12px 0;
    padding: 12px 16px;
    border: 1px solid var(--green-darker);
    border-left: 3px solid var(--green);
    background: rgba(0, 255, 65, 0.02);
}

.project-name {
    color: var(--green-bright);
    font-weight: bold;
    font-size: 15px;
}

.project-desc {
    color: var(--green-dim);
    margin: 4px 0;
}

.project-meta {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 8px;
}

.project-link {
    color: #5588ff;
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

/* Neofetch style */
.neofetch {
    display: flex;
    gap: 24px;
    margin: 8px 0;
}

.neofetch-logo {
    color: var(--green-bright);
    font-size: 10px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.neofetch-info {
    line-height: 1.6;
}

.neofetch-info .label {
    color: var(--green-bright);
    font-weight: bold;
}

.neofetch-info .value {
    color: var(--green);
}

.neofetch-colors {
    display: flex;
    gap: 0;
    margin-top: 8px;
}

.neofetch-colors span {
    display: inline-block;
    width: 24px;
    height: 16px;
}

/* Help table */
.help-section {
    margin: 12px 0;
}

.help-title {
    color: var(--green-bright);
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 12px;
}

.help-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 4px 16px;
}

.help-cmd {
    color: var(--green-bright);
}

.help-desc {
    color: var(--green-dim);
}

/* Scrollbar styling */
.terminal-body::-webkit-scrollbar {
    width: 10px;
}

.terminal-body::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: var(--green-darker);
}


/* Links */
a {
    color: #5588ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #77aaff;
}

/* Man page style */
.man-page {
    margin: 8px 0;
}

.man-header {
    color: var(--green-bright);
    font-weight: bold;
    margin: 12px 0 4px 0;
}

.man-content {
    padding-left: 16px;
    color: var(--green);
}

/* Tree style */
.tree-line {
    color: var(--green-dim);
}

.tree-dir {
    color: #5588ff;
    font-weight: bold;
}

.tree-file {
    color: var(--green);
}
