:root {
    --bg-color: #000000;
    --text-color: #ffffff;
}

body.theme-inverse {
    --bg-color: #ffffff;
    --text-color: #000000;
}

* {
    box-sizing: border-box;
    border-radius: 0 !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'VT323', 'Noto Sans Devanagari', monospace;
    font-size: 24px;
    line-height: 1.2;
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed; 
    overflow: hidden; 
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px; 
    z-index: 1000;
    background-color: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px dashed var(--text-color);
    font-family: 'VT323', 'Noto Sans Devanagari', monospace;
}

#nav-logo {
    font-weight: bold;
    letter-spacing: 1px;
}

#theme-toggle {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-family: 'VT323', 'Noto Sans Devanagari', monospace;
    font-size: 20px;
    padding: 2px 10px;
    cursor: pointer;
}

#theme-toggle:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

#terminal-container {
    width: 100%;
    margin-top: 50px;
    height: calc(100vh - 50px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--text-color) transparent;
}

#terminal-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: transparent;
}

#terminal-container::-webkit-scrollbar-thumb {
    background-color: var(--text-color);
}

#output {
    width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
    font-weight: normal !important; 
}

#output div {
    font-family: 'VT323', 'Noto Sans Devanagari', monospace !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-size: 24px !important;
    line-height: 26px !important;
    min-height: 26px;
    margin: 0;
    padding: 0;
    display: block;
    font-variant-ligatures: none;
}

.input-line {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-top: 0;
}

.input-line span {
    margin-right: 5px;
    font-weight: normal;
    height: 26px;
    line-height: 26px;
    white-space: nowrap;
}

textarea {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: 'VT323', 'Noto Sans Devanagari', monospace;
    font-size: 24px;
    min-height: 26px;
    height: 26px;
    line-height: 26px;
    outline: none;
    flex: 1;
    padding: 0;
    margin: 0;
    text-align: left;
    font-weight: normal;
    caret-shape: block; 
    font-variant-ligatures: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed; 
    resize: none;
    overflow: hidden;
}