:root {
    --bg-color: #0a0a0a;
    --text-color: #00ff00;
    --prompt-color: #00ff00;
    --cursor-color: #00ff00;
    --error: #ff3333;
    --link: #00ffff;
    --dim: #666666;
    --yellow: #ffff00;
    --white: #ffffff;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.4;
    min-height: 100vh;
    overflow-x: hidden;
}

#terminal {
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#output {
    flex-grow: 1;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#output .command-line {
    margin-bottom: 5px;
}

#output .prompt {
    color: var(--prompt-color);
}

#output .command {
    color: var(--white);
}

#output .response {
    margin-bottom: 15px;
    color: var(--text-color);
}

#output .error {
    color: var(--error);
}

#output .link {
    color: var(--link);
    cursor: pointer;
    text-decoration: underline;
}

#output .link:hover {
    opacity: 0.8;
}

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

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

#output .white {
    color: var(--white);
}

#output .cyan {
    color: var(--link);
}

#input-line {
    display: flex;
    align-items: center;
    position: relative;
}

.prompt {
    color: var(--prompt-color);
    margin-right: 8px;
    white-space: nowrap;
}

#command-input {
    background: transparent;
    border: none;
    color: var(--white);
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex-grow: 1;
    caret-color: transparent;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: var(--cursor-color);
    animation: blink 1s step-end infinite;
    position: absolute;
    left: calc(var(--cursor-pos, 0) * 1ch + 185px);
}

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

/* ASCII art styling */
.ascii-art {
    color: var(--link);
}

/* Table styling for kubectl outputs */
.table-header {
    color: var(--white);
    font-weight: bold;
}

.table-row {
    color: var(--text-color);
}

/* Welcome message */
.welcome {
    color: var(--link);
    margin-bottom: 20px;
}

/* Neofetch styling */
.neofetch-logo {
    color: var(--link);
}

.neofetch-label {
    color: var(--link);
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    body {
        font-size: 12px;
    }

    #terminal {
        padding: 10px;
    }

    .prompt {
        font-size: 11px;
    }

    .cursor {
        left: calc(var(--cursor-pos, 0) * 1ch + 155px);
    }
}

@media (max-width: 480px) {
    body {
        font-size: 11px;
    }

    .cursor {
        left: calc(var(--cursor-pos, 0) * 1ch + 140px);
    }
}

/* Typing animation for output */
.typing {
    overflow: hidden;
    animation: typing 0.05s steps(1) forwards;
}

/* Selection styling */
::selection {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--dim);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-color);
}
