/* Terminal Style - BNB Chain AI Agent */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    background: #000000;
    color: #00ff00;
    line-height: 1.4;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
    font-size: 14px;
    cursor: text;
    height: 100vh;
}

/* Terminal cursor animation */
@keyframes terminal-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes terminal-scan {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000000;
    border: 1px solid #00ff00;
}

/* Terminal Header */
.header {
    background: #000000;
    border-bottom: 1px solid #00ff00;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #00ff00;
    animation: terminal-scan 3s linear infinite;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    width: 24px;
    height: 24px;
    border: 1px solid #00ff00;
    image-rendering: pixelated;
}

.logo h1 {
    font-size: 14px;
    font-weight: normal;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: #000000;
    border: 1px solid #00ff00;
    font-size: 10px;
    font-family: 'Courier New', monospace;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: 0;
    animation: terminal-blink 1s infinite;
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    background: #000000;
}

/* Terminal Chat Area */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000000;
    border-right: 1px solid #00ff00;
    min-height: 0;
    max-height: calc(100vh - 140px);
}

.chat-header {
    background: #000000;
    border-bottom: 1px solid #00ff00;
    padding: 0.5rem 1rem;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    background: #000000;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    min-height: 0;
}

/* Terminal Message Styles */
.message {
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.message-content {
    background: #000000;
    border: 1px solid #00ff00;
    padding: 0.5rem;
    position: relative;
}

.user-message .message-content {
    border-left: 3px solid #00ff00;
    margin-left: 2rem;
}

.ai-message .message-content {
    border-left: 3px solid #00aa00;
    margin-right: 2rem;
}

.system-message .message-content {
    border-left: 3px solid #ffaa00;
    background: #001100;
}

.message-header {
    font-size: 10px;
    color: #00aa00;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.user-message .message-header {
    color: #00ff00;
}

.system-message .message-header {
    color: #ffaa00;
}

.ai-response {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

.ai-response strong {
    color: #00ff00;
    font-weight: bold;
}

.ai-response em {
    color: #00aa00;
    font-style: italic;
}

.ai-response span {
    color: inherit;
}

.ai-response .positive {
    color: #00ff00;
    font-weight: bold;
}

.ai-response .negative {
    color: #ff0000;
    font-weight: bold;
}

.ai-response ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.ai-response li {
    margin: 0.3rem 0;
    color: #00ff00;
}

.ai-response code {
    background: #001100;
    border: 1px solid #00ff00;
    padding: 0.2rem 0.4rem;
    font-family: 'Courier New', monospace;
    color: #00ff00;
}

/* Terminal Input */
.chat-input-container {
    background: #000000;
    border-top: 1px solid #00ff00;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.terminal-prompt {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.chat-input {
    flex: 1;
    background: #000000;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    outline: none;
}

.chat-input:focus {
    border-color: #00aa00;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.send-button {
    background: #000000;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 0.5rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
}

.send-button:hover {
    background: #001100;
    border-color: #00aa00;
}

/* Terminal Sidebar */
.sidebar {
    width: 300px;
    background: #000000;
    border-left: 1px solid #00ff00;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget {
    background: #000000;
    border: 1px solid #00ff00;
    padding: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.widget-header {
    color: #00ff00;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 0.3rem;
}

.widget-content {
    color: #00ff00;
    line-height: 1.4;
}

.price-change {
    font-weight: bold;
}

.price-change.positive {
    color: #00ff00;
}

.price-change.negative {
    color: #ff0000;
}

/* Terminal Footer */
.footer {
    background: #000000;
    border-top: 1px solid #00ff00;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 10px;
    font-family: 'Courier New', monospace;
    color: #00aa00;
    text-transform: uppercase;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: 'Courier New', monospace;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid #00ff00;
    border-top: 2px solid transparent;
    border-radius: 0;
    animation: terminal-spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes terminal-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #00ff00;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
}

.loading-message {
    color: #00aa00;
    font-size: 12px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

/* Terminal Effects */
.terminal-text {
    font-family: 'Courier New', monospace;
    color: #00ff00;
}

.command-line {
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

.command-line::before {
    content: '> ';
    color: #00aa00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #00ff00;
    }
    
    .chat-input-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .chat-input {
        width: 100%;
    }
}

/* Scrollbar Styling - Only for chat messages */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #000000;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #00ff00;
    border: 1px solid #000000;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #00aa00;
}

/* Firefox scrollbar styling for chat messages */
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #00ff00 #000000;
}

/* Selection Styling */
::selection {
    background: #00ff00;
    color: #000000;
}

::-moz-selection {
    background: #00ff00;
    color: #000000;
}

/* Two-column layout for Available Commands */
.commands-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    margin: 1rem 0;
}

.commands-columns .command-item {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .commands-columns {
        grid-template-columns: 1fr;
    }
}