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

body {
    background-color: #080a08;
    color: #00ff66;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.night-theme {
    background-color: #0d0505;
    color: #ff4444;
}

/* Effet CRT Screen Scanlines */
.crt-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    ), linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.03),
        rgba(0, 255, 0, 0.01),
        rgba(0, 0, 255, 0.03)
    );
    background-size: 100% 3px, 6px 100%;
    pointer-events: none;
    z-index: 99;
}

.terminal-container {
    width: 90vw;
    max-width: 950px;
    height: 85vh;
    border: 1px solid currentColor;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.2);
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: rgba(5, 12, 5, 0.95);
}

body.night-theme .terminal-container {
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
    background-color: rgba(15, 5, 5, 0.95);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid currentColor;
    padding-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
}

.terminal-header button {
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
}

.terminal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
    line-height: 1.5;
}

.line {
    word-break: break-word;
    margin-bottom: 4px;
}

.sys-msg { opacity: 0.85; font-style: italic; }
.cmd-highlight { text-decoration: underline; font-weight: bold; }
.user-cmd { font-weight: bold; opacity: 0.9; }
.error-msg { color: #ff5555; }
body.night-theme .error-msg { color: #ffaa55; }
.success-msg { color: #55ffff; }

.terminal-input-line {
    display: flex;
    align-items: center;
    border-top: 1px solid currentColor;
    padding-top: 10px;
}

.prompt {
    margin-right: 10px;
    font-weight: bold;
}

#cmd-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: inherit;
    font-family: inherit;
    font-size: 15px;
}
