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

body {
    background-color: #0a0e14;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.6;
    overflow: hidden;
}

#terminal {
    width: 100%;
    height: 100vh;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

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

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

#terminal::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 5px;
}

#terminal::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Output area */
#output {
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Input line */
.input-line {
    display: flex;
    align-items: center;
}

.prompt {
    color: #00ff00;
    margin-right: 8px;
    user-select: none;
}

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

.input {
    background: transparent;
    border: none;
    outline: none;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    flex: 1;
    caret-color: transparent;
    position: relative;
    z-index: 1;
}

/* Cursor */
.cursor {
    position: absolute;
    left: 0;
    width: 8px;
    height: 20px;
    background-color: #00ff00;
    animation: blink 1s step-end infinite;
    pointer-events: none;
    z-index: 0;
}

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

/* Command history line */
.command-line {
    margin-bottom: 5px;
}

.command-line .prompt {
    color: #00ff00;
}

.command-line .command {
    color: #00ff00;
}

/* Output styling */
.output-line {
    color: #00ff00;
    margin: 2px 0;
}

.error {
    color: #ff4444;
}

.warning {
    color: #ffaa00;
}

.info {
    color: #00aaff;
}

.success {
    color: #00ff00;
}

.muted {
    color: #667788;
}

/* ASCII art and special text */
.ascii-art {
    color: #00ff00;
    line-height: 1.2;
    margin: 10px 0;
}

.banner {
    color: #00ff00;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Links */
a {
    color: #00aaff;
    text-decoration: underline;
    cursor: pointer;
}

a:hover {
    color: #00ccff;
}

/* File listing styles */
.file-list {
    margin: 5px 0;
}

.file-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 5px;
}

.directory {
    color: #00aaff;
    font-weight: bold;
}

.file {
    color: #00ff00;
}

.executable {
    color: #00ff00;
    font-weight: bold;
}

/* Table-like output */
.info-table {
    margin: 10px 0;
}

.info-row {
    display: flex;
    margin: 3px 0;
}

.info-label {
    color: #00aaff;
    min-width: 150px;
    font-weight: bold;
}

.info-value {
    color: #00ff00;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    #terminal {
        padding: 10px;
    }
    
    .cursor {
        width: 7px;
        height: 18px;
    }
}