/* Side Navigation Drawer Styles */
.side-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #3d464d;
    z-index: 9999;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.side-drawer.open {
    right: 0;
}

.side-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.side-drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.side-drawer-header {
    padding: 20px;
    border-bottom: 1px solid #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-drawer-header .logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.side-drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-drawer-close:hover {
    color: #ffd333;
}

.side-drawer-content {
    padding: 0;
}

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

.side-drawer-nav li {
    border-bottom: 1px solid #555;
}

.side-drawer-nav a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.side-drawer-nav a:hover {
    background-color: #555;
    color: #ffd333;
    text-decoration: none;
}

.side-drawer-nav a.active {
    background-color: #ffd333;
    color: #3d464d;
}

.side-drawer-nav .dropdown {
    position: relative;
}

.side-drawer-nav .dropdown-toggle {
    position: relative;
    padding-right: 40px;
}

.side-drawer-nav .dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.side-drawer-nav .dropdown-toggle.collapsed::after {
    transform: translateY(-50%) rotate(-90deg);
}

.side-drawer-nav .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: #2a2f35;
    box-shadow: none;
    display: none;
}

.side-drawer-nav .dropdown-menu.show {
    display: block;
}

.side-drawer-nav .dropdown-menu a {
    padding: 12px 40px;
    font-size: 14px;
    border-bottom: 1px solid #444;
}

.side-drawer-nav .dropdown-menu a:last-child {
    border-bottom: none;
}

.side-drawer-nav .dropdown-menu a:hover {
    background-color: #444;
}

/* Categories Section */
.side-drawer-categories {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.side-drawer-categories h6 {
    color: #ffd333;
    padding: 0 20px 10px;
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.side-drawer-categories .category-item {
    padding: 10px 20px;
    color: #ccc;
    font-size: 14px;
    border-bottom: 1px solid #444;
}

.side-drawer-categories .category-item:hover {
    background-color: #444;
    color: #ffd333;
}

/* Mobile specific adjustments */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 4px 8px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* Prevent body scroll when drawer is open */
body.drawer-open {
    overflow: hidden;
}

/* Animation for hamburger icon */
.hamburger-icon {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger-icon.active {
    transform: rotate(90deg);
}