/* WattHub — Sidebar RTL redesign */

.watthub-sidebar.main-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
    border-left: 1px solid rgba(77, 121, 246, 0.08);
    box-shadow: -4px 0 24px rgba(14, 14, 35, 0.04);
}

.dark-skin .watthub-sidebar.main-sidebar {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-left-color: rgba(255, 255, 255, 0.06);
}

.watthub-sidebar .multinav-scroll {
    padding: 0 12px 20px;
}

.watthub-sidebar .sidebar-menu {
    padding-bottom: 10px;
}

.watthub-sidebar .sidebar-menu > li.header {
    padding: 20px 14px 8px;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #8b92a9;
    text-transform: none;
    letter-spacing: 0;
    opacity: 1;
    background: transparent;
}

.watthub-sidebar .sidebar-menu > li.header:first-child {
    margin-top: 0;
    padding-top: 12px;
}

.watthub-sidebar .sidebar-menu > li {
    margin: 3px 0;
    padding: 0 !important;
    border-radius: 10px;
    border-left: none !important;
}

.watthub-sidebar .sidebar-menu > li > a {
    display: flex;
    align-items: center;
    padding: 11px 14px !important;
    border-radius: 10px;
    color: #3d4461;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
    opacity: 1 !important;
}

.watthub-sidebar .sidebar-menu > li > a:hover {
    background: rgba(77, 121, 246, 0.08);
    color: #4d79f6;
}

.watthub-sidebar .sidebar-menu > li.menu-open > a {
    background: rgba(77, 121, 246, 0.1);
    color: #4d79f6;
}

.watthub-sidebar .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(77, 121, 246, 0.08);
    margin-left: 12px;
    transition: all 0.25s ease;
}

.watthub-sidebar .nav-icon svg,
.watthub-sidebar .nav-icon .feather {
    width: 18px;
    height: 18px;
    stroke: #4d79f6;
    margin: 0 !important;
}

.watthub-sidebar .sidebar-menu > li > a:hover .nav-icon,
.watthub-sidebar .sidebar-menu > li.menu-open > a .nav-icon {
    background: #4d79f6;
}

.watthub-sidebar .sidebar-menu > li > a:hover .nav-icon svg,
.watthub-sidebar .sidebar-menu > li.menu-open > a .nav-icon svg {
    stroke: #fff;
}

.watthub-sidebar .nav-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watthub-sidebar .nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: auto;
    margin-left: 4px;
    transition: transform 0.3s ease;
    color: #a1a4b5;
    font-size: 11px;
}

.watthub-sidebar .sidebar-menu > li.menu-open > a .nav-arrow {
    transform: rotate(-90deg);
    color: #4d79f6;
}

.watthub-sidebar .sidebar-menu li > a > .pull-right-container {
    display: none;
}

.watthub-sidebar .treeview-menu {
    list-style: none;
    padding: 6px 0 8px;
    margin: 0 26px 0 0;
    background: transparent !important;
    border-right: 2px solid rgba(77, 121, 246, 0.15);
}

.watthub-sidebar .treeview-menu > li > a {
    display: block;
    padding: 9px 16px 9px 12px !important;
    font-size: 13px;
    color: #6b7289;
    border-radius: 8px;
    margin: 0 8px;
    transition: all 0.2s ease;
}

.watthub-sidebar .treeview-menu > li > a:hover {
    color: #4d79f6;
    background: rgba(77, 121, 246, 0.06);
}

.watthub-sidebar .treeview-menu > li.active > a {
    color: #4d79f6;
    background: rgba(77, 121, 246, 0.12);
    font-weight: 600;
}

.watthub-sidebar .treeview-menu > li > a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c5cad8;
    margin-left: 10px;
    vertical-align: middle;
}

.watthub-sidebar .treeview-menu > li.active > a::before,
.watthub-sidebar .treeview-menu > li > a:hover::before {
    background: #4d79f6;
}

.watthub-sidebar .nav-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 6px;
    background: #ff4757;
    color: #fff;
    margin-right: 6px;
}

.watthub-sidebar .watthub-promo {
    margin: 16px 8px 8px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4d79f6 0%, #6c5ce7 100%);
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(77, 121, 246, 0.25);
}

.watthub-sidebar .watthub-promo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
    background: #fff;
    padding: 8px;
}

.watthub-sidebar .watthub-promo h4 {
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}

.watthub-sidebar .watthub-promo p {
    font-size: 11px;
    opacity: 0.85;
    margin: 0;
}

.dark-skin .watthub-sidebar .sidebar-menu > li > a {
    color: #c8cce0;
}

.dark-skin .watthub-sidebar .treeview-menu > li > a {
    color: #9aa0b8;
}

@media (min-width: 768px) {
    .sidebar-mini.sidebar-collapse .watthub-sidebar .nav-text,
    .sidebar-mini.sidebar-collapse .watthub-sidebar .nav-arrow,
    .sidebar-mini.sidebar-collapse .watthub-sidebar .nav-badge,
    .sidebar-mini.sidebar-collapse .watthub-sidebar .sidebar-menu > li.header,
    .sidebar-mini.sidebar-collapse .watthub-sidebar .sidebar-widgets {
        display: none;
    }

    .sidebar-mini.sidebar-collapse .watthub-sidebar .nav-icon {
        margin-left: 0;
    }
}

.watthub-sidebar .sidebar-logout-btn {
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    background: transparent;
    color: #64748b;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-align: right;
}

.watthub-sidebar .sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}
