:root {
    --bg-color: #000;
    --text-color: #00ff00;
    --dim-text: #008800;
    --error-color: #ff0000;
    --font-stack: 'Courier New', Courier, monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.terminal-container {
    width: 90%;
    max-width: 800px;
    height: 80vh;
    border: 1px solid var(--text-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    display: flex;
    flex-direction: column;
    padding: 10px;
    position: relative;
}

.terminal-header {
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.terminal-body {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.output-log {
    margin-bottom: 20px;
}

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

.line.success { color: #00ff00; }
.line.error { color: var(--error-color); }
.line.small { font-size: 0.8rem; color: var(--dim-text); }

.prompt-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.prompt {
    font-weight: bold;
}

textarea {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: var(--font-stack);
    font-size: 1rem;
    flex-grow: 1;
    resize: none;
    outline: none;
    height: 100px;
}

.security-check {
    margin-bottom: 20px;
}

.cmd-btn {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 10px 20px;
    font-family: var(--font-stack);
    cursor: pointer;
    transition: all 0.3s;
}

.cmd-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.terminal-footer {
    border-top: 1px solid var(--text-color);
    padding-top: 5px;
    margin-top: 15px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
}

.cursor {
    animation: blink 1s infinite;
}

/* Hide the Turnstile badge to keep terminal clean */
.cf-turnstile {
    display: none !important;
}

input[type="text"], input[type="password"] {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--dim-text);
    color: var(--text-color);
    font-family: var(--font-stack);
    font-size: 1rem;
    outline: none;
    width: 200px;
    margin-bottom: 10px;
}

input:focus {
    border-bottom: 1px solid var(--text-color);
}

#room-setup-form {
    margin-top: 15px;
    border: 1px dashed var(--dim-text);
    padding: 10px;
}

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

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Scrollbar Styling */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--dim-text); }
::-webkit-scrollbar-thumb:hover { background: var(--text-color); }