/**
 * Header Sidebar Styles
 *
 * @package viasun
 */

/* Header Sidebar Icon */
.header-sidebar-icon-wrap {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.header-sidebar-icon-wrap span {
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

.header-sidebar-icon-wrap span:before,
.header-sidebar-icon-wrap span:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

.header-sidebar-icon-wrap span:before {
    top: -8px;
}

.header-sidebar-icon-wrap span:after {
    bottom: -8px;
}

/* Icon animation when opened */
.header-sidebar-icon-wrap.opened span {
    background-color: transparent;
}

.header-sidebar-icon-wrap.opened span:before {
    transform: rotate(45deg);
    top: 0;
}

.header-sidebar-icon-wrap.opened span:after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Header Sidebar Content */
.header-sidebar-content-wrap {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 30px;
    overflow-y: auto;
    transition: right 0.3s ease;
}

.header-sidebar-content-wrap.opened {
    right: 0;
}

/* Close button inside sidebar */
.header-sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Overlay when sidebar is open */
.header-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.header-sidebar-overlay.active {
    display: block;
}

/* Responsive styles */
@media (max-width: 767px) {
    .header-sidebar-content-wrap {
        width: 280px;
    }
}
