@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

.wrapper {
    width: 100%;
    height: calc(100vh - 20px);
    /* border: 1px black solid; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
}

.wrapper-card {
    display: flex;
    gap: 10px;
}

.area-title {
    width: 100%;
    height: auto;
    text-align: center;
}

.title-text {
    font-family: "Poppins";
    font-size: 26px;
    font-weight: 700;
    padding: 0px;
    margin: 0px;
}

.cardOuter {
    width: 360px;
    height: auto;
    background-color: #333333;
    padding: 15px;
    border-radius: 30px;
    position: relative;
}

.chat-box {
    width: 100%;
    height: 380px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}

.cardOuter-inputChat {
    width: 360px;
    height: fit-content;
    background-color: #ffb200;
    padding: 15px;
    border-radius: 30px;
}

.area-textHelper {
    width: auto;
    height: auto;
    margin-bottom: 8px;
}

.text-helper {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    margin: 0px;
    font-weight: 700;
    color: #ffffff;
}

.form-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0px;
}

/* Flex container antara textarea dan tombol */
.chat-form-wrapper {
    display: flex;
    align-items: flex-start; /* ini penting agar tombol tetap di atas walau textarea tinggi */
    gap: 10px;
    width: 100%;
}

/* Textarea fleksibel */
.input-area {
    flex: 1;
    resize: vertical;
    /* min-height: 40px; */
    resize: none;
    overflow: hidden;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-family: "Poppins", sans-serif;
    outline: none;
    font-size: 14px;
}

/* Tombol submit dengan ikon */
.btn-submit-icon {
    background-color: #f8c301;
    color: #333333;
    border: none;
    border-radius: 50%;
    /* padding: 12px; */
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 46px;
    width: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-submit-icon:hover {
    background-color: #e7b603;
}

.nameSet {
    color: #333333;
    font-size: 12px;
    font-family: "Poppins", sans-serif;
    padding: 0px;
    margin: 0px;
}

.bubbleChat {
    position: relative;
    width: fit-content;
    max-width: 100%;
    padding: 8px 14px;
    margin: 5px 10px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
}

/* Segitiga kiri atas */
.bubbleChat::before {
    content: "";
    position: absolute;
    top: 8px;
    left: -9px;
    width: 0;
    height: 0;
    /* border-top: 10px solid transparent; */
    border-bottom: 10px solid transparent;
    border-right: 10px solid #ffffff;
}


.area-button-google{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
}

.btn-google {
    width: fit-content;
    height: auto;
    padding: 8px;
    text-align: center;
    background-color: white;
    /* margin-top: 10px; */
    border-radius: 50%;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
}

/* .btn-google:hover {
    background-color: #c44b00;
    transition: all 0.5s ease-in-out;
} */

.btn-login-google {
    margin: 0px;
    padding: 0px;
    text-decoration: none;
    font-size: 15px;
    color: white;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    height: auto;
}

.bubbleChat-admin-question {
    position: relative;
    width: fit-content;
    max-width: 100%;
    padding: 10px 14px;
    margin: 5px 10px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
}

.text-admin {
    margin: 0px;
    font-size: 14px;
}

.admin-question-box {
    position: relative;
    top: -30px;
    background-color: #f8c301;
    padding: 12px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: -20px; /* Agar menyatu dengan bagian bawah */
    font-family: "Poppins", sans-serif;
    z-index: 2;
}

.admin-question-text {
    font-size: 14px;
    color: #333333;
    margin: 0;
    padding: 0;
}

.text-question{
    font-weight: 500;
    color: black;
}

/* .admin-bubble {
    background-color: #e2e3ff;
    padding: 10px;
    border-radius: 8px;
    margin: 5px 0;
    color: #333;
    font-style: italic;
} */

.livechat-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    width: 100%;
    height: 100%;

}

/* .livechat-modal .cardOuter {
    background: white;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 20px;
} */

/* Tombol close */
.livechat-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 5px 10px;
    cursor: pointer;
}

.btn-open-livechats {
    width: auto;
    height: 30px;
    padding: 0px 28px;
    appearance: none;
    background-color: #85827a;
    border: none;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
    font-family: "Poppins", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
}

/* Hidden class */
.hidden {
    display: none;
}

@keyframes bounceInCenter {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.livechat-modal.show .cardOuter {
    animation: bounceInCenter 0.4s ease-out;
}

.livechat-modal {
    transition: all 0.3s ease;
}

@keyframes bounceOutCenter {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    20% {
        transform: scale(1.05);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

.livechat-modal.hide .cardOuter {
    animation: bounceOutCenter 0.4s ease-in forwards;
}
