/* Custom styles for Trading Bot Dashboard */

:root {
    --color-bg: #030712;
    --color-surface: #111827;
    --color-border: #1f2937;
    --color-text: #f9fafb;
    --color-text-muted: #9ca3af;
    --color-primary: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #374151 transparent;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #374151;
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #4b5563;
}

.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

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

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

.animate-slide-in {
    animation: slide-in 0.3s ease-out;
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

/* Status indicators */
.status-running {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.status-running .status-dot {
    background-color: #10b981;
}

.status-stopped {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.status-stopped .status-dot {
    background-color: #ef4444;
}

.status-connecting {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.status-connecting .status-dot {
    background-color: #f59e0b;
}

/* Log entries */
.log-entry {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    background-color: rgba(31, 41, 55, 0.3);
    animation: slide-in 0.2s ease-out;
}

.log-entry.log-info {
    border-left: 2px solid #3b82f6;
}

.log-entry.log-agent {
    border-left: 2px solid #10b981;
    background-color: rgba(16, 185, 129, 0.05);
}

.log-entry.log-warning {
    border-left: 2px solid #f59e0b;
    background-color: rgba(245, 158, 11, 0.05);
}

.log-entry.log-error {
    border-left: 2px solid #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.log-entry.log-trade {
    border-left: 2px solid #8b5cf6;
    background-color: rgba(139, 92, 246, 0.05);
}

.log-timestamp {
    color: #6b7280;
    font-size: 0.65rem;
}

.log-message {
    color: #d1d5db;
}

/* Agent cards */
.agent-card {
    background-color: rgba(31, 41, 55, 0.3);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(55, 65, 81, 0.5);
    animation: slide-in 0.3s ease-out;
}

.agent-card.active {
    border-color: rgba(16, 185, 129, 0.3);
    background-color: rgba(16, 185, 129, 0.05);
}

.agent-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.agent-icon.technical {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.agent-icon.grid {
    background-color: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.agent-icon.risk {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.agent-icon.supervisor {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* Price indicators */
.price-up {
    color: #10b981;
}

.price-down {
    color: #ef4444;
}

/* Chart container */
#chart-container {
    background-color: #0a0f1a;
}

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
}

/* Button styles */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hide-mobile {
        display: none;
    }
}

/* Custom backdrop blur for older browsers */
@supports not (backdrop-filter: blur(12px)) {
    .backdrop-blur-xl {
        background-color: rgba(3, 7, 18, 0.95);
    }
}

/* Trading signals */
.signal-buy {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.signal-sell {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.signal-hold {
    background-color: rgba(107, 114, 128, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Number formatting */
.positive {
    color: #10b981;
}

.negative {
    color: #ef4444;
}

.neutral {
    color: #9ca3af;
}
