/* Mobile Offcanvas Navigation */
#offcanvas-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #000000;
    z-index: 9999;
    transition: all 0.4s ease;
    overflow-y: auto;
}

#offcanvas-nav.active {
    right: 0;
}

.m-nav {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #000000;
}

#nav-cls-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

#nav-cls-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    transform: rotate(90deg);
}

.m-nav .logo {
    margin-bottom: 30px;
    padding: 10px 0;
}

.m-nav .logo img {
    max-height: 60px;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-bottom: 10px;
}

.nav-links a {
    color: #fff !important;
    font-size: 16px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700 !important;
}

.nav-links .dropdown {
    position: relative;
}

.nav-links .d-menu {
    list-style: none;
    padding: 10px 0;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: none;
}

.nav-links .dropdown.active .d-menu {
    display: block;
}

.nav-links .d-menu li a {
    padding: 10px 25px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-links .d-menu li a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700 !important;
}

.nav-links .dropdown > a span {
    transition: transform 0.3s ease;
}

.nav-links .dropdown.active > a span {
    transform: rotate(180deg);
}

/* Header Right Items */
.header-right-item {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.header-right-item a {
    color: #fff !important;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.header-right-item a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700 !important;
}

/* RTL Support */
[dir="rtl"] #offcanvas-nav {
    right: auto;
    left: -300px;
    background: #000000;
}

[dir="rtl"] #offcanvas-nav.active {
    right: auto;
    left: 0;
}

[dir="rtl"] #nav-cls-btn {
    right: auto;
    left: 20px;
}

[dir="rtl"] .nav-links .d-menu li a {
    padding: 10px 35px 10px 25px;
}

/* Scrollbar Styling */
#offcanvas-nav::-webkit-scrollbar {
    width: 5px;
}

#offcanvas-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

#offcanvas-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

#offcanvas-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.3);
}

/* Theme Variations */
.m-nav-two,
.m-nav-three {
    background: #000000;
}

/* Overlay */
.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    display: none;
}

.offcanvas-overlay.active {
    display: block;
} 