@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap');

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

body {
    background: #0d1117;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fira Code', monospace;
    padding: 20px;
}

.terminal {
    width: 100%;
    max-width: 900px;
    height: 600px;
    background: #1a1a2e;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #16162a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #2a2a4a;
}

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

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f56; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #27ca40; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.terminal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    color: #00ff00;
    font-size: 14px;
    line-height: 1.6;
}

.output {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.output .command {
    color: #00ff00;
}

.output .response {
    color: #e0e0e0;
}

.output .error {
    color: #ff6b6b;
}

.output .system {
    color: #61dafb;
}

.input-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt {
    color: #00ff00;
    white-space: nowrap;
}

#command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    outline: none;
    caret-color: #00ff00;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { caret-color: transparent; }
}

#command-input::selection {
    background: #00ff0040;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #3a3a5a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a6a;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border: 2px solid #61dafb;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ff6b6b;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ff0000;
}

.modal-info {
    color: #00ff00;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    margin-top: 10px;
}

.modal-nav {
    color: #888;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.modal-hint {
    color: #666;
}
