@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', monospace;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e0e0e0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.terminal-container {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    box-shadow: 
        0 20px 40px rgba(255, 165, 0, 0.1),
        0 8px 32px rgba(30, 144, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 75%;
    height: 80vh;
    border: 1px solid rgba(255, 165, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: terminalGlow 3s ease-in-out infinite alternate;
}

@keyframes terminalGlow {
    0% { box-shadow: 0 20px 40px rgba(255, 165, 0, 0.1), 0 8px 32px rgba(30, 144, 255, 0.1); }
    100% { box-shadow: 0 20px 40px rgba(255, 165, 0, 0.2), 0 8px 32px rgba(30, 144, 255, 0.2); }
}

.terminal-header {
    background: linear-gradient(90deg, #ff6b35 0%, #1e90ff 100%);
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.btn.close { background: #ff5f57; }
.btn.minimize { background: #ffbd2e; }
.btn.maximize { background: #28ca42; }

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.terminal-body {
    padding: 20px;
    height: calc(100% - 120px);
    overflow-y: auto;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 165, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(30, 144, 255, 0.03) 0%, transparent 50%),
        #0a0a0a;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(255, 165, 0, 0.1);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b35, #1e90ff);
    border-radius: 4px;
}

.terminal-line {
    margin-bottom: 12px;
    line-height: 1.6;
    word-wrap: break-word;
}

.prompt {
    color: #ff6b35;
    font-weight: 600;
    margin-right: 8px;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}

.welcome-text {
    color: #1e90ff;
    font-weight: 500;
}

.command {
    color: #90ee90;
}

.response {
    color: #e0e0e0;
    margin-left: 24px;
    padding: 10px 0;
    border-left: 3px solid #1e90ff;
    padding-left: 15px;
    background: rgba(30, 144, 255, 0.05);
    border-radius: 0 4px 4px 0;
}

.input-line {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 165, 0, 0.2);
    display: flex;
    align-items: center;
    border-radius: 0 0 12px 12px;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    outline: none;
    flex: 1;
    caret-color: #ff6b35;
    margin-left: 8px;
}

.terminal-input::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

.typing-indicator {
    color: #ff6b35;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.loading-dots {
    color: #1e90ff;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.options-container {
    margin-left: 24px;
    padding: 10px 0;
}

.option-item {
    color: #1e90ff;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 15px;
    margin-bottom: 4px;
}

.option-item:hover {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    border-left: 3px solid #ff6b35;
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}

.option-item:active {
    transform: translateX(2px);
    background: rgba(255, 107, 53, 0.2);
}

.auth-prompt-container {
    margin-left: 24px;
    padding: 5px 0;
}

.auth-field {
    margin-bottom: 5px;
}

.auth-label {
    color: #1e90ff;
    font-weight: 500;
    margin-left: 8px;
}

.terminal-link {
    color: #ff6b35;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terminal-link:hover {
    color: #1e90ff;
    text-shadow: 0 0 8px rgba(30, 144, 255, 0.3);
    text-decoration: none;
}

@media (max-width: 768px) {
    .terminal-container {
        width: 95%;
        height: 90vh;
    }
    
    .terminal-header {
        padding: 10px 15px;
    }
    
    .terminal-title {
        font-size: 14px;
    }
    
    .terminal-body {
        padding: 15px;
    }
    
    .input-line {
        padding: 12px 15px;
    }
}