/* RTL Text Support for Arabic */
/* UI 레이아웃 순서는 다른 언어와 동일, 아랍어 텍스트 방향만 처리 */

/* 전체 텍스트 방향 RTL (레이아웃은 body에서 LTR로 되돌림) */
html.ar {
    direction: rtl;
}

html.ar body {
    direction: ltr;
}

/* 텍스트 블록만 RTL + 우측 정렬 */
html.ar p,
html.ar h1, html.ar h2, html.ar h3, html.ar h4, html.ar h5, html.ar h6,
html.ar li,
html.ar label,
html.ar dd, html.ar dt {
    direction: rtl;
    text-align: right;
}

/* 인라인 텍스트는 방향만 (정렬은 부모 따름) */
html.ar span,
html.ar a {
    direction: rtl;
}

/* 버튼은 가운데 정렬 유지, 텍스트 방향만 RTL */
html.ar button {
    direction: rtl;
}

/* Tailwind text-center 유지 */
html.ar .text-center,
html.ar [class*="text-center"] {
    text-align: center;
}

/* Chart canvases LTR 유지 */
html.ar canvas {
    direction: ltr;
}

/* Language switcher LTR 유지 */
html.ar .language-switcher {
    direction: ltr;
    text-align: left;
}
