/* Topic Log by Codychat.io */
.ui.segment {
    position: relative;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(34, 36, 38, .15);
    padding: 1em 1em;
    border-radius: .28571429rem;
    border: 1px solid rgba(34, 36, 38, .15);
}
.ui.label {
    display: inline-block;
    line-height: 0.5;
    vertical-align: baseline;
    margin: 0 .14285714em;
    background-color: #e8e8e8;
    background-image: none;
    padding: .5833em .833em;
    color: rgba(0, 0, 0, .6);
    text-transform: none;
    font-weight: 700;
    border: 0 solid transparent;
    border-radius: .28571429rem;
    transition: background .1s 
ease;
}
.reaction_picker {
    display: none; /* Default mein chhupa rahega */
    margin-top: 5px;
    background: #fff;
    padding: 2px 5px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: fit-content;
}

/* Jab message par hover karein tab icons dikhein */
.chat_log:hover .reaction_picker {
    display: flex;
    gap: 8px;
}

.emo_btn {
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
}

.emo_btn:hover {
    transform: scale(1.4);
}
.msg_reaction_bar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}
.single_react {
    background: #f0f2f5;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    align-items: center;
}
.single_react:hover {
    background: #e4e6eb;
}
.single_react small {
    margin-left: 3px;
    font-weight: bold;
    color: #65676b;
}
.message_reaction_bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
    padding: 2px 8px;
}

.single_reaction {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.single_reaction:hover {
    background: #e1e1e1;
}

.single_reaction small {
    font-weight: bold;
    margin-left: 2px;
}
.ui.ui.raised.segment {
    box-shadow: 0 2px 4px 0 rgba(34, 36, 38, .12), 0 2px 10px 0 rgba(34, 36, 38, .15);
}

.ui.ribbon.label {
    position: relative;
    min-width: max-content;
    border-radius: 0 .28571429rem .28571429rem 0;
    border-color: rgba(0, 0, 0, .15);
    left: calc(-1rem - 1.2em);
    margin-right: -1.2em;
    padding-left: calc(1rem + 1.2em);
    padding-right: 1.2em;
}
.ui.ui.ui.green.label {
    background-color: #21ba45;
    border-color: #21ba45;
    color: #fff;
}
.ui.ribbon.label::after {
    position: absolute;
    content: "";
    top: 100%;
    left: 0;
    background-color: transparent;
    border-style: solid;
    border-width: 0 1.2em 1.2em 0;
    border-color: transparent;
    border-right-color: inherit;
    width: 0;
    height: 0;
}
.other_logs {
    padding: 0px 10px 0px 20px;
}
.topic_log {
    background: unset;
}