/* Terminal Styles */
.terminal-header {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terminal-btn.close {
    background: #ff5f56;
}

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

.terminal-btn.maximize {
    background: #27ca3f;
}

.terminal-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    color: #ecf0f1;
    flex: 1;
    text-align: center;
}

.terminal-body {
    background: #1e1e1e;
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #ecf0f1;
    min-height: 400px;
    position: relative;
}

#terminal-output {
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-line {
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeInUp 0.3s ease-out;
}

.terminal-prompt {
    color: #00d4aa;
    font-weight: 600;
    min-width: 80px;
    user-select: none;
}

.terminal-command {
    color: #ecf0f1;
    flex: 1;
    font-weight: 500;
}

.terminal-output {
    color: #95a5a6;
    margin-left: 90px;
    white-space: pre-wrap;
    line-height: 1.5;
    animation: typewriter 0.5s ease-out;
}

.terminal-error {
    color: #e74c3c;
    font-weight: 500;
}

.terminal-success {
    color: #27ae60;
    font-weight: 500;
}

.terminal-info {
    color: #3498db;
    font-weight: 500;
}

.terminal-warning {
    color: #f39c12;
    font-weight: 500;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.prompt {
    color: #00d4aa;
    font-weight: 600;
    user-select: none;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ecf0f1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    outline: none;
    caret-color: #00d4aa;
}

#terminal-input::placeholder {
    color: #7f8c8d;
}

.terminal-sidebar {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    width: 300px;
}

.terminal-sidebar h4 {
    color: #00d4aa;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.quick-commands {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.quick-cmd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ecf0f1;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quick-cmd:hover {
    background: rgba(0, 212, 170, 0.2);
    border-color: #00d4aa;
    transform: translateX(5px);
}

.terminal-sidebar p {
    color: #95a5a6;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* Terminal Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #00d4aa;
    animation: blink 1s infinite;
    margin-left: 2px;
}

/* Command History */
.command-history {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    max-width: 300px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.command-history.show {
    display: block;
    animation: slideInRight 0.3s ease-out;
}

.command-history-item {
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
    font-size: 12px;
    color: #ecf0f1;
}

.command-history-item:hover {
    background: rgba(0, 212, 170, 0.2);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Terminal Container Layout */
.terminal-container {
    display: flex;
    flex-direction: column;
}

.terminal-main {
    display: flex;
    flex: 1;
}

.terminal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Responsive Terminal */
@media (max-width: 768px) {
    .terminal-main {
        flex-direction: column;
    }
    
    .terminal-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .terminal-body {
        min-height: 300px;
    }
    
    .quick-commands {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .quick-cmd {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

/* Custom Scrollbar for Terminal */
.terminal-body::-webkit-scrollbar,
.terminal-sidebar::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track,
.terminal-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb,
.terminal-sidebar::-webkit-scrollbar-thumb {
    background: #00d4aa;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover,
.terminal-sidebar::-webkit-scrollbar-thumb:hover {
    background: #00b894;
}

/* Command Output Styling */
.docker-output {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #00d4aa;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.docker-error {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.docker-success {
    border-left-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.docker-info {
    border-left-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

/* Loading Animation */
.terminal-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 212, 170, 0.3);
    border-radius: 50%;
    border-top-color: #00d4aa;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Command Suggestions */
.command-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-height: 150px;
    overflow-y: auto;
    display: none;
}

.command-suggestions.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(0, 212, 170, 0.2);
}

.suggestion-item.selected {
    background: rgba(0, 212, 170, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 