@import url(./sidebar/sidebar.mobile.css);

/* ======================
   📁 SIDEBAR
====================== */

#global-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 220px;
    padding: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    background: var(--bg);
    z-index: 1000;
    box-sizing: unset;
    overflow-y: auto;
    overflow-x: hidden;
    animation: sidebarIn 220ms ease-out;
}

#global-sidebar::-webkit-scrollbar {
    width: 4px;
}

#global-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

@keyframes sidebarIn {

    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

.sidebar {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
}

/* ======================
   LOGO
====================== */

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    height: 50px;
    cursor: pointer;
    transition: 0.25s ease;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;

    object-fit: contain;

    transition: 0.25s ease;

    border-radius: 10px;
}


/* ======================
   MENU
====================== */

a.menu-item {
    position: relative;

    display: flex;
    align-items: center;

    color: white;

    text-decoration: none;

    cursor: pointer;

    font-size: 17px;

    padding: 15px 20px;

    margin: 10px 0;

    transition: all 0.3s ease;
}

a.menu-item:hover {
    background: #1b1b1b;

    color: #ff0096;

    font-weight: 700;

    border-radius: 10px;
}

a.menu-item.active {
    color: #ff0096;

    font-weight: 700;
}

/* ======================
   ADMIN MENU ITEM
====================== */

a.menu-item.admin {
    color: #f59e0b;
    position: relative;
    border-left: 3px solid transparent;
}

a.menu-item.admin svg {
    color: #f59e0b;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

a.menu-item.admin:hover {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border-radius: 10px;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

a.menu-item.admin:hover svg {
    transform: scale(1.12);
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8));
}

a.menu-item.admin.active {
    color: #fbbf24;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.18);
    border-left: 3px solid #f59e0b;
    border-radius: 10px;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
}

a.menu-item.admin.active svg {
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.95));
}

a.menu-item.admin.has-reports {
    border-left: 3px solid #ff0055 !important;
    animation: adminAlertGlow 2.2s infinite ease-in-out;
}

@keyframes adminAlertGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255, 0, 85, 0);
    }
    50% {
        box-shadow: inset 0 0 12px rgba(255, 0, 85, 0.25), 0 0 14px rgba(255, 0, 85, 0.45);
    }
}


a.menu-item i,
a.menu-item svg,
a.menu-item path {
    margin-right: 10px;

    font-size: 20px;
}


/* ======================
   PROFILE
====================== */

.menu-item.profile .avatar-wrapper {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.15);

    box-shadow:
        0 0 8px rgba(255,255,255,0.05);

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.05);

    margin-right: 10px;
}

.menu-item.profile .avatar-wrapper img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.menu-item.profile:hover .avatar-wrapper {
    transform: translateY(-1px);

    box-shadow:
        0 0 12px rgba(255,255,255,0.12);
}


/* ======================
   SIDEBAR ITEM
====================== */

.sidebar-item {
    position: relative;

    display: flex;
    align-items: center;

    color: white;

    text-decoration: none;

    font-size: 17px;

    padding: 15px 20px;

    margin: 10px 0;

    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background: #1a1a1a;
}


/* ======================
   SEARCH
====================== */

.search-box {
    display: flex;
    align-items: center;

    background: #252525;

    border: 1px solid #222;

    border-radius: 30px;

    padding: 2px 10px;

    box-shadow: 0 0 10px rgb(0 0 0);

    transition: all 0.3s ease;

    flex-direction: row;

    margin-bottom: 10px;

    color: white;
}

.search-box:hover {
    box-shadow:
        0 0 15px var(--accent-fuchsia);

    border-color:
        var(--accent-fuchsia);
}

.search-box input {
    flex: 1;

    background: transparent !important;

    border: none !important;

    outline: none;

    color: var(--accent-green);

    font-size: 0.95em;

    padding-left: 8px !important;
    padding-top: unset !important;
    padding-bottom: unset !important;
    padding-right: unset !important;

    width: 120px;

    margin: 0 !important;
}

.search-box input::placeholder {
    color: #aaa;

    opacity: 1;

    font-style: italic;
}

.search-btn {
    background: none;

    border: none;

    color: var(--accent-fuchsia);

    cursor: pointer;

    transition: 0.3s;

    margin-top: 5px;
}

.search-btn:hover {
    color: var(--accent-green);

    transform: scale(1.1);
}

#prefixSelector {
    background: transparent;

    border: none;

    color: #f0f0f0;

    font-weight: bold;

    font-size: 16px;

    outline: none;

    margin: 0 !important;

    cursor: pointer;

    padding: 0;
}

#prefixSelector option {
    background: #111;

    color: white;
}


/* ======================
   ACTIVE PAGE
====================== */

.active-page-slot .menu-item {
    background: rgba(255, 0, 200, 0.15);

    border-left: 3px solid fuchsia;

    box-shadow:
        0 0 10px rgba(255,0,200,0.3);

    margin-bottom: 10px;
}


/* ======================
   BADGE
====================== */

.sidebar-badge {
    display: flex;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    background: red;
    color: white;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    right: 20px;
    top: 15px;
    pointer-events: none;
}

.sidebar-badge.admin-report-badge {
    background: linear-gradient(135deg, #ff0055, #ff5570);
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.7);
    animation: reportBadgePulse 1.8s infinite ease-in-out;
}

@keyframes reportBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 0, 85, 0.6);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 16px rgba(255, 0, 85, 0.95);
    }
}

/* ============================================================
   🔮 SIDEBAR MORE POPOVER (TWITTER/X STYLE)
============================================================ */

.sidebar-more-container {
    position: relative;
    width: 100%;
}

.menu-item-more {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.menu-item-more.active {
    background: rgba(255, 0, 150, 0.14) !important;
    color: #ff0096 !important;
    border-radius: 10px;
}

.menu-item-more.active svg {
    color: #ff0096;
    transform: rotate(90deg);
    transition: transform 0.25s ease;
}

.sidebar-more-popover {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(14, 14, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 8px 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 0, 150, 0.18);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 3px;
    animation: morePopoverIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-more-popover[hidden] {
    display: none !important;
}

@keyframes morePopoverIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.more-popover-header {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.4);
    padding: 6px 10px 4px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 4px;
}

.more-popover-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #f3f4f6;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border-left: 2px solid transparent;
}

.more-popover-item:hover {
    background: rgba(255, 0, 150, 0.1);
    color: #fff;
    border-left-color: #ff0096;
    transform: translateX(3px);
}

.more-popover-item .more-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ff0096;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.more-popover-item:hover .more-item-icon {
    background: rgba(255, 0, 150, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 150, 0.4);
    color: #fff;
}

.more-item-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.more-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.more-item-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}