/* Terminal Modal Styles */
.terminal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.terminal-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-window {
    background: #0c0c0c;
    border: 1px solid #333;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    animation: slideIn 0.4s ease;
}

.terminal-header {
    background: #1e1e1e;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
}

.terminal-title {
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-icon {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.terminal-buttons {
    display: flex;
    gap: 10px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.2s;
}

.terminal-btn:hover {
    opacity: 0.8;
}

.terminal-btn.minimize {
    background: #f1c40f;
}

.terminal-btn.maximize {
    background: #27ae60;
}

.terminal-btn.close {
    background: #e74c3c;
}

.terminal-body {
    background: #0c0c0c;
    padding: 20px;
    height: 500px;
    overflow-y: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    color: #00ff00;
    line-height: 1.6;
}

.terminal-body::-webkit-scrollbar {
    width: 10px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 5px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.terminal-line {
    margin: 8px 0;
    opacity: 0;
    animation: fadeInLine 0.3s forwards;
}

.terminal-prompt {
    color: #00d9ff;
    font-weight: bold;
}

.terminal-command {
    color: #f39c12;
}

.terminal-output {
    color: #00ff00;
    margin-left: 0;
}

.terminal-header-text {
    color: #fff;
    font-weight: bold;
    margin: 15px 0 10px 0;
    font-size: 16px;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #00ff00;
    animation: blink-cursor 1s infinite;
    margin-left: 2px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInLine {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes blink-cursor {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .terminal-window {
        width: 95%;
        max-height: 90vh;
    }

    .terminal-body {
        font-size: 12px;
        padding: 15px;
        height: 400px;
    }

    .terminal-header-text {
        font-size: 14px;
    }
}