/* Mobile Menu Sidebar Styles */
.offcanvas__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.offcanvas__overlay.overlay-open {
    opacity: 1;
    visibility: visible;
}

.offcanvas__info {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.offcanvas__info.info-open {
    right: 0;
}

.offcanvas__wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.offcanvas__content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.offcanvas__top {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.offcanvas__logo img {
    max-height: 40px;
    width: auto;
}

.offcanvas__close {
    cursor: pointer;
    font-size: 20px;
    color: #666;
    transition: color 0.3s ease;
}

.offcanvas__close:hover {
    color: var(--theme, #007bff);
}

.offcanvas__content-inner {
    flex: 1;
    padding: 20px;
}

.offcanvas__menu {
    margin-bottom: 30px;
}

.offcanvas__menu-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvas__menu-wrapper ul li {
    margin-bottom: 10px;
}

.offcanvas__menu-wrapper ul li a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.offcanvas__menu-wrapper ul li a:hover {
    color: var(--theme, #007bff);
    padding-left: 10px;
}

.offcanvas__contact {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.offcanvas__contact-title h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.offcanvas__contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.offcanvas__contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--theme, #007bff);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.offcanvas__contact-text span {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offcanvas__contact-text p {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* RTL Support */
[dir="rtl"] .offcanvas__info {
    right: auto;
    left: -100%;
}

[dir="rtl"] .offcanvas__info.info-open {
    right: auto;
    left: 0;
}

[dir="rtl"] .offcanvas__menu-wrapper ul li a:hover {
    padding-left: 0;
    padding-right: 10px;
}

[dir="rtl"] .offcanvas__contact-icon {
    margin-right: 0;
    margin-left: 15px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .offcanvas__info {
        width: 100%;
    }
}

/* Animation for smooth opening */
.offcanvas__info {
    transform: translateX(100%);
}

.offcanvas__info.info-open {
    transform: translateX(0);
}

[dir="rtl"] .offcanvas__info {
    transform: translateX(-100%);
}

[dir="rtl"] .offcanvas__info.info-open {
    transform: translateX(0);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Mobile menu button animation */
.sidebar__toggle {
    transition: transform 0.3s ease;
}

.sidebar__toggle:hover {
    transform: scale(1.1);
}

/* Mobile menu link hover effects */
.offcanvas__menu-wrapper ul li a {
    position: relative;
    overflow: hidden;
}

.offcanvas__menu-wrapper ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.offcanvas__menu-wrapper ul li a:hover::before {
    left: 100%;
}
