
#inboxButton {
position: fixed;
top: 15px;
right: 16px;
z-index: 901;
background: rgba(0, 0, 0, 0.45);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 10px;
padding: 6px;
box-shadow:
0 0 4px rgba(0, 0, 0, 0.6),
0 0 8px rgba(0, 0, 0, 0.4),
0 0 12px rgba(0, 0, 0, 0.3),
inset 0 -1px 0 rgba(0, 0, 0, 0.3);
cursor: pointer;
box-sizing: border-box;
display: inline-flex;
align-items: center;
justify-content: center;
height: 36px;
width: 36px;
min-width: 36px;
transition: background 0.05s ease, transform 0.05s ease;
flex-shrink: 0;
}

#inboxButton:hover {
background: rgba(0, 0, 0, 0.6);
transform: translateY(-1px);
}

#inboxButton:active {
transform: translateY(0);
background: rgba(0, 0, 0, 0.7);
}

#inboxButton:focus {
outline: none;
border-color: var(--color-focus);
box-shadow:
0 0 4px rgba(0, 0, 0, 0.6),
0 0 8px rgba(0, 0, 0, 0.4),
0 0 12px rgba(0, 0, 0, 0.3),
0 0 0 2px var(--color-focus-shadow);
}

#inboxButton img {
width: 18px;
height: 18px;
pointer-events: none;
flex-shrink: 0;
}

#inboxButton.has-unread {
border-color: var(--color-accent, rgba(226, 232, 240, 0.9));
box-shadow: 0 0 8px var(--color-accent, rgba(226, 232, 240, 0.9)), 0 0 16px var(--color-accent, rgba(226, 232, 240, 0.6));
animation: inboxGlow 2s ease-in-out infinite;
}

@keyframes inboxGlow {
0%, 100% {
box-shadow:
    0 0 4px rgba(0, 0, 0, 0.6),
    0 0 8px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(0, 0, 0, 0.3),
    0 0 16px var(--color-accent, rgba(226, 232, 240, 0.9)),
    0 0 24px var(--color-accent, rgba(226, 232, 240, 0.6)),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
50% {
box-shadow:
    0 0 4px rgba(0, 0, 0, 0.6),
    0 0 8px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(0, 0, 0, 0.3),
    0 0 20px var(--color-accent, rgba(226, 232, 240, 0.9)),
    0 0 32px var(--color-accent, rgba(226, 232, 240, 0.8)),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
}


#menuBar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.4);
    z-index: 1002;
    height: 64px;
}

#usersOnline {
    position: relative;
    z-index: 1002;
}

#channelIndicator,
#usersOnline,
#personIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.05s ease;
    min-width: 32px;
    height: 44px;
    box-sizing: border-box;
}

#channelIndicator:hover,
#usersOnline:hover,
#personIcon:hover {
    background: rgba(255, 255, 255, 0.1);
}

#channelIndicator:active,
#usersOnline:active,
#personIcon:active {
    background: rgba(255, 255, 255, 0.15);
}

#usersOnline {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

#menuRight {
    display: flex;
    align-items: center;
    gap: 4px;
}

#statusIndicator {
    position: fixed;
    top: 16px;
right: calc(16px + 8px + 44px + 3px);
    z-index: 900;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 8px 6px 8px 6px;
    box-shadow:
        0 0 4px rgba(0, 0, 0, 0.6),
        0 0 8px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
height: 36px;
    width: auto;
    min-width: 0;
    max-width: none;
    transition: background 0.05s ease, transform 0.05s ease;
    flex-shrink: 0;
}

#statusIndicator:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-1px);
}

#statusIndicator:active {
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.7);
}

#statusIndicator:focus {
    outline: none;
    border-color: var(--color-focus);
    box-shadow:
        0 0 4px rgba(0, 0, 0, 0.6),
        0 0 8px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(0, 0, 0, 0.3),
        0 0 0 2px var(--color-focus-shadow);
}

#statusIndicator #statusIndicatorIcon {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    pointer-events: none;
    flex-shrink: 0;
}

#statusIndicator .status-emoji {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

#statusIndicator .status-label {
    font-size: 1rem;
    color: #f9fafb;
    font-weight: 500;
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

#userCount {
    margin-left: 8px;
    font-weight: 600;
    color: white;
}

#sidebar {
    position: fixed;
    bottom: calc(-100% - 64px);
    left: 0;
    right: 0;
    height: calc(60vh);
    max-height: 450px;
    background: var(--color-sidebar-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    padding: 10px 20px 20px 20px;
    transition: bottom 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    will-change: bottom;
}

#sidebar.active {
    bottom: 64px !important;
}

#sidebar-tabs {
    display: flex;
    justify-content: space-around;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: 0;
}

#sidebar-tabs span {
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.05s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 90px;
    box-sizing: border-box;
}

#sidebar-tabs span.active {
    background: rgba(255, 255, 255, 0.15);
}

#sidebar-tabs img {
    width: 24px;
    height: 24px;
}

#sidebar-tabs .tab-label {
    font-size: 0.75rem;
    color: #d1d5db;
    text-align: center;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    background: none;
    border: none !important;
}

#tab-home,
#tab-mic,
#tab-info {
    display: none;
}

#tab-home.active,
#tab-mic.active,
#tab-info.active {
    display: block;
}

