/* Styles for the Cyber Opsec Terminal Popup */

.terminal-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.terminal-popup-overlay.visible {
    display: flex;
    opacity: 1;
}

.terminal-window {
    width: 80%;
    max-width: 800px;
    height: 70%;
    max-height: 600px;
    background-color: #012456; /* PowerShell blue */
    border: 1px solid #fff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.visible .terminal-window {
    transform: scale(1);
}

.terminal-title-bar {
    background-color: #ccc;
    color: #000;
    padding: 5px 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.terminal-title {
    font-weight: bold;
}

.terminal-controls {
    display: flex;
}

.terminal-close-btn {
    background-color: #ff5f57;
    border: 1px solid #e0443e;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #9d252b;
    font-weight: bold;
    font-size: 10px;
}

.terminal-close-btn:hover {
    background-color: #e0443e;
}

.terminal-body {
    flex-grow: 1;
    padding: 15px;
    color: #c0c0c0;
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
    font-size: 14px;
    overflow-y: auto;
    white-space: pre-wrap; /* Allows text to wrap */
    word-wrap: break-word;
}

.terminal-body p {
    margin: 0 0 5px 0;
}

.terminal-body .prompt {
    color: #fff;
}

.terminal-body .output {
    color: #00ff00; /* Green for output */
}

.terminal-body .cursor {
    display: inline-block;
    background-color: #fff;
    width: 8px;
    height: 1.2em;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { background-color: transparent }
    50% { background-color: #fff; }
}