/* 
 * forge-ui - Premium RTL Support 
 * Specialized alignments and typography for Arabic layouts.
 */

[dir="rtl"] {
    text-align: right;
}

[lang="ar"] h1, 
[lang="ar"] h2, 
[lang="ar"] h3, 
[lang="ar"] h4, 
[lang="ar"] h5, 
[lang="ar"] h6 {
    line-height: 1.35;
    letter-spacing: 0;
}

/* Navbar RTL */
[dir="rtl"] .navbar-nav {
    margin-right: 0;
    margin-left: 2rem;
}

/* Sidebar & Dashboard RTL */
[dir="rtl"] aside {
    border-right: none;
    border-left: 1px solid var(--color-border);
}

/* Removed faulty dashboard-layout from RTL */

/* Hero & Search RTL */
[dir="rtl"] .search-box button {
    border-radius: 8px 0 0 8px; /* Assuming search box uses combined input/button */
}

/* Buttons RTL Icons */
[dir="rtl"] .btn i:first-child {
    margin-right: 0;
    margin-left: 0.625rem;
}

[dir="rtl"] .btn i:last-child {
    margin-left: 0;
    margin-right: 0.625rem;
}

/* Form Groups RTL */
[dir="rtl"] .input-group label {
    text-align: right;
}

/* Tables RTL */
[dir="rtl"] .table th,
[dir="rtl"] .table td {
    text-align: right;
}

/* Stat Widgets RTL */
[dir="rtl"] .stat-pill i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Animation Direction Mirroring */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    [dir="rtl"] .dashboard-layout {
        grid-template-columns: 1fr;
    }
}
