/* RTL support */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

.rtl .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

.rtl .text-end {
    text-align: left !important;
}

.rtl .text-start {
    text-align: right !important;
}

/* Custom header adjustments */
.navbar-sticky {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* Profile avatar styling */
.avatar-img {
    object-fit: cover;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Custom colors */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #6a11cb 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--bs-success) 0%, #1a7e76 100%) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .navbar-sticky {
    background: rgba(33, 37, 41, 0.98);
}

[data-bs-theme="dark"] .card {
    background: var(--bs-dark);
    border-color: var(--bs-gray-800);
}