body.rtl {
    direction: rtl;
    font-family: 'Noto Sans Arabic', 'Space Grotesk', sans-serif;
}

body.rtl .sidebar {
    right: 0;
    left: auto;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

body.rtl .nav-item.active::before {
    right: -8px;
    left: auto;
    border-radius: 4px 0 0 4px;
}

body.rtl .nav-tooltip {
    right: 100%;
    left: auto;
    margin-right: 0.5rem;
    margin-left: 0;
}

body.rtl .nav-item:hover .nav-tooltip {
    transform: translateX(-8px);
}


body.rtl .main-content {
    margin-right: 80px;
    margin-left: 0;
}

/* Header Layout*/

body.rtl .players-counter {
    order: 2;
    margin-left: 1.5rem;
    margin-right: 0;
}

body.rtl .profile-selector {
    order: -1;
}

body.rtl .window-controls {
    order: 3;
    flex-direction: row;
}

body.rtl .profile-dropdown {
    right: auto;
    left: 0;
}



body.rtl .form-group {
    text-align: right;
}

body.rtl .radio-label,
body.rtl .checkbox-group {
    flex-direction: row-reverse;
}

body.rtl .form-input {
    border-radius: 0 8px 8px 0;
}


body.rtl .mods-pagination {
    flex-direction: row-reverse;
}

body.rtl .pagination-btn:first-child i {
    transform: rotate(180deg);
}

body.rtl .pagination-btn:last-child i {
    transform: rotate(180deg);
}

/* UUID Display */

body.rtl .uuid-display-container {
    flex-direction: row-reverse;
}

body.rtl .uuid-btn {
    border-radius: 0 8px 8px 0;
}

body.rtl .uuid-input {
    border-radius: 8px 0 0 8px;
}


body.rtl .segmented-control {
    flex-direction: row-reverse;
}

/*  Mod Grid Layout */
body.rtl .mods-search {
    text-align: right;
}

body.rtl .mods-search-container {
    flex-direction: row-reverse;
}

body.rtl .mods-actions {
    order: -1;
}

body.rtl .mod-card {
    direction: rtl;
}

body.rtl .installed-mod-card {
    direction: rtl;
}

body.rtl .installed-mod-card .mod-info {
    text-align: right;
}

body.rtl .mods-header {
    flex-direction: row-reverse;
}

body.rtl .news-section .news-header {
    flex-direction: row-reverse;
}

/* Settings Layout */

body.rtl .settings-option {
    text-align: right;
}

body.rtl .settings-input-group {
    text-align: right;
}

body.rtl .settings-input {
    border-radius: 0 8px 8px 0;
}

body.rtl .settings-section-title i {
    margin-right: 0;
    margin-left: 0.5rem;
}

body.rtl .settings-hint i {
    margin-right: 0;
    margin-left: 0.5rem;
}

body.rtl .custom-options,
body.rtl .custom-java-options {
    text-align: right;
}

body.rtl .checkbox-content {
    margin-right: 2rem;
    margin-left: 0;
}

body.rtl .btn-content {
    text-align: right;
}

/* Icons & Transformations */

body.rtl .news-title i {
    padding-left: 0.5rem;
}
body.rtl .uuid-modal-title i {
    padding-left: 0.5rem;
}
body.rtl .mods-modal-title i {
    padding-left: 0.5rem;
}

body.rtl .view-all-btn i,
body.rtl .sidebar-nav div i,
body.rtl .logs-header i,
body.rtl .home-play-button i {
    transform: scaleX(-1);
}

body.rtl .play-title i {
    transform: scaleX(-1);
    padding-right: 0.5rem;
}


body.rtl .logs-terminal {
    direction: ltr;
    text-align: left;
}

body.rtl .version-display-bottom {
    right: auto;
    left: 1rem;
}