:root {
    --main-bg: white;
    --secondary-bg: #eee;
    --card-bg: white;

    --main-text: #333;
    --secondary-text: #666;
    --sub-text: #666;

    --main-link: #333;
    --main-link-hover: #333;
    --secondary-link: #333;

    --border: #d6d6d6;
    --border-soft: #eee;
    --border-strong: #c2c2c2;
    --shadow: #b4b4b4;
}

body {
    padding: 0px;
    margin: 0px;
    font-size: 16px;
    font-family: sans-serif;
    background-color: var(--main-bg);
    line-height: 170%;
}

a {
    text-decoration: none;
}

stateful-component {
    display: contents;
}

span {
    line-height: 120%;
}

/* basic */
.stateful-component {
    display: contents;
}

.img_box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.paper {
    margin: 10px;
    padding: 10px;
    border: #999 2px solid;
    box-shadow: 10px 5px 5px #999;
}

dl {
    margin: 5px 0;
}

dt {
    font-weight: bold;
}

dd {
    margin-left: 0;
}

.container {
    display: flex;
}

.alignment {
    position: relative;
    width: 100%;
    height: 100%;
}

.checkbox-label {
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.icon-btn {
    justify-content: center;
    width: 30px;
    padding: 0;
}


.svg_icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
}


.splitview>div {
    display: flex;
    align-items: center;
    overflow: auto;
    box-sizing: border-box;
    padding: 10px;
    min-height: 100px;
}

.splitview_first {
    width: var(--splitview-first-width, 50%);
}

.splitview_second {
    width: var(--splitview-second-width, 50%);
}

@media (max-width: 600px) {

    .splitview_first,
    .splitview_second {
        width: 100%;
    }
}

/* section */
.section_title {
    font-weight: bold;
    font-size: 1.2em;
}

.form-ln {
    display: flex;
    margin: 10px;
    flex-direction: column;
    align-items: flex-start;
}

select,
input[type="text"],
input[type="password"] {
    width: 100%;
}


textarea {
    width: 95%;
    padding: 10px;
    border-radius: 3px;
    font-size: 16px;
    border-radius: 6px;
}

textarea:focus,

input:focus {
    outline: none !important;
}

input {
    flex: 1;
    position: relative;
    padding: 8px 10px;
    border-radius: 5px;
}

input,
textarea {
    font-size: 16px;
}

.input_icon {
    position: absolute;
    left: 5;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
}

.checkbox_container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
}

.radio_box {
    display: flex;
    gap: 10px;
}

select {
    font-size: 16px;
}

.form_image_preview {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.form_image_preview>div {
    width: 120px;
    height: 120px;
    border: #666 1px solid;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form_image_close_btn {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    display: flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    background: #666;
    color: white;
}

.slideDown {
    overflow: hidden;
    animation: _slideDown 1s;
}

@keyframes _slideDown {
    0% {
        max-height: 0px;
    }

    100% {
        max-height: 500px;
    }
}

.fadeIn {
    /* opacity: 0; */
    transition: opacity 0.2s ease-out;
}


@keyframes btnbg {
    0% {
        background-position: 200% 0%;
    }

    50% {
        background-position: 100% 0%;
    }

    100% {
        background-position: 0% 0%;
    }
}


span {
    overflow-wrap: break-word;
    min-width: 0;
}

span.normal {
    font-size: 15px;
}

span.lg {
    font-size: 18px;
}

.flex {
    display: flex;
}


.stack {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

span.gray {
    color: #999;
}

span.sm {
    font-size: 0.9em;
}

#container {
    max-width: 1050px;
    padding: 10px;
    margin: 20px auto;
}

.block_title {
    display: block;
    font-weight: bold;
    font-size: 1.5em;
    padding: 5px;
    margin: 10px 0 5px 0;
}

#footer {
    margin-top: 100px;
    text-align: center;
}

ul {
    margin: 1px;
    padding-left: 20px;
}

li {
    margin: 7px 0;
}


hr {
    border: 1px #eee solid;
}

