.p-6 {
    padding: 1rem !important;
}
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Prose styles for markdown content */
.prose {
    color: #374151;
    line-height: 1.75;
}
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: #111827;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.prose h1 { font-size: 1.875rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.125rem; }
.prose p {
    margin-bottom: 1em;
}
.prose ul, .prose ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}
.prose li {
    margin-bottom: 0.25em;
}
.prose strong {
    font-weight: 600;
    color: #111827;
}
.prose em {
    font-style: italic;
}
.prose code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}
.prose blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

/* Streaming animation styles */
.streaming-content {
    animation: fadeInUp 0.3s ease-out;
}

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

.typing-indicator {
    animation: blink 1s infinite;
}

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

/* Modal close button styles */
.modal-close-btn {
    position: relative;
    z-index: 9999;
    pointer-events: auto !important;
}

.modal-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Ensure modal content is above TradingView widget */
.modal-content {
    position: relative;
    z-index: 1000;
}

/* TradingView widget container */
.tradingview-widget-container {
    position: relative;
    z-index: 1;
}

.tradingview-widget-container iframe {
    pointer-events: auto;
}


/* TradingView Widget Styling */
.tradingview-widget-container {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    width: 100%;
    display: block;
}

/* Ensure TradingView widgets take full width */
.tradingview-widget-container iframe {
    width: 100% !important;
    border: none;
}

.tradingview-widget-container:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Compact market overview specific styling */
.market-overview-compact {
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.market-overview-compact h3 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.market-overview-compact .tradingview-widget-container {
    height: 50px !important;
    max-height: 50px !important;
}

/* Pulse animation for loading states */
.pulse-loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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