/* Sliding Sidebars Styles */

/* Animation Keyframes */

.carousel-banner-title {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

@keyframes scdev-sidebar-slide-left {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes scdev-sidebar-slide-right {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes scdev-sidebar-flip-left {
    from {
        transform: perspective(1000px) rotateY(90deg);
        opacity: 0;
    }

    to {
        transform: perspective(1000px) rotateY(0);
        opacity: 1;
    }
}

@keyframes scdev-sidebar-flip-right {
    from {
        transform: perspective(1000px) rotateY(-90deg);
        opacity: 0;
    }

    to {
        transform: perspective(1000px) rotateY(0);
        opacity: 1;
    }
}

@keyframes scdev-sidebar-fade-slide-left {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scdev-sidebar-fade-slide-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scdev-sidebar-bounce-left {
    0% {
        transform: translateX(-100%);
    }

    60% {
        transform: translateX(10px);
    }

    80% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes scdev-sidebar-bounce-right {
    0% {
        transform: translateX(100%);
    }

    60% {
        transform: translateX(-10px);
    }

    80% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes scdev-sidebar-zoom-left {
    from {
        transform: translateX(-100%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes scdev-sidebar-zoom-right {
    from {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes scdev-sidebar-rotate-left {
    from {
        transform: translateX(-100%) rotateZ(-5deg);
        opacity: 0;
    }

    to {
        transform: translateX(0) rotateZ(0);
        opacity: 1;
    }
}

@keyframes scdev-sidebar-rotate-right {
    from {
        transform: translateX(100%) rotateZ(5deg);
        opacity: 0;
    }

    to {
        transform: translateX(0) rotateZ(0);
        opacity: 1;
    }
}

@keyframes scdev-sidebar-elastic-left {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(20px);
    }

    65% {
        transform: translateX(-10px);
    }

    80% {
        transform: translateX(5px);
    }

    95% {
        transform: translateX(-2px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes scdev-sidebar-elastic-right {
    0% {
        transform: translateX(100%);
    }

    50% {
        transform: translateX(-20px);
    }

    65% {
        transform: translateX(10px);
    }

    80% {
        transform: translateX(-5px);
    }

    95% {
        transform: translateX(2px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Border Decoration Animations */
@keyframes scdev-gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes scdev-neon-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 0, 110, 0.5), inset 0 0 5px rgba(255, 0, 110, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 0, 110, 0.8), inset 0 0 10px rgba(255, 0, 110, 0.4);
    }
}

@keyframes scdev-rainbow-flow {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes scdev-pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(0, 217, 255, 0.4), inset 0 0 5px rgba(0, 217, 255, 0.1);
        border-width: 3px;
    }

    50% {
        box-shadow: 0 0 15px rgba(0, 217, 255, 0.8), inset 0 0 10px rgba(0, 217, 255, 0.3);
        border-width: 4px;
    }
}

/* Rotating border animations for moving effect */
@keyframes scdev-border-rotate {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 400% 400%;
    }
}

@keyframes scdev-border-rotate-reverse {
    0% {
        background-position: 400% 400%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.scdev-sidebars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9980;
}

/* Sidebars */
.scdev-sidebar {
    position: fixed;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;
    z-index: 9985;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

.scdev-sidebar.scdev-sidebar-left {
    left: 0;
}

.scdev-sidebar.scdev-sidebar-right {
    right: 0;
    transform: translateX(100%);
}

.scdev-sidebar.is-open {
    transform: translateX(0);
}

/* Sidebar Close Button */
.scdev-sidebar-close {
    position: absolute;
    top: 4px;
    left: 6px;
    background: transparent;
    border: none;
    color: #000000 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9986;
    transition: background 0.2s ease, transform 0.2s ease !important;
    flex-shrink: 0;
    overflow: hidden;
    margin: 0 !important;
    padding: 0;
    opacity: 1 !important;
}

.scdev-sidebar-right .scdev-sidebar-close {
    align-self: auto;
    left: auto;
    right: 6px;
}

.scdev-sidebar-close:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.15) !important;
}

body.dark-mode .scdev-sidebar-close,
body.night-mode .scdev-sidebar-close {
    color: #ffffff !important;
}

body.dark-mode .scdev-sidebar-close:hover,
body.night-mode .scdev-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.scdev-sidebar-close-icon {
    display: block;
    line-height: 1;
}

/* Sidebar Content - Snug below close arrow */
.scdev-sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 32px 12px 12px 12px;
}

/* Scrollbar Styling - Webkit (Chrome, Safari, Edge) */
.scdev-sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.scdev-sidebar-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.scdev-sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.scdev-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Scrollbar Styling - Firefox */
.scdev-sidebar-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.05);
}

/* Sidebar Widgets */
.scdev-sidebar-widget {
    margin-bottom: 20px;
}

.scdev-sidebar-widget:last-child {
    margin-bottom: 0;
}

.scdev-sidebar-widget-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

/* Sidebar Navigation Menus */
.scdev-sidebar .widget_nav_menu .menu,
.scdev-sidebar .widget_nav_menu .sub-menu,
.scdev-sidebar .widget_pages ul,
.scdev-sidebar .widget_recent_entries ul,
.scdev-sidebar .widget_archive ul,
.scdev-sidebar .widget_categories ul,
.scdev-sidebar .widget_meta ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.scdev-sidebar .widget_nav_menu .menu>li,
.scdev-sidebar .widget_nav_menu .sub-menu>li,
.scdev-sidebar .widget_pages li,
.scdev-sidebar .widget_recent_entries li,
.scdev-sidebar .widget_archive li,
.scdev-sidebar .widget_categories li,
.scdev-sidebar .widget_meta li {
    margin: 0 0 6px;
}

.scdev-sidebar .widget_nav_menu .menu>li:last-child,
.scdev-sidebar .widget_nav_menu .sub-menu>li:last-child,
.scdev-sidebar .widget_pages li:last-child,
.scdev-sidebar .widget_recent_entries li:last-child,
.scdev-sidebar .widget_archive li:last-child,
.scdev-sidebar .widget_categories li:last-child,
.scdev-sidebar .widget_meta li:last-child {
    margin-bottom: 0;
}

.scdev-sidebar .widget_nav_menu .sub-menu {
    margin-top: 6px;
    padding-left: 12px;
}

.scdev-sidebar .widget_nav_menu .sub-menu,
.scdev-sidebar .widget_pages .children {
    display: none;
}

.scdev-sidebar .menu-item-has-children.scdev-submenu-open>.sub-menu,
.scdev-sidebar .page_item_has_children.scdev-submenu-open>.children {
    display: block;
}

.scdev-sidebar .widget_nav_menu .menu-item-has-children>a,
.scdev-sidebar .widget_pages .page_item_has_children>a {
    padding-right: 38px;
}

.scdev-sidebar .widget_nav_menu .menu-item-has-children,
.scdev-sidebar .widget_pages .page_item_has_children {
    position: relative;
}

.scdev-sidebar .widget_nav_menu .sub-menu[hidden],
.scdev-sidebar .widget_pages .children[hidden] {
    display: none !important;
}

.scdev-sidebar .widget_nav_menu .menu-item-has-children>.scdev-sidebar-submenu-toggle,
.scdev-sidebar .widget_pages .page_item_has_children>.scdev-sidebar-submenu-toggle {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #3a3f47;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 3px 8px rgba(25, 32, 46, 0.08);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.scdev-sidebar .widget_nav_menu .menu-item-has-children>.scdev-sidebar-submenu-toggle:hover,
.scdev-sidebar .widget_pages .page_item_has_children>.scdev-sidebar-submenu-toggle:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 5px 12px rgba(25, 32, 46, 0.12);
}

.scdev-sidebar .scdev-sidebar-submenu-toggle-icon {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.18s ease;
}

.scdev-sidebar .menu-item-has-children.scdev-submenu-open>.scdev-sidebar-submenu-toggle .scdev-sidebar-submenu-toggle-icon,
.scdev-sidebar .page_item_has_children.scdev-submenu-open>.scdev-sidebar-submenu-toggle .scdev-sidebar-submenu-toggle-icon {
    transform: rotate(180deg);
}

.scdev-sidebar .widget_nav_menu li,
.scdev-sidebar .widget_pages li,
.scdev-sidebar .widget_recent_entries li,
.scdev-sidebar .widget_archive li,
.scdev-sidebar .widget_categories li,
.scdev-sidebar .widget_meta li {
    --scdev-menu-accent: #5aa7e8;
}

.scdev-sidebar .widget_nav_menu li:nth-child(4n + 1),
.scdev-sidebar .widget_pages li:nth-child(4n + 1),
.scdev-sidebar .widget_recent_entries li:nth-child(4n + 1),
.scdev-sidebar .widget_archive li:nth-child(4n + 1),
.scdev-sidebar .widget_categories li:nth-child(4n + 1),
.scdev-sidebar .widget_meta li:nth-child(4n + 1) {
    --scdev-menu-accent: #5aa7e8;
}

.scdev-sidebar .widget_nav_menu li:nth-child(4n + 2),
.scdev-sidebar .widget_pages li:nth-child(4n + 2),
.scdev-sidebar .widget_recent_entries li:nth-child(4n + 2),
.scdev-sidebar .widget_archive li:nth-child(4n + 2),
.scdev-sidebar .widget_categories li:nth-child(4n + 2),
.scdev-sidebar .widget_meta li:nth-child(4n + 2) {
    --scdev-menu-accent: #ef7aa8;
}

.scdev-sidebar .widget_nav_menu li:nth-child(4n + 3),
.scdev-sidebar .widget_pages li:nth-child(4n + 3),
.scdev-sidebar .widget_recent_entries li:nth-child(4n + 3),
.scdev-sidebar .widget_archive li:nth-child(4n + 3),
.scdev-sidebar .widget_categories li:nth-child(4n + 3),
.scdev-sidebar .widget_meta li:nth-child(4n + 3) {
    --scdev-menu-accent: #7ccf8a;
}

.scdev-sidebar .widget_nav_menu li:nth-child(4n + 4),
.scdev-sidebar .widget_pages li:nth-child(4n + 4),
.scdev-sidebar .widget_recent_entries li:nth-child(4n + 4),
.scdev-sidebar .widget_archive li:nth-child(4n + 4),
.scdev-sidebar .widget_categories li:nth-child(4n + 4),
.scdev-sidebar .widget_meta li:nth-child(4n + 4) {
    --scdev-menu-accent: #c296ff;
}

.scdev-sidebar .widget_nav_menu a,
.scdev-sidebar .widget_pages a,
.scdev-sidebar .widget_recent_entries a,
.scdev-sidebar .widget_archive a,
.scdev-sidebar .widget_categories a,
.scdev-sidebar .widget_meta a {
    display: block;
    padding: 6px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 244, 249, 0.94) 100%);
    color: #3a3f47;
    text-decoration: none;
    border: 1px solid var(--scdev-menu-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.06),
        0 6px 14px rgba(25, 32, 46, 0.08);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.scdev-sidebar .widget_nav_menu a:hover,
.scdev-sidebar .widget_pages a:hover,
.scdev-sidebar .widget_recent_entries a:hover,
.scdev-sidebar .widget_archive a:hover,
.scdev-sidebar .widget_categories a:hover,
.scdev-sidebar .widget_meta a:hover {
    color: #1f2937;
    border-color: var(--scdev-menu-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        0 10px 18px rgba(25, 32, 46, 0.12);
    transform: translateY(-1px);
}

.scdev-sidebar .widget_nav_menu .current-menu-item>a,
.scdev-sidebar .widget_nav_menu .current_page_item>a,
.scdev-sidebar .widget_pages .current_page_item>a {
    border-color: var(--scdev-menu-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 0 1px rgba(255, 255, 255, 0.45),
        0 10px 18px rgba(25, 32, 46, 0.12);
}

.scdev-sidebar-placeholder {
    margin: 0;
    padding: 20px;
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
    font-size: 16px;
}

/* Overlay */
.scdev-sidebars-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    z-index: 9984;
    transition: background 0.3s ease;
}

.scdev-sidebars-overlay.is-visible {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.scdev-sidebar .menu-item-has-children.scdev-submenu-open>.scdev-sidebar-submenu-toggle .scdev-sidebar-submenu-toggle-icon,
.scdev-sidebar .page_item_has_children.scdev-submenu-open>.scdev-sidebar-submenu-toggle .scdev-sidebar-submenu-toggle-icon {
    transform: rotate(180deg);
}

.scdev-sidebar .widget_nav_menu li,
.scdev-sidebar .widget_pages li,
.scdev-sidebar .widget_recent_entries li,
.scdev-sidebar .widget_archive li,
.scdev-sidebar .widget_categories li,
.scdev-sidebar .widget_meta li {
    --scdev-menu-accent: #5aa7e8;
}

.scdev-sidebar .widget_nav_menu li:nth-child(4n + 1),
.scdev-sidebar .widget_pages li:nth-child(4n + 1),
.scdev-sidebar .widget_recent_entries li:nth-child(4n + 1),
.scdev-sidebar .widget_archive li:nth-child(4n + 1),
.scdev-sidebar .widget_categories li:nth-child(4n + 1),
.scdev-sidebar .widget_meta li:nth-child(4n + 1) {
    --scdev-menu-accent: #5aa7e8;
}

.scdev-sidebar .widget_nav_menu li:nth-child(4n + 2),
.scdev-sidebar .widget_pages li:nth-child(4n + 2),
.scdev-sidebar .widget_recent_entries li:nth-child(4n + 2),
.scdev-sidebar .widget_archive li:nth-child(4n + 2),
.scdev-sidebar .widget_categories li:nth-child(4n + 2),
.scdev-sidebar .widget_meta li:nth-child(4n + 2) {
    --scdev-menu-accent: #ef7aa8;
}

.scdev-sidebar .widget_nav_menu li:nth-child(4n + 3),
.scdev-sidebar .widget_pages li:nth-child(4n + 3),
.scdev-sidebar .widget_recent_entries li:nth-child(4n + 3),
.scdev-sidebar .widget_archive li:nth-child(4n + 3),
.scdev-sidebar .widget_categories li:nth-child(4n + 3),
.scdev-sidebar .widget_meta li:nth-child(4n + 3) {
    --scdev-menu-accent: #7ccf8a;
}

.scdev-sidebar .widget_nav_menu li:nth-child(4n + 4),
.scdev-sidebar .widget_pages li:nth-child(4n + 4),
.scdev-sidebar .widget_recent_entries li:nth-child(4n + 4),
.scdev-sidebar .widget_archive li:nth-child(4n + 4),
.scdev-sidebar .widget_categories li:nth-child(4n + 4),
.scdev-sidebar .widget_meta li:nth-child(4n + 4) {
    --scdev-menu-accent: #c296ff;
}

.scdev-sidebar .widget_nav_menu a,
.scdev-sidebar .widget_pages a,
.scdev-sidebar .widget_recent_entries a,
.scdev-sidebar .widget_archive a,
.scdev-sidebar .widget_categories a,
.scdev-sidebar .widget_meta a {
    display: block;
    padding: 6px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 244, 249, 0.94) 100%);
    color: #3a3f47;
    text-decoration: none;
    border: 1px solid var(--scdev-menu-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.06),
        0 6px 14px rgba(25, 32, 46, 0.08);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.scdev-sidebar .widget_nav_menu a:hover,
.scdev-sidebar .widget_pages a:hover,
.scdev-sidebar .widget_recent_entries a:hover,
.scdev-sidebar .widget_archive a:hover,
.scdev-sidebar .widget_categories a:hover,
.scdev-sidebar .widget_meta a:hover {
    color: #1f2937;
    border-color: var(--scdev-menu-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        0 10px 18px rgba(25, 32, 46, 0.12);
    transform: translateY(-1px);
}

.scdev-sidebar .widget_nav_menu .current-menu-item>a,
.scdev-sidebar .widget_nav_menu .current_page_item>a,
.scdev-sidebar .widget_pages .current_page_item>a {
    border-color: var(--scdev-menu-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 0 1px rgba(255, 255, 255, 0.45),
        0 10px 18px rgba(25, 32, 46, 0.12);
}

.scdev-sidebar-placeholder {
    margin: 0;
    padding: 20px;
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
    font-size: 16px;
}

/* Overlay */
.scdev-sidebars-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    z-index: 9984;
    transition: background 0.3s ease;
}

.scdev-sidebars-overlay.is-visible {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.scdev-sidebars-overlay.allow-interaction {
    pointer-events: none !important;
}

/* Toggle Buttons */
.scdev-sidebar-toggles {
    position: fixed !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    /* Let clicks pass through to underneath, buttons will have pointer-events: auto */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.scdev-sidebar-toggle.scdev-sidebar-toggle-left {
    position: fixed !important;
    top: 50% !important;
    left: 0 !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    border-radius: 0 8px 8px 0 !important;
    pointer-events: auto !important;
}

.scdev-sidebar-toggle.scdev-sidebar-toggle-right {
    position: fixed !important;
    top: 50% !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    border-radius: 8px 0 0 8px !important;
    pointer-events: auto !important;
}

.scdev-sidebar-toggle {
    width: 20px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
}

.scdev-sidebar-toggle:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.scdev-sidebar-toggle:active {
    transform: scale(0.95);
}

.scdev-toggle-icon {
    display: block;
    line-height: 1;
}

/* Tab Handle Styles */
.scdev-handle-tab {
    width: auto !important;
    height: auto !important;
    padding: 12px 3px !important;
    border-radius: 0 !important;
    writing-mode: vertical-rl !important;
    text-orientation: upright !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}



/* Hide tab when sidebar is open */
.scdev-sidebars-container:has(#scdev-sidebar-left-panel.is-open)+.scdev-sidebar-toggles .scdev-sidebar-toggle-left.scdev-handle-tab {
    opacity: 0 !important;
    pointer-events: none !important;
}

.scdev-sidebars-container:has(#scdev-sidebar-right-panel.is-open)+.scdev-sidebar-toggles .scdev-sidebar-toggle-right.scdev-handle-tab {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Sidebar Default & Light Mode Base — Explicit background + text + heading colors */
.scdev-sidebar,
html[data-color-scheme="light"] .scdev-sidebar {
    background: #ffffff;
    color: #1e293b;
}

/* Light Mode / Default Item Styling */
.hashtag-item-single,
.activity-item-single,
.slider-item,
html[data-color-scheme="light"] .hashtag-item-single,
html[data-color-scheme="light"] .activity-item-single,
html[data-color-scheme="light"] .slider-item {
    background: #ffffff !important;
    color: var(--scdev-body-color) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.hashtag-item-single .trending-text,
html[data-color-scheme="light"] .hashtag-item-single .trending-text {
    color: var(--scdev-h4-color) !important;
}

.hashtag-item-single .trending-stat,
html[data-color-scheme="light"] .hashtag-item-single .trending-stat {
    color: #4f46e5 !important;
}

.activity-item-single .activity-text-single,
html[data-color-scheme="light"] .activity-item-single .activity-text-single {
    color: var(--scdev-body-color) !important;
}
.activity-item-single .activity-text-single strong,
html[data-color-scheme="light"] .activity-item-single .activity-text-single strong {
    color: var(--scdev-h3-color) !important;
}

.activity-item-single .activity-title-single,
html[data-color-scheme="light"] .activity-item-single .activity-title-single {
    color: var(--scdev-h2-color) !important;
}

.activity-item-single .activity-time-single,
html[data-color-scheme="light"] .activity-item-single .activity-time-single {
    color: var(--scdev-h6-color) !important;
}

.activity-item-single .activity-action-single,
html[data-color-scheme="light"] .activity-item-single .activity-action-single {
    color: var(--scdev-body-color) !important;
    opacity: 0.8;
}

.activity-item-single .activity-icon-single,
html[data-color-scheme="light"] .activity-item-single .activity-icon-single {
    background: #fffbeb !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
}

/* Dark / Night Mode Item Styling */
body.dark-mode .hashtag-item-single,
body.night-mode .hashtag-item-single,
body.sheer-dark .hashtag-item-single,
html[data-color-scheme="dark"] .hashtag-item-single,
body.dark-mode .activity-item-single,
body.night-mode .activity-item-single,
body.sheer-dark .activity-item-single,
html[data-color-scheme="dark"] .activity-item-single,
body.dark-mode .slider-item,
body.night-mode .slider-item,
body.sheer-dark .slider-item,
html[data-color-scheme="dark"] .slider-item {
    background: transparent !important;
    color: var(--scdev-body-color) !important;
    border: 1px solid rgba(128, 128, 128, 0.2) !important;
    box-shadow: none !important;
}

body.dark-mode .activity-item-single .activity-text-single,
body.night-mode .activity-item-single .activity-text-single,
html[data-color-scheme="dark"] .activity-item-single .activity-text-single {
    color: var(--scdev-body-color) !important;
}

body.dark-mode .activity-item-single .activity-text-single strong,
body.night-mode .activity-item-single .activity-text-single strong,
html[data-color-scheme="dark"] .activity-item-single .activity-text-single strong {
    color: var(--scdev-h3-color) !important;
}

body.dark-mode .activity-item-single .activity-title-single,
body.night-mode .activity-item-single .activity-title-single,
html[data-color-scheme="dark"] .activity-item-single .activity-title-single {
    color: var(--scdev-h2-color) !important;
}

body.dark-mode .activity-item-single .activity-time-single,
body.night-mode .activity-item-single .activity-time-single,
html[data-color-scheme="dark"] .activity-item-single .activity-time-single {
    color: var(--scdev-h6-color) !important;
}

body.dark-mode .activity-item-single .activity-action-single,
body.night-mode .activity-item-single .activity-action-single,
html[data-color-scheme="dark"] .activity-item-single .activity-action-single {
    color: var(--scdev-body-color) !important;
    opacity: 0.8;
}

body.dark-mode .activity-item-single .activity-icon-single,
body.night-mode .activity-item-single .activity-icon-single,
html[data-color-scheme="dark"] .activity-item-single .activity-icon-single {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.28) !important;
}

.sidebar-title,
html[data-color-scheme="light"] .sidebar-title {
    color: var(--scdev-h4-color) !important;
}

/* Dark Mode Support */
body.dark-mode .scdev-sidebar {
    background: #1a1a2e;
    color: #e0e0e0;
}

body.dark-mode .scdev-sidebar-close {
    color: #e0e0e0;
}

body.dark-mode .scdev-sidebar-widget-title {
    color: #e0e0e0;
}

body.dark-mode .scdev-sidebar .widget_nav_menu a,
body.dark-mode .scdev-sidebar .widget_pages a,
body.dark-mode .scdev-sidebar .widget_recent_entries a,
body.dark-mode .scdev-sidebar .widget_archive a,
body.dark-mode .scdev-sidebar .widget_categories a,
body.dark-mode .scdev-sidebar .widget_meta a {
    background: linear-gradient(180deg, rgba(38, 44, 62, 0.98) 0%, rgba(24, 29, 43, 0.94) 100%);
    color: #edf1f7;
    border-color: var(--scdev-menu-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 8px 18px rgba(0, 0, 0, 0.22);
}

body.dark-mode .scdev-sidebar .widget_nav_menu .menu-item-has-children>.scdev-sidebar-submenu-toggle,
body.dark-mode .scdev-sidebar .widget_pages .page_item_has_children>.scdev-sidebar-submenu-toggle {
    background: rgba(24, 29, 43, 0.92);
    color: #edf1f7;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode .scdev-sidebar .widget_nav_menu .menu-item-has-children>.scdev-sidebar-submenu-toggle:hover,
body.dark-mode .scdev-sidebar .widget_pages .page_item_has_children>.scdev-sidebar-submenu-toggle:hover {
    background: rgba(33, 39, 56, 0.98);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 6px 14px rgba(0, 0, 0, 0.28);
}

body.dark-mode .scdev-sidebar .widget_nav_menu a:hover,
body.dark-mode .scdev-sidebar .widget_pages a:hover,
body.dark-mode .scdev-sidebar .widget_recent_entries a:hover,
body.dark-mode .scdev-sidebar .widget_archive a:hover,
body.dark-mode .scdev-sidebar .widget_categories a:hover,
body.dark-mode .scdev-sidebar .widget_meta a:hover {
    color: #ffffff;
    border-color: var(--scdev-menu-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.26),
        0 12px 22px rgba(0, 0, 0, 0.3);
}

body.dark-mode .scdev-sidebar-placeholder {
    color: rgba(224, 224, 224, 0.4);
}

body.dark-mode .scdev-sidebar-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .scdev-sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .scdev-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

body.dark-mode .scdev-sidebar-content {
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .scdev-sidebar-toggle:not(.scdev-handle-tab) {
        width: 32px !important;
        height: 32px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .scdev-sidebar-toggle:not(.scdev-handle-tab) {
        width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
    }
}

/* ── Hide scrollbars on mobile (scroll still works) ─────────── */
@media (max-width: 768px) {

    /* Sidebar */
    .scdev-sidebar-content::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
    }

    .scdev-sidebar-content {
        scrollbar-width: none !important;
        /* Firefox */
        -ms-overflow-style: none !important;
        /* IE / Edge legacy */
    }

    /* Sidebar panel itself */
    .scdev-sidebar::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
    }

    .scdev-sidebar {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
}


/* MOBILE-SPECIFIC TOGGLE BUTTONS */
.scdev-sidebar-toggles-mobile {
    position: fixed !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.scdev-toggle-mobile {
    background: #667eea !important;
    border: 2px solid #fff !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5) !important;
}

.scdev-toggle-mobile:hover {
    background: #764ba2 !important;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.7) !important;
}

/* DESKTOP-SPECIFIC TOGGLE BUTTONS */
.scdev-sidebar-toggles-desktop {
    position: fixed !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}


/* ── MOBILE MODAL STYLES ─────────────────────────────────────────── */
.scdev-mobile-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99990;
}

.scdev-mobile-modal.is-open {
    display: block;
}

.scdev-mobile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.scdev-mobile-modal-sheet {
    position: absolute;
    top: 0;
    left: 0;
    width: 85vw;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    animation: scdev-modal-slide-in-left 0.28s ease;
}

.scdev-mobile-modal-sheet-right {
    left: auto;
    right: 0;
    animation: scdev-modal-slide-in-right 0.28s ease;
}

@keyframes scdev-modal-slide-in-left {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes scdev-modal-slide-in-right {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.scdev-mobile-modal-close {
    position: sticky;
    top: 0;
    align-self: flex-start;
    margin: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    color: inherit;
}

.scdev-mobile-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.scdev-mobile-modal-body {
    flex: 1;
    padding: 0 15px 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Night mode support */
body.night-mode .scdev-mobile-modal-sheet {
    background: #1a1a2e;
    color: #e0e0e0;
}

/* ── MOBILE HAMBURGER BUTTONS ─────────────────────────────────────── */
.scdev-mobile-hamburger {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99980;
    width: 28px;
    height: 40px;
    border: none;
    border-radius: 0 6px 6px 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease;
    padding: 0;
}

.scdev-mobile-hamburger:hover {
    background: rgba(0, 0, 0, 0.85);
}

.scdev-mobile-hamburger-left {
    left: 0;
    border-radius: 0 6px 6px 0;
}

.scdev-mobile-hamburger-right {
    right: 0;
    left: auto;
    border-radius: 6px 0 0 6px;
}

/* Sidebar Nav Menu Items - Discord Style */
.scdev-sidebar ul.scdev-sidebar-menu,
.scdev-sidebar .widget_nav_menu ul,
.scdev-sidebar .widget_pages ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.scdev-sidebar ul.scdev-sidebar-menu li,
.scdev-sidebar .widget_nav_menu li,
.scdev-sidebar .widget_pages li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.scdev-sidebar ul.scdev-sidebar-menu li a,
.scdev-sidebar .widget_nav_menu li a,
.scdev-sidebar .widget_pages li a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 6px 8px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.scdev-sidebar ul.scdev-sidebar-menu li a:hover,
.scdev-sidebar .widget_nav_menu li a:hover {
    background: rgba(0, 0, 0, 0.06) !important;
}

body.dark-mode .scdev-sidebar ul.scdev-sidebar-menu li a:hover,
body.night-mode .scdev-sidebar ul.scdev-sidebar-menu li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Rounded Uploaded Image Icon */
.scdev-sidebar .scdev-menu-item-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Fallback Circle Icon (Light Colors / Pastel) */
.scdev-sidebar .scdev-menu-item-initial {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    color: #2d3748 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    line-height: 1 !important;
}

/* Menu Item Text Container (Title + Optional Description) */
.scdev-sidebar .scdev-menu-item-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
    flex: 1 !important;
    white-space: nowrap !important;
}

.scdev-sidebar .scdev-menu-item-title {
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    color: inherit !important;
    white-space: nowrap !important;
}

.scdev-sidebar .scdev-menu-item-desc {
    font-size: 12px !important;
    opacity: 0.7 !important;
    line-height: 1.3 !important;
    margin-top: 2px !important;
    white-space: normal !important;
    display: block !important;
}

/* Slim Sidebar Collapsed State (Not Hovered): HIDE LABELS & DESCRIPTIONS COMPLETELY */
.scdev-sidebar.is-slim-sidebar:not(:hover) .scdev-menu-item-info {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
}

.scdev-sidebar.is-slim-sidebar:not(:hover) ul.scdev-sidebar-menu li a,
.scdev-sidebar.is-slim-sidebar:not(:hover) .widget_nav_menu li a {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Discord Hover Expanded State (Desktop): SHOW LABEL & DESCRIPTION ON HOVER */
@media (min-width: 769px) {
    .scdev-sidebar.is-slim-sidebar:hover {
        width: max-content !important;
        min-width: 120px !important;
        max-width: 360px !important;
    }

    .scdev-sidebar.is-slim-sidebar:hover .scdev-menu-item-info {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: auto !important;
        transition: opacity 0.25s ease 0.08s !important;
    }
}

/* User Profile Submenu Inside Sidebar - Hidden until CLICKED */
.scdev-sidebar .scdev-sidebar-user-submenu {
    list-style: none !important;
    padding: 6px 0 6px 14px !important;
    margin: 6px 0 10px 12px !important;
    border-left: 2px solid rgba(118, 75, 162, 0.4) !important;
    display: none !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.scdev-sidebar .scdev-sidebar-user-item.is-open .scdev-sidebar-user-submenu,
.scdev-sidebar .scdev-sidebar-user-item.is-active .scdev-sidebar-user-submenu {
    display: flex !important;
}

.scdev-sidebar .scdev-sidebar-user-submenu li a {
    font-size: var(--scdev-body-size, 15px) !important;
    font-weight: 500 !important;
    padding: 7px 12px !important;
    opacity: 1 !important;
    border-radius: 8px !important;
    color: var(--scdev-body-color, #334155) !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
}

.scdev-sidebar .scdev-sidebar-user-submenu li a:hover {
    background: rgba(118, 75, 162, 0.08) !important;
    color: #764ba2 !important;
    transform: translateX(3px) !important;
}

body.dark-mode .scdev-sidebar .scdev-sidebar-user-submenu li a,
body.night-mode .scdev-sidebar .scdev-sidebar-user-submenu li a,
.scdev-sidebar.is-dark-sidebar .scdev-sidebar-user-submenu li a {
    color: #e2e8f0 !important;
}

body.dark-mode .scdev-sidebar .scdev-sidebar-user-submenu li a:hover,
body.night-mode .scdev-sidebar .scdev-sidebar-user-submenu li a:hover,
.scdev-sidebar.is-dark-sidebar .scdev-sidebar-user-submenu li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Sidebar Search Item */
.scdev-sidebar-search-toggle {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* Live Search Modal Styling */
.scdev-search-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999999 !important;
    display: none !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 60px !important;
}

.scdev-search-modal.is-visible {
    display: flex !important;
}

.scdev-search-modal-backdrop {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(6px) !important;
}

.scdev-search-modal-box {
    position: relative !important;
    width: 90% !important;
    max-width: 640px !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 2 !important;
    animation: scdevSearchModalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes scdevSearchModalPop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

body.dark-mode .scdev-search-modal-box,
body.night-mode .scdev-search-modal-box {
    background: #1e1e30 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.scdev-search-modal-header {
    display: flex !important;
    align-items: center !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    gap: 12px !important;
}

body.dark-mode .scdev-search-modal-header,
body.night-mode .scdev-search-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.scdev-search-modal-input-wrap {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: rgba(0, 0, 0, 0.04) !important;
    border-radius: 12px !important;
    padding: 8px 14px !important;
}

body.dark-mode .scdev-search-modal-input-wrap,
body.night-mode .scdev-search-modal-input-wrap {
    background: rgba(255, 255, 255, 0.07) !important;
}

.scdev-search-modal-input-wrap input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    font-size: 16px !important;
    color: inherit !important;
    outline: none !important;
}

.scdev-search-modal-clear,
.scdev-search-modal-close {
    background: none !important;
    border: none !important;
    font-size: 22px !important;
    color: inherit !important;
    opacity: 0.6 !important;
    cursor: pointer !important;
    padding: 0 4px !important;
    line-height: 1 !important;
}

.scdev-search-modal-clear:hover,
.scdev-search-modal-close:hover {
    opacity: 1 !important;
}

.scdev-search-modal-tabs {
    display: flex !important;
    gap: 6px !important;
    padding: 10px 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    overflow-x: auto !important;
}

body.dark-mode .scdev-search-modal-tabs,
body.night-mode .scdev-search-modal-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.scdev-search-tab {
    background: rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

body.dark-mode .scdev-search-tab,
body.night-mode .scdev-search-tab {
    background: rgba(255, 255, 255, 0.08) !important;
}

.scdev-search-tab.is-active,
.scdev-search-tab:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    color: #ffffff !important;
}

.scdev-search-modal-results {
    max-height: 420px !important;
    overflow-y: auto !important;
    padding: 16px 20px !important;
}

.scdev-search-placeholder,
.scdev-search-empty,
.scdev-search-loading {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 32px 16px !important;
    color: #718096 !important;
    font-size: 14px !important;
    text-align: center !important;
}

.scdev-search-results-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.scdev-search-result-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    color: inherit !important;
    background: rgba(0, 0, 0, 0.02) !important;
    transition: background 0.18s ease, transform 0.18s ease !important;
}

body.dark-mode .scdev-search-result-card,
body.night-mode .scdev-search-result-card {
    background: rgba(255, 255, 255, 0.04) !important;
}

.scdev-search-result-card:hover {
    background: rgba(118, 75, 162, 0.12) !important;
    transform: translateX(4px) !important;
}

.scdev-search-result-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.scdev-search-result-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.scdev-search-result-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.scdev-search-result-title {
    font-weight: 600 !important;
    font-size: 14px !important;
}

.scdev-search-result-badge {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    background: rgba(118, 75, 162, 0.15) !important;
    color: #764ba2 !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
}

.scdev-search-result-sub {
    font-size: 12px !important;
    opacity: 0.7 !important;
}

/* Sidebar Top Controls Section */
.scdev-sidebar .scdev-sidebar-top-controls-list {
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

body.dark-mode .scdev-sidebar .scdev-sidebar-top-controls-list,
body.night-mode .scdev-sidebar .scdev-sidebar-top-controls-list,
.scdev-sidebar.is-dark-sidebar .scdev-sidebar-top-controls-list {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.scdev-sidebar-login-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* Sidebar Welcome Pill User Dropdown Toggle */
.scdev-sidebar .sidebar-welcome-pill-toggle,
.sidebar-welcome-pill-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 12px !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 20px !important;
    color: #1e293b !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

body.dark-mode .scdev-sidebar .sidebar-welcome-pill-toggle,
body.night-mode .scdev-sidebar .sidebar-welcome-pill-toggle,
.scdev-sidebar.is-dark-sidebar .sidebar-welcome-pill-toggle {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

/* STILL STATE: clear, visible dark text on light mode / white text on dark mode */
.scdev-sidebar .sidebar-welcome-pill-toggle .welcome-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    line-height: 1.2 !important;
    flex: 1 !important;
    overflow: hidden !important;
    color: inherit !important;
}

.scdev-sidebar .sidebar-welcome-pill-toggle .welcome-label {
    font-size: 12px !important;
    opacity: 0.85 !important;
    color: #64748b !important;
    transition: color 0.2s ease !important;
}

.scdev-sidebar .sidebar-welcome-pill-toggle .welcome-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: color 0.2s ease !important;
}

body.dark-mode .scdev-sidebar .sidebar-welcome-pill-toggle .welcome-label,
body.night-mode .scdev-sidebar .sidebar-welcome-pill-toggle .welcome-label,
.scdev-sidebar.is-dark-sidebar .sidebar-welcome-pill-toggle .welcome-label {
    color: #94a3b8 !important;
}

body.dark-mode .scdev-sidebar .sidebar-welcome-pill-toggle .welcome-name,
body.night-mode .scdev-sidebar .sidebar-welcome-pill-toggle .welcome-name,
.scdev-sidebar.is-dark-sidebar .sidebar-welcome-pill-toggle .welcome-name {
    color: #ffffff !important;
}

.scdev-sidebar .sidebar-welcome-pill-toggle .welcome-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid #667eea !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: border-color 0.2s ease !important;
}

.scdev-sidebar .sidebar-welcome-pill-toggle .scdev-sidebar-user-meta-right {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.scdev-sidebar .sidebar-welcome-pill-toggle .welcome-weather {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    white-space: nowrap !important;
    display: none;
    align-items: center !important;
    gap: 4px !important;
    transition: color 0.2s ease !important;
}

body.dark-mode .scdev-sidebar .sidebar-welcome-pill-toggle .welcome-weather,
body.night-mode .scdev-sidebar .sidebar-welcome-pill-toggle .welcome-weather,
.scdev-sidebar.is-dark-sidebar .sidebar-welcome-pill-toggle .welcome-weather {
    color: #e2e8f0 !important;
}

.scdev-sidebar .sidebar-welcome-pill-toggle .scdev-user-dropdown-arrow {
    font-size: 10px !important;
    color: #64748b !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

body.dark-mode .scdev-sidebar .sidebar-welcome-pill-toggle .scdev-user-dropdown-arrow,
body.night-mode .scdev-sidebar .sidebar-welcome-pill-toggle .scdev-user-dropdown-arrow,
.scdev-sidebar.is-dark-sidebar .sidebar-welcome-pill-toggle .scdev-user-dropdown-arrow {
    color: #94a3b8 !important;
}

/* Steady Hover State (No color change on hover) */
.scdev-sidebar .sidebar-welcome-pill-toggle:hover,
.sidebar-welcome-pill-toggle:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: inherit !important;
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

body.dark-mode .scdev-sidebar .sidebar-welcome-pill-toggle:hover,
body.night-mode .scdev-sidebar .sidebar-welcome-pill-toggle:hover,
.scdev-sidebar.is-dark-sidebar .sidebar-welcome-pill-toggle:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Open State (Dropdown Active) */
.scdev-sidebar-user-item.is-open .sidebar-welcome-pill-toggle .scdev-user-dropdown-arrow {
    transform: rotate(180deg) !important;
}

/* Collapsed slim sidebar state: pill becomes a circular button */
.scdev-sidebar.is-slim-sidebar:not(:hover) .sidebar-welcome-pill-toggle {
    padding: 3px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    margin: 0 auto !important;
    border: none !important;
}

.scdev-sidebar.is-slim-sidebar:not(:hover) .sidebar-welcome-pill-toggle .welcome-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-color: #ffffff !important;
}

.scdev-sidebar.is-slim-sidebar:not(:hover) .sidebar-welcome-pill-toggle .welcome-text,
.scdev-sidebar.is-slim-sidebar:not(:hover) .sidebar-welcome-pill-toggle .scdev-sidebar-user-meta-right {
    display: none !important;
}

/* When slim sidebar collapses / is not hovered, collapse the user dropdown submenu */
.scdev-sidebar.is-slim-sidebar:not(:hover) .scdev-sidebar-user-submenu,
.scdev-sidebar.is-slim-sidebar:not(:hover) .sub-menu {
    display: none !important;
}

.scdev-sidebar.is-slim-sidebar:not(:hover) .scdev-sidebar-user-item {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

/* Sidebar People & Creator Carousel Avatars - Always Circular */
.scdev-sidebar .compact-user-card img,
.scdev-sidebar .scdev-creator-card img,
.scdev-sidebar .scdev-status-avatar-wrap,
.scdev-sidebar .scdev-status-avatar-wrap img,
.scdev-sidebar .scdev-creator-avatar-wrap,
.scdev-sidebar .scdev-creator-avatar-wrap img,
.scdev-sidebar .sidebar-carousel img.avatar,
.scdev-sidebar .sidebar-carousel .avatar {
    border-radius: 50% !important;
    object-fit: cover !important;
}