th {
    text-align: left;
    padding: 5px;
}

td {
    padding: 5px;
    min-width: 150px;
}

.section {
    margin-bottom: 10px;
}


.grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.box {
    padding: 5px
}

img {
    max-width: 100%;
    height: auto;
}

.cover_icon {
    max-width: 180px;
    height: auto;
}

.list_item_description {
    margin-left: 20px;
}

.kv {
    display: flex;
    flex-direction: row;
}

.kv_k {
    color: #666;
    width: 130px;
    padding: 5px;
}

.kv_v {
    font-size: 1.1em;
    padding: 5px;
}

.btn {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
}

/* Modal */
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 10px;
    background-color: var(--secondary-bg);
    border-radius: 15px 15px 0 0;
}

.modal-title {
    color: var(--secondary-text);
    font-size: 1.3em;
    font-weight: bold;
}

.modal-close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-container {
    opacity: 0;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    transition: opacity 0.2s linear;
}

.modal {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.modal-content-container {
    transition: transform 0.05s linear;
}

.modal-content {
    background-color: #fefefe;
    border: 1px solid rgb(124, 124, 124);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 10px;
    transform: scale(0.3);
    transition: transform 0.15s linear;
}

.modal-body {
    padding: 20px;
    overflow-y: hidden;
    min-height: 60px;
    transition: max-height 0.2s linear;
}

@media (min-width:451px) {
    .modal-content {
        width: 500px;
    }
}

@media (max-width:450px) {
    .modal-content {
        width: 350px;
    }
}

/* loader */
.topLoader {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    display: none;
    padding: 0;
}

.loader {
    width: 100%;
    height: 3px;
    position: relative;
    top: 0;
    background: #eee;
    overflow: hidden;
}

.loader::after {
    content: '';
    width: 50%;
    height: 3px;
    background: rgb(23, 126, 245);
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    animation: animloader 1s linear infinite;
}

@keyframes animloader {
    0% {
        left: 0;
        opacity: 0;
        transform: translateX(-100%);
    }

    50% {
        left: 50%;
        opacity: 1;
        transform: translateX(-50%);
    }

    100% {
        left: 100%;
        opacity: 0;
        transform: translateX(0%);
    }
}

.spinner {
    width: 28px;
    height: 28px;
    border: 4px solid var(--sub-text);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spin {
    display: inline-flex;
    animation: spinrotation 2s linear infinite;
}

@keyframes spinrotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

p code {
    background-color: #eee;
    color: #a71616;
}

.popover {
    position: relative;
    display: inline-block;
}

.popover_trigger {
    cursor: pointer;
    display: inline-block;
}

.popover_content {
    display: none;
    position: absolute;
    z-index: 9999;
    min-width: max-content;
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* bottom variants: content appears below trigger */
.popover-bottom-left .popover_content,
.popover-bottom-right .popover_content,
.popover-smart .popover_content {
    top: calc(100% + 4px);
}

/* top variants: content appears above trigger */
.popover-top-left .popover_content,
.popover-top-right .popover_content {
    bottom: calc(100% + 4px);
}

/* left-anchored: content's left edge aligns with trigger's left edge */
.popover-bottom-left .popover_content,
.popover-top-left .popover_content,
.popover-smart .popover_content {
    left: 0;
}

/* right-anchored: content's right edge aligns with trigger's right edge */
.popover-bottom-right .popover_content,
.popover-top-right .popover_content {
    right: 0;
}

/* right-center: content appears to the right of trigger, vertically centered */
.popover-right-center .popover_content {
    left: calc(100% + 12px);
    top: 50%;
}

/* left-center: content appears to the left of trigger, vertically centered */
.popover-left-center .popover_content {
    right: calc(100% + 12px);
    top: 50%;
}

button {
    background-color: #e7e7e7;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-bottom: 1px solid #808080;
    border-right: 1px solid #808080;
    padding: 8px 12px;
    border-radius: 6px;
    color: #000000;
    cursor: pointer;
    /* box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #8b8b8b; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    user-select: none;
    outline: none;
    transition: background-color 0.2s ease;
    font-size: 15px;
}


button:hover {
    background-color: #dbe1e6;
}

/* Message Box Styles */
.fl_message_box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideDown 0.3s ease-out;
    transition: opacity 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.info_message {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.success_message {
    background-color: #e8f5e9;
    color: #388e3c;
    border: 1px solid #81c784;
}

.error_message {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ef5350;
}

.preview-style {
    display: flex;
    gap: 5px;
}

.image-square {
    position: relative;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-square span {
    display: flex;
    background-color: rgb(180, 26, 26);
    border-radius: 50%;
    color: white;
    position: absolute;
    right: 5px;
    top: 5px;
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
}

.image-square span:hover {
    background-color: red;
}

.avatar-upload-btn-box {
    display: flex;
    gap: 5px;
    padding: 5px;
    align-items: center;
}

/* Tooltip */
.tooltip-content {
    padding: 1px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    background: var(--tooltip-bg, #333333);
    color: var(--tooltip-color, #ffffff);
}

/* Center content vertically for side placements */
.tooltip.popover-right-center .popover_content,
.tooltip.popover-left-center .popover_content {
    transform: translateY(-50%);
}

/* Arrow: right placement — arrow points left on the left edge of content */
.tooltip-arrow-right-center::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--tooltip-bg, #333333);
}

/* Arrow: left placement — arrow points right on the right edge of content */
.tooltip-arrow-left-center::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--tooltip-bg, #333333);
}

/* Arrow: top placement — arrow points down on the bottom edge of content */
.tooltip-arrow-top-left::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 16px;
    border: 6px solid transparent;
    border-top-color: var(--tooltip-bg, #333333);
}

/* Arrow: bottom placement — arrow points up on the top edge of content */
.tooltip-arrow-bottom-left::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 16px;
    border: 6px solid transparent;
    border-bottom-color: var(--tooltip-bg, #333333);
}

/* =============================================================================
   Custom Select
   ============================================================================= */

.rdselect {
    position: relative;
    display: inline-flex;
    flex-direction: column;
}

.rdselect .popover_trigger {
    width: 100%;
}

.rdselect_trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--main-bg, #fff);
    cursor: pointer;
    user-select: none;
    padding: 1px 6px;
    min-height: 28px;
    font-size: 14px;
    transition: border-color 0.15s, background 0.15s;
}

.rdselect--sm .rdselect_trigger {
    padding: 2px 6px;
    min-height: 24px;
    font-size: 13px;
}

.rdselect--lg .rdselect_trigger {
    padding: 2px 5px;
    font-size: 16px;
}

.rdselect_trigger:hover {
    border-color: var(--border-strong);
    background: var(--secondary-bg);
}

.rdselect_label {
    flex: 1;
    color: var(--main-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-width: 120px;
}

.rdselect_placeholder {
    flex: 1;
    color: var(--secondary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.rdselect_chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--secondary-text);
    transition: transform 0.15s ease;
}

.rdselect.popover-click[data-open] .rdselect_chevron,
.rdselect_trigger[data-open] .rdselect_chevron {
    transform: rotate(180deg);
}

.rdselect_menu {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 4px 0;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
}

.rdselect_option {
    padding: 2px 12px;
    cursor: pointer;
    color: var(--main-text);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rdselect_option:hover {
    background: var(--secondary-bg);
}

.rdselect_option--selected {
    font-weight: 600;
    background: var(--secondary-bg);
}

.rdselect_search_wrap {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-soft);
}

.rdselect_search {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--main-bg, #fff);
    color: var(--main-text);
    font-size: 13px;
    font-family: inherit;
    padding: 3px 8px;
    outline: none;
    line-height: 1.4;
}

.rdselect_search:focus {
    border-color: var(--border-strong);
}

/* Remove native search cancel button */
.rdselect_search::-webkit-search-cancel-button {
    display: none;
}

.rdselect_spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.rdselect_spinner::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--secondary-text);
    border-radius: 50%;
    animation: rdselect_spin 0.6s linear infinite;
}

@keyframes rdselect_spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================================================
   Dropdown (link menu)
   ============================================================================= */

.rddropdown_menu {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 4px 0;
    min-width: max-content;
}

.rddropdown_item {
    display: block;
    padding: 2px 12px;
    color: var(--main-text);
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
}

.rddropdown_item:hover {
    background: var(--secondary-bg);
    color: var(--main-text);
}

.rddropdown_divider {
    height: 1px;
    background: var(--border-soft);
    margin: 4px 0;
}

/* =============================================================================
   Button Variants
   ============================================================================= */

/* --general (default): subtle filled, inherits existing button look */
button.btn--general {
    background-color: var(--secondary-bg, #e7e7e7);
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-bottom: 1px solid var(--border-strong, #808080);
    border-right: 1px solid var(--border-strong, #808080);
    color: var(--main-text, #333);
}

button.btn--general:hover {
    background-color: var(--border, #d6d6d6);
}

/* --solid: strong filled primary action */
button.btn--solid {
    background-color: #2563eb;
    border: 1px solid #1d4ed8;
    color: #ffffff;
}

button.btn--solid:hover {
    background-color: #1d4ed8;
    border-color: #1e40af;
}

/* --outline: transparent bg with visible border */
button.btn--outline {
    background-color: transparent;
    border: 1.5px solid var(--border-strong, #c2c2c2);
    color: var(--main-text, #333);
}

button.btn--outline:hover {
    background-color: var(--secondary-bg, #eee);
    border-color: var(--shadow, #b4b4b4);
}

/* --ghost: no border, very subtle hover fill */
button.btn--ghost {
    background-color: transparent;
    border: 1px solid transparent;
    color: var(--main-text, #333);
}

button.btn--ghost:hover {
    background-color: var(--secondary-bg, #eee);
}

/* --plain: completely flat, no border, no fill — text only */
button.btn--plain {
    background-color: transparent;
    border: none;
    color: var(--main-text, #333);
    padding: 4px 6px;
}

button.btn--plain:hover {
    color: var(--secondary-text, #666);
    text-decoration: underline;
}

/* --glass: frosted glass effect */
button.btn--glass {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: inherit;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

button.btn--glass:hover {
    background-color: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Separator */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2px 0;
    color: rgba(0, 0, 0, 0.3);
    font-size: 14px;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(73, 73, 73, 0.2);
}

.separator::before {
    margin-right: 15px;
}

.separator::after {
    margin-left: 15px;
}
/* appended css */

body {
    background-color: #e9ecee;
    padding-top: 5px;
}

svg {
    width: 20px;
    height: 20px;
    display: block;
}

.header_community_btn svg {
    color: #999;
}

.header_community_btn:hover {
    background-color: #dddddd;
}

.header_box {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 400px;
    max-width: 800px;
    margin-bottom: 10px;
}

.mobile_sidebar_toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid #d0d4da;
    background: #fff;
    color: #333;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.mobile_sidebar_toggle svg {
    width: 18px;
    height: 18px;
}

.mobile_sidebar_toggle:hover {
    background: #f5f6f8;
}

.header_community_btn {
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    font-size: 18px;
}

.maincontainer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-left: 310px;
    padding-right: 310px;
    ;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 312px;
    display: flex;
    z-index: 40;
    background-color: #e9ecee;
}

.sidebar_backdrop {
    display: none;
}

.main_box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main {
    flex: 1;
    width: 100%;
    max-width: 800px;
    padding: 10px 13px;
    box-sizing: border-box;
    background-color: white;
    border-radius: 12px;
}

.primary_sidebar {
    width: 58px;
    flex-shrink: 0;
    background-color: #d9dee3;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.primary_sidebar>stateful-component,
.primary_sidebar>stateful-component>div {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.primary-sidebar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 8px 0;
    box-sizing: border-box;
}

.primary-communities-wrap {
    flex: 1;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.primary-communities-scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 0;
    scrollbar-width: none;
}

.primary-communities-scroll::-webkit-scrollbar {
    display: none;
}

.primary-community-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.primary-community-pill {
    position: absolute;
    left: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background-color: #333;
    opacity: 0;
    height: 0;
    transition: height 0.15s ease, opacity 0.15s ease;
}

.primary-community-item:hover .primary-community-pill {
    opacity: 1;
    height: 20px;
}

.primary-community-item--active .primary-community-pill {
    opacity: 1;
    height: 40px;
}

.primary-community-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #a8ade1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
    user-select: none;
    text-decoration: none;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
}

.primary-community-icon:hover {
    background-color: #a8ade1;
    /* color: #fff; */
}

.primary-user-area {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ccc;
    width: 100%;
    display: flex;
    justify-content: center;
}

.primary-user-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #d0d0d0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: border-radius 0.15s ease, background-color 0.15s ease;
    padding: 0;
}

.primary-user-btn:hover {
    border-radius: 30%;
    background-color: #5865f2;
    color: #fff;
}

.primary-user-btn svg {
    width: 22px;
    height: 22px;
}

.secondary_sidebar {
    width: 255px;
    padding: 10px 5px;
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #d5dee6 transparent;
}

.third_sidebar {
    display: flex;
    position: fixed;
    right: 0;
    top: 27px;
    bottom: 0;
    width: 300px;
    padding: 10px 5px 10px 10px;
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #1e1f22 transparent;
}

@media screen and (max-width: 1250px) {
    .maincontainer {
        padding-right: 10px;
    }

    .third_sidebar {
        display: none;
    }
}

@media screen and (max-width: 900px) {
    .maincontainer {
        padding-left: 10px;
    }

    .mobile_sidebar_toggle {
        display: inline-flex;
    }

    .sidebar {
        display: flex;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        will-change: transform;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar_backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(20, 22, 26, 0.36);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 30;
    }

    body.sidebar-open .sidebar_backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .third_sidebar {
        display: none;
    }
}

.emoji-react-row {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.emoji-react-trigger {
    padding: 4px 6px;
    border-radius: 20px;
    transition: transform 0.15s ease, background 0.15s ease;
    display: inline-flex;
    align-items: center;
}

.emoji-react-trigger-default {
    color: #65676b;
}

.emoji-react-trigger-default:hover {
    color: #1877f2;
}

.emoji-react-trigger-active {
    background: #e7f3ff;
}

.emoji-react-trigger:hover {
    background: #f0f2f5;
    transform: scale(1.15);
}

.emoji-react-summary {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    color: #65676b;
}

.emoji-react-summary-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 5px 0 0;
}

.emoji-react-item {
    position: relative;
    display: inline-flex;
    line-height: 0;
}

.emoji-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(65, 84, 117, 0.55);
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 13px;
    height: 13px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    line-height: 1;
    font-family: sans-serif;
    pointer-events: none;
    box-sizing: border-box;
}

.emoji-react-option {
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: transform 0.2s ease;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.emoji-tooltip {
    position: absolute;
    bottom: calc(100% + 5px);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    font-family: sans-serif;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    line-height: normal;
}

.emoji-react-option:hover .emoji-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.emoji-react-trigger svg,
.emoji-react-item svg,
.emoji-react-option svg {
    width: auto;
    height: auto;
}

.emoji-react-option:hover {
    transform: scale(1.35);
}

.emoji-react-active {
    background: #e7f3ff;
    border-radius: 50%;
}

/* Transparent bridge between trigger and popover to prevent disappearing */
.popover-hover .popover_content::before {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    height: 16px;
    background: transparent;
}

.popover-top-left .popover_content::before,
.popover-top-right .popover_content::before {
    bottom: -16px;
}

.popover-bottom-left .popover_content::before,
.popover-bottom-right .popover_content::before,
.popover-smart .popover_content::before {
    top: -16px;
}

textarea,
input {
    border-color: #ccc;
    scrollbar-color: #ccc transparent;
}

.main-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.sub-link {
    position: relative;
    z-index: 2;
}

.active svg {
    color: #496588;
    font-weight: 600;
}
