/* Sidebar Container */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 360px;
    height: 100vh;
    background: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Hide scrollbar but keep functionality */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Banner Images */
.sidebar img {
    width: 100%;
    display: block;
}

.top-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Menu Container */
.sidebar-menu {
    padding: 0;
    background: #fff;
}

/* Main Category Items */
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    text-decoration: none;
    color: #282c3f;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f6;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.menu-item:hover {
    background: #f7f7f7;
    padding-left: 28px;
}

.menu-item span {
    flex: 1;
    letter-spacing: 0.3px;
}

.menu-item i {
    color: #94969f;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.menu-item:hover i {
    transform: translateX(3px);
}

/* Sub Category Items */
.submenu {
    background: #fafafa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.submenu.active {
    max-height: 500px;
}

.submenu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px 14px 48px;
    text-decoration: none;
    color: #696b79;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: pointer;
}

.submenu-item:hover {
    background: #f0f0f0;
    color: #282c3f;
    padding-left: 52px;
}

.submenu-item i {
    color: #94969f;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.submenu-item:hover i {
    opacity: 1;
    transform: translateX(2px);
}

/* Special Menu Items with Tags */
.menu-item-special {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    text-decoration: none;
    color: #282c3f;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f6;
    transition: all 0.2s ease;
    cursor: pointer;
}

.menu-item-special:hover {
    background: #f7f7f7;
    padding-left: 28px;
}

.menu-item-special span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-new {
    background: #ff3f6c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

/* Bottom section items */
.menu-bottom-section {
    border-top: 2px solid #f5f5f6;
    margin-top: 8px;
    padding-top: 8px;
}

.menu-bottom-section .menu-item {
    font-size: 16px;
    color: #696b79;
    padding: 16px 24px;
}

.menu-bottom-section .menu-item:hover {
    color: #282c3f;
}

/* Mobile Toggle Button */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }
}

/* Demo content */
.content {
    margin-left: 360px;
    padding: 20px;
}

@media (max-width: 768px) {
    .content {
        margin-left: 0;
    }
}