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

body {
    background: #000;
    color: #00ff00;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 14px;
    overflow: hidden;
    height: 100vh;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.08;
}

#terminal {
    position: relative;
    z-index: 1;
    padding: 20px;
    height: calc(100vh - 50px);
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
}

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

#terminal::-webkit-scrollbar-track {
    background: #000;
}

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

#inputLine {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-top: 1px solid #00ff00;
}

#prompt {
    color: #00ff00;
    margin-right: 8px;
    white-space: nowrap;
    font-weight: bold;
}

#input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 14px;
    outline: none;
    caret-color: #00ff00;
}

.line {
    margin-bottom: 4px;
    line-height: 1.4;
}

.boot {
    color: #00ff00;
}

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

.boot-fail {
    color: #ff0000;
    font-weight: bold;
}

.boot-info {
    color: #00aaff;
}

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

.command {
    color: #00ffff;
}

.output {
    color: #00ff00;
    padding-left: 20px;
}

.error {
    color: #ff0000;
    padding-left: 20px;
}

.warning {
    color: #ffaa00;
    padding-left: 20px;
}

.info {
    color: #00aaff;
    padding-left: 20px;
}

.success {
    color: #00ff00;
    font-weight: bold;
    padding-left: 20px;
}

.ascii-art {
    color: #00ff00;
    white-space: pre;
    font-size: 12px;
    line-height: 1.2;
}

a {
    color: #00ffff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.cursor {
    animation: blink 1s infinite;
}

@media (max-width: 768px) {
    body {
        font-size: 12px;
    }
    
    #terminal {
        padding: 10px;
        height: calc(100vh - 45px);
    }
    
    #inputLine {
        padding: 10px;
    }
    
    #input {
        font-size: 12px;
    }
}
