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

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

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #000;
    color: #4ade80;
}

#terminal-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    cursor: text;
    overflow-y: auto;
}

#terminal-history {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 16px;
    line-height: 1.5;
}

#terminal-current-line {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
}

.prompt {
    color: #4ade80;
}

.output {
    color: #4ade80;
    margin-bottom: 0.5rem;
}

.output.error {
    color: #ff4444;
}

.output.success {
    color: #00ff00;
}

.output.warning {
    color: #ffaa00;
}

.char.cursor {
    background-color: #4ade80;
    color: #000;
    animation: blink 1s infinite;
}

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

/* Empty cursor at end of line */
.empty-cursor {
    display: inline-block;
    width: 0.6em;
    background-color: #4ade80;
    animation: blink 1s infinite;
}

#terminal-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#version {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    color: #4ade80;
    opacity: 0.5;
}

/* Autocomplete dropdown */
#autocomplete-dropdown {
    position: fixed;
    background-color: #1a1a1a;
    border: 1px solid #4ade80;
    border-radius: 4px;
    padding: 0;
    margin: 0;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    min-width: 400px;
    box-shadow: 0 4px 6px rgba(74, 222, 128, 0.2);
    z-index: 1000;
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #2a2a2a;
    transition: background-color 0.1s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #2a2a2a;
}

.autocomplete-command {
    color: #4ade80;
    font-weight: bold;
    margin-bottom: 2px;
}

.autocomplete-description {
    color: #888;
    font-size: 14px;
    line-height: 1.3;
}

/* Scrollbar styling for autocomplete */
#autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}

#autocomplete-dropdown::-webkit-scrollbar-track {
    background: #1a1a1a;
}

#autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #4ade80;
    border-radius: 4px;
}

#autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: #5aee90;
}
