/* RTL-specific overrides */
.sidebar {
    float: right;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: none;
}

/* Profile dropdown specific RTL adjustments */
.profile-dropdown {
    direction: ltr; /* Keep image left, text right */
    margin-left: 20px; /* Spacing from settings icon */
}

.profile-dropdown span {
    margin-right: 0;
    margin-left: 10px; /* Space between image and text */
}

/* Ensure dropdown menu stays right-aligned */
.dropdown-menu {
    left: 20px; /* Align to the right */
    left: auto;
    text-align: left; /* Align text to the left */
}

/* Adjust icon spacing in dropdown */
.dropdown-menu i {
    margin-left: 0;
    margin-right: 8px;
}

.widget-card {
    direction: rtl;
    text-align: right;
}

.chart-card h3 {
    direction: rtl;
}

.activity-list {
    direction: rtl;
}

/* Form elements */
input, textarea, select {
    text-align: right;
    direction: rtl;
}

/* Navigation elements */
.nav-tabs > li {
    float: right;
    margin-left: 0;
    margin-right: 2px;
}

/* Breadcrumbs */
.breadcrumb {
    direction: rtl;
    text-align: right;
}

/* Pagination */
.pagination {
    direction: rtl;
}

/* Tooltips */
.tooltip {
    direction: rtl;
    text-align: right;
}

/* Modal dialogs */
.modal-header .close {
    float: left;
    margin: -1rem auto -1rem -1rem;
}

/* List groups */
.list-group-item {
    text-align: right;
}

/* Badges */
.badge {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Alerts */
.alert {
    text-align: right;
}

/* Progress bars */
.progress {
    direction: ltr; /* Keep progress animation LTR */
}

/* Custom form controls */
.custom-control {
    padding-right: 1.5rem;
    padding-left: 0;
}

.custom-control-label::before,
.custom-control-label::after {
    right: 0;
    left: auto;
}
