
body {
    margin: 0;
    font-family: Arial, sans-serif;
    direction: rtl; /* Set text direction to right-to-left */
}

/* Sidebar adjusted for RTL */
.sidebar {
    width: 250px;
    height: calc(100vh - 56px); /* Adjust for navbar height */
    background-color: #f8f9fa;
    position: fixed;
    top: 56px; /* Match navbar height */
    right: 0; /* Move sidebar to the right side */
    border-left: 1px solid #dee2e6; /* Change border-right to border-left */
    overflow-y: auto;
    z-index: 1000; /* Ensure above content */
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.sidebar .nav-link {
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    display: block;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
}

/* Content adjusted for RTL */
.content {
    margin-right: 250px; /* Shift margin from left to right */
    padding: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    .content {
        margin-right: 200px; /* Adjust margin-right for smaller screens */
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: static; /* Stack on mobile */
        top: 0;
    }
    .content {
        margin-right: 0; /* Remove margin on mobile */
    }
}
