body {
    margin: 0;
    background: #111;
    font-family: Arial, sans-serif;
}

.chat-wrapper {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #0b141a;
}

.chat-header {
    background: #202c33;
    padding: 15px;
    display: flex;
    align-items: center;
    color: white;
    border-bottom: 1px solid #333;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

#settingsBtn {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.avatar-select {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #1f2c33;
    overflow-x: auto;
}

.avatar-select img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    object-fit: cover;
}

.avatar-select img:hover {
    border-color: #00a884;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-image: url("https://i.imgur.com/5u1KxZL.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bubble {
    max-width: 75%;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 12px;
    color: white;
    position: relative;
    animation: fadeIn 0.2s ease-in-out;
    padding-left: 70px;
    word-wrap: break-word;
}

.me {
    background: #005c4b;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

.other {
    background: #202c33;
    margin-right: auto;
    border-bottom-left-radius: 0;
}

.avatar-bubble {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00a884;
    position: absolute;
    left: -70px;
    top: 5px;
}

.username {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 3px;
}

.time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 5px;
    text-align: right;
}

.chat-input {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: #202c33;
    border-top: 1px solid #333;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border-radius: 20px;
    border: none;
    background: #2a3942;
    color: white;
    font-size: 16px;
}

.chat-input button {
    padding: 12px;
    background: #00a884;
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    min-width: 45px;
    min-height: 45px;
}

#stickerBtn {
    display: none;
}

.sticker-panel {
    display: none;
    background: #1f2c33;
    padding: 10px;
    border-top: 1px solid #333;
    overflow-x: auto;
}

.sticker-panel img {
    width: 90px;
    margin: 5px;
    cursor: pointer;
    border-radius: 10px;
}

.sticker-img {
    width: min(180px, 40vw);
    height: auto;
    border-radius: 10px;
    margin-top: 5px;
}

.typing {
    display: none;
    color: #aaa;
    font-size: 12px;
    padding-left: 20px;
    margin-bottom: 5px;
}

.settings-panel {
    display: none;
    background: #1f2c33;
    padding: 15px;
    border-top: 1px solid #333;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
