.chat-content {
    padding: 15px;
    background: var(--content-bg);
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-radius: var(--screen-border-radius);
    overflow: hidden;
    height: 100%;
    border: var(--main-border);
    min-height: 0;
}

.chat-messages {
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1 1 0;
    min-height: 0;
}
.chat-message {
    max-width: 85%;
    padding: 15px;
    border-radius: var(--border-radius);
    background: transparent;
    border: 1px solid orange;
    position: relative;
    animation: messageSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1px solid orange;
}
.message-content-wrapper {
    flex: 1;
    min-width: 0;
}
.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.chat-message.own {
    align-self: flex-end;
    border-color: lime;
}
.chat-message.other {
    align-self: flex-start;
}
.message-content {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    max-width: 100%;
    box-sizing: border-box;
}

.chat-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}
.mini-screen-border.input-wrapper {
    flex: 1;
    position: relative;
    display: inline-block;
    border-radius: 2px;
    padding: 5px;
    z-index: 0;
    min-width: 0;
    max-width: 100%;
}

#chatInput {
    font-family: var(--screen-font-family);
    padding: 10px 5px;
    font-size: var(--main-font-size);
    border-radius: 2px;
    background-color: var(--content-bg);
    color: var(--screen-text-color);
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}
#chatInput:focus {
    outline: none;
}
#chatInput:empty::before {
    content: attr(data-placeholder);
    color: var(--screen-text-color);
    font-size: var(--main-font-size);
    opacity: 0.7;
    pointer-events: none;
}
#chatInput:focus:empty::before {
    opacity: 0.5;
}

.flat-btn.send-btn:disabled {
    background: var(--silver-bg);
    cursor: not-allowed;
}

.flat-btn.sticker-btn {
  color: transparent;
  cursor: pointer;
  background-image: url('/Images/oiia.png');
  background-color: lime;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sticker-picker {
    background: #d4ffc2;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    border: var(--main-border);
    border-radius: 0.75em;
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
    margin-bottom: 8px;
    z-index: 10;
    display: none;
    overflow: auto;
}
.sticker-picker.show {
    display: block;
}
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
}
.sticker-option {
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: var(--main-border);
}
.sticker-option:hover {
    border-color: lime;
    transform: scale(1.1);
}
.sticker-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sticker-message {
    max-width: 150px;
}
.sticker-message img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


/* Scrollbar Styles */
.sticker-picker::-webkit-scrollbar {
  display: none;
}
.leaderboard-list::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.leaderboard-list::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.leaderboard-list::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
    background: #4d991f;
}
.leaderboard-list::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
    background:  #4d991f;
}