
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    width: 100vw;
    height: 100dvh;
}

/* Top bar */
.topbar {
    width: 100%;
    max-width: 400px;
    background: #85848693;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    height: 70px;
}

.topbar .logo {
    height: 30px;
}

.topbar .menu-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.chat-card {
    height: 100%;
    width: 100%;
    max-width: 400px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile {
    display: flex;
    align-items: center;
    padding: 16px;
}

.profile-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.profile-img-popup {
    width: 150px;
    height: 250px;
    border-radius: 10%;
    object-fit: cover;
    margin-right: 12px;
    /* animation: example 2s ease-in-out infinite alternate; */
}

.displaynone {
    display: none;
}

.displayblock {
    display: block;
}

@keyframes example {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.2);
    }
}

.profile-info h2 {
    font-size: 25px;
    margin-bottom: 4px;
}

.profile-info p {
    font-size: 15px;
    color: #666;
}

.notice {
    background: #f0f0f0;
    color: #444;
    font-size: 12px;
    padding: 12px 16px;
    margin: 0 16px 16px;
    border-radius: 6px;
    line-height: 1.4;
}

.messages {
    flex: 1;
    padding: 0 16px;
    overflow-y: auto;
    margin-bottom: 30px;
}

.messages p {
    margin: 8px 0;
    line-height: 1.5;
}

.input-area {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
}

.input-area input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 18px;
    font-size: 16px;
}

.input-area button {
    background: none;
    border: none;
    font-size: 20px;
    margin-left: 12px;
    margin-right: 12px;
    cursor: pointer;
}

.input-area button:disabled {
    opacity: 0.4;
    cursor: default;
}

.chatContainer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    height: 100%;
}

.mic-btn.loading {
    position: relative;
    color: transparent;
}

.mic-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #666;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup.active {
    display: flex;
}

.popup-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #494949;
    padding: 1.5rem;
    width: 100%;
    width: 100vw;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeIn 1s ease-out;
    height: 100%;
}

.popup-close {
    font-size: 65px;
    cursor: pointer;
    user-select: none;
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.userMessage {
    color: #fff;
    background-color: #575756;
    border-radius: 5px;
    padding: 5px;
    max-width: 90%;
    float: right;
    clear: both;
    margin-bottom: 20px;
}

.agentMessage {
    color: #575756;
    background-color: #F5F5F5;
    border-radius: 5px;
    padding: 5px;
    max-width: 90%;
    float: left;
    clear: both;
    margin-bottom: 20px;
}


.statusConnection {
    text-align: center;
    color: #c5c4c4;
    margin-bottom: 15px;
}


.containerSendButton {
    background-color: #293ef6;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sendButton {
    position: absolute;
    bottom: 12px;
    right: 12px;
}


.mute-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
}

.mute-btn:hover {
    opacity: 0.7;
}

.containerBtn {
    display: flex;
    align-items: baseline;
    position: absolute;
    bottom: 60px;
    align-items: baseline;
    justify-content: space-evenly;
    width: 100vw;
}

.popup-content button {
    margin-right: 50px;
}


.mute-btn svg {
    width: 42px;
    height: 39px;
}



#avatar-container {
  width: 300px;
  height: 300px;
}

#avatar {
  width: 100%;
  height: 100%;
}

/* Transição suave ao variar ry */
#mouth {
  transition: ry 0.1s ease-out;
}