html, body {
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.scroll-container {
    overflow-y: auto;        /* or overflow: auto for both axes */
    max-height: 99%;       /* needs a constraint to scroll */
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 10px;
    margin-top:10px;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.cbtn {
        display: inline-block;
        text-align: center;
        cursor: pointer;
        border-radius: 0.5rem;
        background: none;
        padding: 5px 10px;
        border: 1px solid transparent;
        font-family: inherit;
        transition: background-color 200ms ease;
        margin: 0 5px;
        color: #222;
        font-size: 10px;
        min-width: 60px;
        letter-spacing: 1px;
        user-select: none;
}

.chat-section {
    padding: 0 20px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    background-color: #F8F8FA;
}

#chat-sidebar {
    height: 100vh;
}

#chat-messages {
    max-height: 99%;
    overflow-y: auto;
}

.chat-bottom {
    border-radius: 10px;
    background: #fff;
    padding: 10px 15px;
    margin-top: 10px;
}

.app-wrapper {
    padding-left: 0 !important;
    padding-top: 0 !important;
}

.simple-btn {
    background: none;
    border-radius: 6px;
    border:1px solid #ccc;
    padding: 5px 8px;
    font-size:10px;
    cursor: pointer;
    line-height: 100%;
}

.chat-bubble {
    position: relative;
    display: block;
    padding: 15px 19px;
    font-size: 1rem;
    min-width: 100px;
    color: #222;
    border-top: 1px dashed #f1f1f1;
    transition: background-color 300ms ease;
    margin-bottom: 10px;
    max-width: 70%;
}

.chat-bubble::selection {
    background-color: #b1a2ff; /* Highlights the background */
    color: #ffffff; /* Changes the text color */
}

.chat-bubble:hover {
    background-color: rgb(240 237 255 / 0.3);
}

.chat-bubble .more {
    position: absolute;
    top:0;
    right:0;
    visibility: hidden;
}

.chat-bubble:hover .more {
    visibility: visible;
}

.chat-bubble.hidden-user .chat-ava {
    visibility: hidden;
}

.chat-bubble.hidden-user .chat-title {
    display: none;
}

.chat-bubble.hidden-user {
    border-top: none;
}

.emoji-holder {
    user-select: none;
    margin-top:5px;
    display: inline-block;
    border-radius: 10px;
    padding: 5px 10px;
    background: rgb(204 204 204 / 0.3);
}

.emoji-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    opacity: 1;
}

.emoji-span {
    position: absolute;
    right:1px;
    bottom:0;
}

.emoji-holder {
    position: relative;
}

.reaction {
    padding: 3px 4px;
    border-radius: 8px;
    border:1px solid #f5f5f5;
    font-size:12px;
    margin: 5px;
}

#chat-holder {
    height: 95dvh;
    display: grid;
    grid-template-rows: 1fr auto;
    border-radius: 0;
}


#chat-input {
    border:none;
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border: none;
    resize: none;
}

#chat-input::placeholder {
    color: #dad1ff; /* Replace with your desired color */
    opacity: 1;    /* Ensures full color vibrancy in Firefox */
}

.chat-ava {
    height: 30px;
    border-radius: 50%;
    pointer-events: none;
}

.chat-name {
    font-weight: bold;
    font-size: 11px;

}

.chat-time {
    font-weight: bold;
    font-size: 10px;
    color: #ccc;
}

.chat-inner {
    display: grid;
    grid-template-columns: 50px auto;
    gap: 0;
}

.chat-table {
    font-family: Consolas, monospace;
    font-size: 12px;
}

.chat-table td {
    padding: 5px 10px;
}

.chat-table thead {
    font-weight: bold;
}

.chat-selector {
    background-color: #fff;
    padding: 15px 15px;
    border: 1px solid transparent;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    width: 100%;
    text-align: left;
    transition: background-color 200ms ease, box-shadoe 200ms ease;
    border-bottom: 1px solid #f5f5f5;
    outline: none;
    margin: 5px 0;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
    gap:20px;
    user-select: none;
}

.chat-selector img {
    vertical-align: middle;
    height: 24px;
    border-radius: 50%;
    padding: 0 5px;
    filter: grayscale(1);
}

.chat-selector.selected {
    background-color: #F0EDFF;
    border-top-color: transparent;
    border-bottom-color: transparent;
    font-weight: bold;
    box-shadow: none;
}

.chat-selector.selected img {
    filter: grayscale(0);
}

.chat-selector .status {
    font-size: 7px;
    position: absolute;
    bottom: -1px;
    right: 3px;
    height: 8px;
    width: 8px;
    border: 1px solid white;
    border-radius: 50%;
    background-color: #9e9e9e;
    opacity: 0;
    transition: opacity 500ms ease-in;
}

.chat-selector.status-0 > div > .status {
    background-color: red !important;
    opacity: 1;
}

.chat-selector.status-1 > div > .status {
    background-color: #4caf50 !important;
    opacity: 1;
}



.chat-title {
    font-weight: bold;
    font-size: 10px;
    color: #6A4DFF;
}

.chat-text {
    padding: 10px 0;
    white-space: preserve-breaks;
}

.chat-bubble.same-user .chat-ava {
    display: none;
}

.image-thumb {
    border-radius: 6px;
    opacity: 0.7;
    max-width: 80px;
    border: 1px solid #f5f5f5;
}

.image-thumb:hover {
    opacity: 1;
}

.empty-chat {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 10px;
    margin: 10px;
}

.arrow {
    display: none;
}

.last-message {
    padding-top: 10px;
    display: block;
    font-size: 10px;
    color: #6f6f6f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 20px;
}

#notification-btn {
    width: 100%;
    padding: 15px 0;
    border: none;
    background-color: #333;
    text-align: center;
    color: white;
    
}

.mswitch-bg {
    border-radius: 0.75rem;
    padding: 7px 5px;
    display: inline-flex;
    margin: 10px 0;
    justify-content: center;
    vertical-align: middle;
    width: 100%;
}

.mswitch {
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border-radius: 0.5rem;
    background: none;
    padding: 5px 10px;
    border: 1px solid transparent;
    font-family: inherit;
    transition: background-color 200ms ease;
    margin: 0 5px;
    color: #222;
    font-size: 10px;
    min-width: 60px;
    letter-spacing: 1px;
    user-select: none;
}

.mswitch.active {
    font-weight: bold;
    color: #6A4DFF;
    background-color: #fff;
    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}