/* Terminal Black Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.terminal-container {
    width: 100%;
    height: 100vh;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #1a1a1a;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-button.close {
    background: #ff5f57;
}

.terminal-button.minimize {
    background: #ffbd2e;
}

.terminal-button.maximize {
    background: #28ca42;
}

.terminal-title {
    color: #00ff00;
    font-size: 13px;
    font-weight: bold;
    flex: 1;
    text-align: center;
    margin-right: 120px;
}

.terminal-body {
    flex: 1;
    padding: 15px;
    background: #000000;
    overflow-y: auto;
    position: relative;
}

#terminal-output {
    margin-bottom: 10px;
    min-height: calc(100% - 30px);
}

.terminal-line {
    margin-bottom: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-prompt {
    color: #00ff00;
    font-weight: bold;
    margin-right: 8px;
}

.terminal-text {
    color: #00ff00;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    position: sticky;
    bottom: 0;
    background: #000000;
    padding: 5px 0;
}

#terminal-input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex: 1;
    caret-color: #00ff00;
}

.cursor {
    color: #00ff00;
    animation: blink 1s infinite;
}

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

/* Scrollbar styling */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Selection styling */
::selection {
    background: rgba(0, 255, 0, 0.3);
    color: #000;
}

/* Responsive design */
@media (max-width: 768px) {
    .terminal-body {
        padding: 10px;
        font-size: 12px;
    }

    .terminal-header {
        padding: 6px 10px;
    }

    .terminal-title {
        font-size: 11px;
        margin-right: 80px;
    }
}

/* Matrix-style glitch effect for special commands */
.glitch {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Typing effect for initial load */
.typing {
    border-right: 2px solid #00ff00;
    animation: typing 2s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00ff00; }
}