/* AI Site Global Styles */

/* Console Output Styles */
.console-line {
    font-size: 14px !important;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    padding: 1px 0;
    line-height: 1.4;
}

.console-line.command {
    color: #00ff88;
    font-weight: bold;
}

.console-line.error {
    color: #ff6666;
}

.console-line.warning {
    color: #ffaa00;
}

.console-line.success {
    color: #00ff88;
    font-weight: bold;
}

.console-line.info {
    color: #66aaff;
    opacity: 0.7;
}

.console-line.data {
    color: #00ff88;
    opacity: 0.8;
}

/* Browser Console Specific Styles */
.browser-console-line {
    font-size: 14px !important;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    padding: 1px 0;
    line-height: 1.4;
}

.browser-console-line.welcome {
    color: #e5e7eb;
}

.browser-console-line.info {
    color: #e5e7eb;
    opacity: 0.7;
}

.browser-console-line.example {
    color: #66aaff;
    opacity: 0.6;
}

.browser-console-line.log {
    color: #e5e7eb;
}

.browser-console-line.error {
    color: #ff6666;
}

.browser-console-line.warn {
    color: #ffaa66;
}

.browser-console-line.info-output {
    color: #66aaff;
}

.browser-console-line.log {
    color: #00ff88;
}

.browser-console-line.error {
    color: #ff6666;
}

.browser-console-line.warn {
    color: #ffaa00;
}

/* JavaScript Execution Styles */
.js-command-line {
    color: #e5e7eb;
    font-size: 14px !important;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-weight: bold;
}

.js-result-line {
    color: #66aaff;
    font-size: 14px !important;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    padding: 1px 0;
}

.js-error-line {
    color: #ff6666;
    font-size: 14px !important;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    padding: 1px 0;
}

/* Chat Interface Styles */
.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.user {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border-left: 3px solid #3b82f6;
    margin-left: 2rem;
}

.chat-message.assistant {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    border-left: 3px solid #10b981;
    margin-right: 2rem;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-indicator.online {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-indicator.offline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-indicator.processing {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Animation Utilities */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Typography */
.monospace {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

.text-gradient {
    background: linear-gradient(135deg, #a855f7, #ec4899, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Elements */
.ai-input {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
    border: 2px solid transparent;
    color: #e5e7eb;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.ai-input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
    border-color: rgba(236, 72, 153, 0.5);
}

.ai-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

/* Button Styles */
.ai-button {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #e5e7eb;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.ai-button:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}

.ai-button:active {
    transform: translateY(0);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(236, 72, 153, 0.2),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

/* Responsive Design Helpers */
@media (max-width: 768px) {
    .console-line,
    .browser-console-line,
    .js-command-line,
    .js-result-line,
    .js-error-line {
        font-size: 12px;
    }
    
    .chat-message {
        font-size: 13px;
        margin-left: 1rem;
        margin-right: 1rem;
    }
}