@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

body {
    font-family: 'Tajawal', sans-serif;
}

/* Custom styles for RTL layout */
[dir="rtl"] .list-disc {
    list-style-type: disc;
    padding-right: 1.25rem;
}
/* MathJax and markdown styles */
.MathJax {
    font-size: 1em !important;
    color: #4b5563 !important;
}

/* Ensure markdown content is properly aligned in RTL */
[dir="rtl"] .question-text p,
[dir="rtl"] .answer-text p,
[dir="rtl"] .question-text ul,
[dir="rtl"] .answer-text ul,
[dir="rtl"] .question-text ol,
[dir="rtl"] .answer-text ol {
    text-align: right;
    direction: rtl;
}
/* Answer breakdown styles */
#answer-breakdown h4 {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

#answer-breakdown ul {
    list-style-position: outside;
    padding-right: 1.5rem;
}

#answer-breakdown li {
    margin-bottom: 0.5rem;
}

/* Markdown styles */
.question-text p, .answer-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Metadata tags */
#metadata-tags span {
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
}
.question-text strong, .answer-text strong {
    font-weight: 700;
    color: #1e40af;
}

.question-text em, .answer-text em {
    font-style: italic;
}

.question-text ul, .answer-text ul {
    list-style-type: disc;
    padding-right: 1.5rem;
    margin-bottom: 1rem;
}

.question-text ol, .answer-text ol {
    list-style-type: decimal;
    padding-right: 1.5rem;
    margin-bottom: 1rem;
}

.question-text li, .answer-text li {
    margin-bottom: 0.5rem;
}

.question-text code, .answer-text code {
    font-family: monospace;
    background-color: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.question-text pre, .answer-text pre {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.question-text blockquote, .answer-text blockquote {
    border-right: 4px solid #d1d5db;
    padding-right: 1rem;
    margin-right: 0;
    margin-left: 1rem;
    color: #4b5563;
}
/* Custom card shadow */
.shadow-lg {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}