/* Terminal Styles for Agent Section */

.terminal {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}

.terminal-header {
    background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #1a1a1a;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
}

.terminal-button.red { background: #ff5f56; }
.terminal-button.yellow { background: #ffbd2e; }
.terminal-button.green { background: #27ca40; }

.terminal-title {
    color: #999;
    font-size: 13px;
    margin-left: 10px;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    color: #00ff00;
    line-height: 1.6;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.terminal-line {
    margin-bottom: 10px;
    word-wrap: break-word;
}

.terminal-line.command {
    color: #00ff00;
}

.terminal-line.response {
    color: #e0e0e0;
    white-space: pre-wrap;
}

.terminal-line.system {
    color: #888;
}

.terminal-line.error {
    color: #ff5f56;
}

.terminal-line a {
    color: #5af;
    text-decoration: none;
}

.terminal-line a:hover {
    text-decoration: underline;
}

.prompt {
    color: #5af;
    margin-right: 8px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-input {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #00ff00;
    font-family: inherit;
    font-size: inherit;
    flex: 1;
    outline: none !important;
    box-shadow: none !important;
    caret-color: #00ff00;
    padding: 0;
    margin: 0;
}

.terminal-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.terminal-input::placeholder {
    color: #444;
}

.loading::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* Suggested commands */
.suggestions {
    margin-top: 20px;
}

.suggestions h4 {
    color: #888;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestions li {
    background: #1a1a1a;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #5af;
    cursor: pointer;
    border: 1px solid #333;
    transition: all 0.2s;
}

.suggestions li:hover {
    background: #252525;
    border-color: #5af;
}

/* Make terminal fill the article */
#agent {
    display: flex;
    flex-direction: column;
}

#agent .terminal {
    flex: 1;
}

#agent .terminal-body {
    min-height: 400px;
}