/* Scrollbar Customization */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
.dark ::-webkit-scrollbar-track { background: #1e293b; }
::-webkit-scrollbar-thumb { background: #166534; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #14532d; }

/* Typing Animation for AI Chat */
.typing-dot { animation: typing 1.4s infinite ease-in-out both; }
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Markdown Styles in Chat */
.prose ul { list-style-type: disc; padding-left: 1.5em; margin: 0.5em 0; }
.prose strong { font-weight: 700; color: inherit; }
.prose p { margin-bottom: 0.5em; }
.prose p:last-child { margin-bottom: 0; }

/* Language Transition Class */
.fade-lang {
    transition: opacity 0.3s ease-in-out;
}
.opacity-0 {
    opacity: 0;
}

/* Navbar Fix */
nav {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Arabic Font Support */
.font-arabic {
    font-family: 'Noto Sans Arabic', sans-serif;
}