/* ==========================================================================
   Plastaps Marketplace - RTL Stylesheet
   ========================================================================== */

/* General RTL Fixes */
body.rtl .plastaps-wrapper {
    direction: rtl;
    text-align: right;
}

body.rtl .plastaps-dashboard {
    flex-direction: row; /* Keeps sidebar on right in RTL */
}

body.rtl .plastaps-dashboard-sidebar {
    border-right: none;
    border-left: 1px solid #e2e8f0;
}

body.rtl .plastaps-sidebar-nav ul li a {
    text-align: right;
    flex-direction: row;
}

body.rtl .plastaps-sidebar-nav ul li a i {
    margin-right: 0;
    margin-left: 12px;
}

body.rtl .plastaps-sidebar-nav .nav-badge {
    margin-left: 0;
    margin-right: auto;
}

/* Header */
body.rtl .plastaps-dashboard-header {
    flex-direction: row;
}

body.rtl .plastaps-dashboard-header h1 i {
    margin-right: 0;
    margin-left: 10px;
}

/* Cards & Tables */
body.rtl .plastaps-card-header {
    flex-direction: row;
}

body.rtl .plastaps-table th,
body.rtl .plastaps-table td {
    text-align: right;
}

body.rtl .plastaps-table th:first-child,
body.rtl .plastaps-table td:first-child {
    border-radius: 0 8px 8px 0;
}

body.rtl .plastaps-table th:last-child,
body.rtl .plastaps-table td:last-child {
    border-radius: 8px 0 0 8px;
}

/* Buttons */
body.rtl .plastaps-btn i {
    margin-right: 0;
    margin-left: 8px;
}

body.rtl .plastaps-btn.plastaps-btn-sm i {
    margin-right: 0;
    margin-left: 6px;
}

/* Forms */
body.rtl .plastaps-form-group label i {
    margin-right: 0;
    margin-left: 6px;
}

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

/* Notifications */
body.rtl .plastaps-notification-item {
    text-align: right;
}

body.rtl .plastaps-notification-item > div {
    flex-direction: row;
}

body.rtl .plastaps-notification-item .plastaps-unread-dot {
    margin-left: 0;
    margin-right: 6px;
}

/* Bid Details Modal */
body.rtl #plastaps-bid-details-modal > div > div:first-child {
    flex-direction: row;
}

body.rtl #plastaps-bid-details-modal h3 i {
    margin-right: 0;
    margin-left: 8px;
}

body.rtl #plastaps-bid-details-body {
    text-align: right;
}

body.rtl #plastaps-bid-details-footer {
    justify-content: flex-start; /* Buttons align left in RTL */
}

/* Alerts */
body.rtl .plastaps-alert {
    flex-direction: row;
}

body.rtl .plastaps-alert i {
    margin-right: 0;
    margin-left: 12px;
}

/* Stat Cards */
body.rtl .plastaps-stat-card {
    text-align: right;
}