body {
    background-color: #2e3436;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Ubuntu Mono', monospace;
    color: #fce94f; /* A light yellow for text */
    overflow: hidden;
}

.terminal-container {
    width: 90%;
    max-width: 900px;
    height: 70vh;
    background-color: #000;
    border: 1px solid #555;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

.terminal-header {
    background-color: #300a24;
    color: #fff;
    padding: 8px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.terminal-buttons {
    position: absolute;
    left: 10px;
    display: flex;
    gap: 8px;
}

.button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #000;
}

.button.close { background-color: #ff5f56; }
.button.minimize { background-color: #ffbd2e; }
.button.maximize { background-color: #27c93f; }

.terminal-title {
    margin: 0;
    color: #d3d7cf;
    font-size: 14px;
}

.terminal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    color: #d3d7cf;
    text-shadow: 0 0 2px #d3d7cf; /* Optional glow effect */
}

.output {
    white-space: pre-wrap;
    word-break: break-all;
    flex-grow: 1;
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 5px;
    flex-shrink: 0;
}

.prompt {
    color: #729fcf;
    margin-right: 5px;
    font-weight: bold;
}

#terminal-input {
    background: transparent;
    border: none;
    color: #d3d7cf;
    font-family: 'Ubuntu Mono', monospace;
    flex-grow: 1;
    outline: none;
    caret-color: #d3d7cf;
}

/* Scrollbar styling for a better look */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #2e3436;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #555753;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #888a85;
}

.output-line {
    margin-bottom: 5px;
}

/* Specific colors for different outputs */
.output-line.command {
    color: #729fcf;
}

.output-line.info {
    color: #fce94f;
}

.output-line.error {
    color: #ef2929;
}