/* Custom CSS for Borsify AI */

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Custom animations */
@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-green {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-red {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge-blue {
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

/* Timeline post styles */
.timeline-post {
    border-left: 2px solid transparent;
    transition: border-left-color 0.3s ease;
}

.timeline-post:hover {
    border-left-color: #6366f1;
}

/* Sidebar collapse */
#sidebar.collapsed { width: 4.5rem; }
#sidebar.collapsed .menu-item { justify-content: center; align-items: center; }
#sidebar.collapsed .menu-item span { display: none; }
#sidebar.collapsed .menu-item svg { display: block; margin: 0 auto; }
#sidebar.collapsed .p-6 h1, #sidebar.collapsed .p-6 p { display: none; }
#sidebar.collapsed .pt-6 > p { display: none; }
#content.collapsed { margin-left: 4.5rem; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-padding {
        padding-bottom: 5rem;
    }
}

/* Light theme overrides (global, consistent across pages) */
html[data-theme="light"] .bg-slate-950 { background-color: #f8fafc !important; }
html[data-theme="light"] .bg-slate-950\/80 { background-color: rgba(248,250,252,0.8) !important; }
html[data-theme="light"] .bg-slate-900 { background-color: #ffffff !important; }
html[data-theme="light"] .bg-slate-900\/80 { background-color: rgba(255,255,255,0.8) !important; }
html[data-theme="light"] .bg-slate-800 { background-color: #f1f5f9 !important; }
html[data-theme="light"] .bg-slate-800\/50 { background-color: rgba(241,245,249,0.5) !important; }
html[data-theme="light"] .border-slate-700 { border-color: #e5e7eb !important; }
html[data-theme="light"] .border-slate-800 { border-color: #e5e7eb !important; }
html[data-theme="light"] .text-white { color: #0f172a !important; }
html[data-theme="light"] .text-slate-100 { color: #0f172a !important; }
html[data-theme="light"] .text-slate-200 { color: #0f172a !important; }
html[data-theme="light"] .text-slate-300 { color: #334155 !important; }
html[data-theme="light"] .text-slate-400 { color: #475569 !important; }
html[data-theme="light"] .text-slate-500 { color: #64748b !important; }
html[data-theme="light"] .from-slate-800 { --tw-gradient-from: #eef2ff !important; }
html[data-theme="light"] .to-slate-900 { --tw-gradient-to: #ffffff !important; }

/* Global candle mini chart styles (ensure visible on PJAX/Vite navigation) */
.candle { transition: all 0.3s; }
.candle-green { background: linear-gradient(180deg, #10b981 0%, #059669 100%); }
.candle-red { background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%); }
.candle-doji { background: #64748b; }
