.rs-btn-icon.chat-button:focus,
.rs-btn-icon.chat-button:hover,
.rs-btn-icon.chat-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    z-index: 10;
    border: 1px solid lightgray;
    transition: all 0.3s ease-out;
    background: white!important;
}
.rs-btn-icon.chat-button:hover {
    transform: scale(1.2);
}
.chat-window {
    position: fixed;
    right: 20px;
    bottom: 20px;
    overflow: hidden;
    background: white;
    border-radius: 8px 8px 24px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.4s ease-out;
    width: 0px;
    height: 0px;
    opacity: 0;
    z-index: 1;
}

.expanded {
    width: 300px;
    height: 500px;
    opacity: 1;
}

.chat-button.expanded {
    transform: scale(0.75);
    border: none!important;
}

.rs-btn-icon.chat-button > svg {
    font-size: 1.75rem !important;
}

.user-list {
    transition: all 0.3s ease-out;
    position: absolute;
}

.user-list.slide-out {
    transform: translateX(-100%);
    transition: all 0.3s ease-out;
}

.chat-messages {
    width: 100%;
    overflow-y: auto;
    padding: 1rem;
    /* padding-bottom: 3rem; */
    transition: all 0.3s ease-out;
}

.chat-messages.slide-out {
    transform: translateX(100%);
    transition: all 0.3s ease-out;
}

.message {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    max-width: 80%;
}

.message.me {
    background: #e3f2fd;
    margin-left: auto;
}

.message.you {
    background: #f5f5f5;
    margin-right: auto;
}

@keyframes grow {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.unread-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    z-index: 10;
    border-radius: 50%;
    background-color: #ff4444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    opacity: 1;
}

.unread-badge.show {
    animation: 
        grow 0.3s ease-out,
        pulse 0.5s 0.3s 2;
    transform-origin: center;
}
