/* General Styles */
body {
    font-family: "Cera Pro", sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Cera Pro Black */
@font-face {
    font-family: "Cera Pro";
    src: url("/font/Cera-Pro/Fontspring-DEMO-cerapro-black.otf")
        format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Cera Pro Black Italic */
@font-face {
    font-family: "Cera Pro";
    src: url("/font/Cera-Pro/Fontspring-DEMO-cerapro-blackitalic.otf")
        format("opentype");
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* Cera Pro Bold */
@font-face {
    font-family: "Cera Pro";
    src: url("/font/Cera-Pro//Fontspring-DEMO-cerapro-bold.otf")
        format("opentype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Cera Pro Bold Italic */
@font-face {
    font-family: "Cera Pro";
    src: url("/font/Cera-Pro//Fontspring-DEMO-cerapro-bolditalic.otf")
        format("opentype");
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

/* Cera Pro Light */
@font-face {
    font-family: "Cera Pro";
    src: url("/font/Cera-Pro//Fontspring-DEMO-cerapro-light.otf")
        format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Cera Pro Light Italic */
@font-face {
    font-family: "Cera Pro";
    src: url("/font/Cera-Pro//Fontspring-DEMO-cerapro-lightitalic.otf")
        format("opentype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Cera Pro Medium */
@font-face {
    font-family: "Cera Pro";
    src: url("/font/Cera-Pro//Fontspring-DEMO-cerapro-medium.otf")
        format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Cera Pro Medium Italic */
@font-face {
    font-family: "Cera Pro";
    src: url("/font/Cera-Pro//Fontspring-DEMO-cerapro-mediumitalic.otf")
        format("opentype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Cera Pro Regular */
@font-face {
    font-family: "Cera Pro";
    src: url("/font/Cera-Pro//Fontspring-DEMO-cerapro-regular.otf")
        format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Cera Pro Regular Italic */
@font-face {
    font-family: "Cera Pro";
    src: url("/font/Cera-Pro//Fontspring-DEMO-cerapro-regularitalic.otf")
        format("opentype");
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* Cera Pro Thin */
@font-face {
    font-family: "Cera Pro";
    src: url("/font/Cera-Pro//Fontspring-DEMO-cerapro-thin.otf")
        format("opentype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* Cera Pro Thin Italic */
@font-face {
    font-family: "Cera Pro";
    src: url("/font/Cera-Pro//Fontspring-DEMO-cerapro-thinitalic.otf")
        format("opentype");
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

#chat-widget {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Card Styles */
.card {
    width: 100%;
    max-width: 600px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    max-height: 100%;
    height: 100vh;
    overflow: hidden;
    height: 100vh;
    position: relative;
    cursor: grab;
    user-select: none;
    z-index: 100;
}

.card.draggable {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    margin: 0; /* Remove default margins that might cause issues */
}

.card.dragging {
    cursor: grabbing;
}
/* card styles */

/* Chat Header Styles */
.chat-header-new {
    display: flex;
    padding: 10px 15px;
    background-image: linear-gradient(to right, #ff5900, #ff8c00);
    background-color: transparent;
    color: #fff;
    /* border-radius: 10px 10px 0 0; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1px;
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
    justify-content: space-between;
    font-family: "Cera Pro", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.bot-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 0px solid white;
    box-sizing: border-box;
}

.header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-subtitle {
    margin-bottom: 0;
    font-size: 0.625rem; /* 10px */
    color: #fff;
    line-height: 0.7;
    font-family: "Cera Pro", sans-serif;
    font-weight: 50;
    font-style: normal;
}

.card-header .card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.card-header .button-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.close-button {
    font-size: 30px;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.card-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.avatar-border {
    border-radius: 5px;
}

.avatar-border-user {
    border: 0.5px solid rgb(255, 255, 255);
    border-radius: 5px;
}
/* chat header */

/* Chat Content Area */
.chat-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

/* Message Wrapper */
.message-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    position: relative;
}

.message-wrapper.user {
    flex-direction: row-reverse;
}

.message-wrapper.user .avatar {
    margin-left: 10px;
    margin-right: 0;
}

.message-wrapper.bot .avatar {
    margin-right: 10px;
    margin-left: 0;
}

.message-wrapper.bot {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.message-wrapper.bot .message {
    display: flex;
    flex-direction: column;
}

.message-wrapper.bot-bubbles {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.message-wrapper.bot-bubbles .recommendation-bubbles {
    margin-top: 0px;
    margin-left: 45px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    justify-content: start;
    overflow-x: hidden;
    white-space: normal;
    scrollbar-width: none;
    -ms-overflow-style: none;
    color: #76a2c2;
    padding: 0px 10px;
}

.sub-recommendation-bubbles {
    margin-top: 0px;
    margin-left: 45px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
    justify-content: start;
    overflow-x: hidden;
    white-space: normal;
    scrollbar-width: none;
    -ms-overflow-style: none;
    color: #76a2c2;
    padding: 0px 10px;
}

/* Message Styles */
.message {
    padding: 10px;
    border-radius: 8px;
    max-width: 70%;
    position: relative;
    display: inline-block;
    word-break: break-word;
    overflow-wrap: break-word;
}

.message.user {
    background-color: #e0f7fa;
    align-self: flex-end;
}

.message.bot {
    background-color: #f0f0f0;
    align-self: flex-start;
}
/* message Style */

/* Avatar Styles */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Message Info (Name and Time) */
.message-info {
    display: flex;
    align-items: center;
}

.bot-name {
    font-size: 0.8rem;
    font-weight: bold;
    color: #6c757d;
    margin-bottom: 5px;
    display: inline-block;
    margin-right: 5px;
}

.user-name {
    font-size: 0.8rem;
    font-weight: bold;
    color: #6c757d;
    margin-bottom: 5px;
    display: inline-block;
    margin-left: auto;
    margin-right: 5px;
}

.message-wrapper.user .message-time {
    font-size: 0.7rem;
    color: #868e96;
    margin-right: 0;
    display: block;
    white-space: nowrap;
    margin-right: auto;
}

.message-wrapper.bot .message-time {
    font-size: 0.7rem;
    color: #868e96;
    margin-left: auto;
    display: block;
    white-space: nowrap;
}

/* Message Content Alignment */
.message-wrapper.user .message-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-end;
    text-align: justify;
}

.message-wrapper.bot .message-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}
/* message wrapper */

/* Code Block Styles */
pre {
    background-color: #e0e0e0;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    white-space: pre-wrap;
}

code {
    font-family: monospace;
    background-color: #ddd;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Input Area Styles */
.publisher {
    background-color: #fff;
    padding: 5px;
    display: flex;
    align-items: center;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 10px 10px;
    flex-shrink: 0;
    position: relative;
}

.publisher > div {
    display: flex;
    align-items: center;
    flex: 1;
    /* Takes remaining space */
}

.publisher-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    padding: 8px;
    margin-right: 5px;
    border-radius: 30px;
    background-color: #ffffff;
    outline: none;
    resize: none;
    overflow: hidden;
    min-height: 30px;
    max-height: 100px;
    margin: 0;
    padding-right: 30px;
    align-items: center;
    font-size: 13px;
}

#combined-input::placeholder {
    color: #999;
}

.publisher-btn {
    display: inline-block;
    padding: 5px 10px;
    cursor: pointer;
    color: #6c757d;
    background: none;
    border: none;
}

.publisher-btn i {
    font-size: 18px;
    color: #bcbcbe;
}

.publisher-btn.text-info {
    color: #17a2b8;
}
/* input area  */

/* File Upload Styles */
/* .file-group {
    position: relative;
    overflow: hidden;
}

.file-browser {
    cursor: pointer;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

.file-browser i {
    font-size: 18px;
}

.file-group input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    font-size: 20px;
    cursor: pointer;
    height: 100%;
}

#imagePreview {
    max-width: 100px;
    max-height: 100px;
    display: none;
    margin-left: 10px;
}

.user-image {
    max-width: 150px;
    border-radius: 8px;
    margin-top: 5px;
    display: block;
} */
/* file upload  */

/* Typing indicator styles */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 5px;
    margin-left: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #6c757d;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}
/* typing indicator */

/* Welcome Overlay Styles */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.card.draggable .welcome-overlay {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.welcome-content {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.welcome-content img {
    max-width: 100%;
    max-height: 50vh;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efek hover untuk gambar */
.welcome-content img:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 30px rgba(0, 0, 0, 0.3);
}

.welcome-content h1 {
    font-size: 1.5rem;
    color: #333;
    font-family: "Cera Pro", sans-serif;
    font-weight: bold;
}

#welcomeOverlay #startChatButton {
    background-color: #fff;
    color: black;
    font-size: 0.8rem;
    font-weight: normal;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: "Cera Pro", sans-serif;
}

.welcome-content p {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.welcome-content button {
    padding: 14px 24px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.welcome-content button:hover {
    background-color: #f08c00;
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Overlay Styles */

/* Chat Input Area Styles */
.chat-input-area {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

/* Recommendation Bubbles Styles */
.recommendation-bubble {
    background-color: #f0f0f0;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.875rem; /* 14px */
    color: #333;
    border: 1px solid #ccc;
    display: inline-block;
    white-space: normal;
    width: auto;
    color: #76a2c2;
    text-align: center;
    word-break: break-word;
}

.recommendation-bubbles::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari, and Edge */
}

.recommendation-bubble:hover {
    background-color: #e0e0e0;
}

/* Responsive Styles */

/* Default styles for larger screens (laptop/desktop) */
.card.draggable {
    width: 100%;
    height: 100%;
}

.bot-icons {
    max-width: 100%; /* Atur lebar maksimal agar tidak melebihi tombol */
    max-height: 100%; /* Atur tinggi maksimal agar tidak melebihi tombol */
    width: auto; /* Biarkan lebar menyesuaikan proporsi gambar */
    height: auto;
}

/* Responsive Styles */

@media (max-width: 768px) {
    .card {
        max-width: 95%;
        margin: 0 auto;
    }

    .message {
        max-width: 90%;
    }
}

/* Styles for mobile screens (max-width: 767px) */
@media (max-width: 767px) {
    .card.draggable {
        width: 100%;
        max-width: none;
        height: 100%;
        border-radius: 0;
    }

    .container {
        padding: 0px;
    }

    #toggle-chat-button {
        display: none;
        position: fixed;
        bottom: 20px;
        right: 20px;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        background: #ff5900;
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center; /* Pusatkan secara vertikal */
        justify-content: center;
    }

    #toggle-chat-button i {
        font-size: 18px;
    }

    .recommendation-bubble {
        font-size: 0.75rem; /* 12px */
    }

    .publisher-input {
        padding-right: 10px; /* Adjust padding for mobile */
    }

    .dot {
        width: 6px; /* Adjust size for smaller screens */
        height: 6px;
    }

    .card-title {
        font-size: 1rem; /* Smaller title for mobile */
    }

    .close-button {
        font-size: 1.5rem; /* Smaller close button for mobile */
    }

    .avatar {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 1200px) {
    .card.draggable {
        max-width: 100%;
        height: 100%;
    }
    .card-title {
        font-size: 1rem; /* Smaller title for medium screens */
    }

    .close-button {
        font-size: 1.25rem; /* Smaller close button for medium screens */
        color: #fff;
    }

    .message {
        padding: 8px;
    }

    .bot-name,
    .user-name {
        font-size: 0.7rem;
    }

    .message-wrapper.user .message-time,
    .message-wrapper.bot .message-time {
        font-size: 0.6rem;
    }

    .publisher-input {
        padding: 6px;
    }

    .publisher-btn i {
        font-size: 16px;
    }

    .file-browser i {
        font-size: 16px;
    }

    .recommendation-bubble {
        font-size: 0.75rem;
    }

    .dot {
        width: 7px; /* Slightly smaller dots for medium screens */
        height: 7px;
    }

    .avatar {
        width: 30px;
        height: 30px;
    }
}

/* Styles for very large screens (min-width: 1200px) */
@media (min-width: 1200px) {
    html {
        font-size: 0.9rem;
    }

    .card.draggable {
        max-width: 100%;
        height: 100%;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .close-button {
        font-size: 1.25rem;
        color: #fff;
    }

    .message {
        padding: 8px;
    }

    .bot-name,
    .user-name {
        font-size: 0.7rem;
    }

    .message-wrapper.user .message-time,
    .message-wrapper.bot .message-time {
        font-size: 0.6rem;
    }

    .publisher-input {
        padding: 6px;
    }

    .publisher-btn i {
        font-size: 16px;
    }

    .file-browser i {
        font-size: 16px;
    }

    .recommendation-bubble {
        font-size: 0.75rem;
    }
}

/* Responsive Styles */
@media (max-width: 2100px) {
    .publisher-input {
        padding-right: 40px;
    }
}

/* refresh  */
.refresh-button {
    font-size: 20px;
    padding: 0;
    margin: 0;
    color: #6c757d;
    transition: color 0.3s ease;
}

.refresh-button:hover {
    color: #17a2b8;
}
/* refresh */

/* Questionnaire Overlay Styles */
.questionnaire-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    transform: translateY(0);
}

.questionnaire-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}
.questionnaire-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 400px;
    font-family: "Cera Pro", sans-serif;
    border-radius: 10%;
    overflow: hidden;
}

.questionnaire-content .header-input-name-overlay {
    background-color: #ffe4d4;
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: "Cera Pro", sans-serif;
}

.questionnaire-content .header-input-name-overlay h2 {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: #000000;
    font-weight: 600;
    font-family: "Cera Pro", sans-serif;
    text-align: left;
}

.questionnaire-content .input-name-content {
    display: none;
}
.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    justify-content: center;
    padding: 20px;
    width: 100%;
    background-color: white;
    box-sizing: border-box;
    text-align: left;
}
.questionnaire-button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    font-size: 1rem;
    width: 100%;
    font-family: "Cera Pro", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}
.questionnaire-button.iya-button {
    color: #000000;
    background-color: #ffffff;
    border-radius: 0px;
    font-family: "Cera Pro" sans-serif;
    margin-bottom: 0.5rem;
    position: relative;
}
.questionnaire-button.iya-button:hover {
    background-color: #ff5900;
    color: #fff;
    font-weight: bold;
    border-radius: 2.5rem;
}
.questionnaire-button.iya-button::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 15%;
    height: 3px;
    background-color: #ff5900;
    transform: translateX(-50%);
}

.questionnaire-button.tidak-button {
    color: #000000;
    background-color: #ffffff;
    border-radius: 0;
    font-family: "Cera Pro" sans-serif;
    position: relative;
    transition: all 0.3s ease;
}
.questionnaire-button.tidak-button:hover {
    background-color: #ff5900;
    color: #fff;
    font-weight: bold;
    border-radius: 2.5rem;
}
.questionnaire-button.tidak-button::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 15%;
    height: 3px;
    background-color: #ff5900;
    transform: translateX(-50%);
}

/*  Questionnaire Overlay Styles */

/* captcha */
.recaptcha-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.recaptcha-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* captcha */

/* confirm close overlay */
.confirm-close-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    transform: translateY(0);
}

.confirm-close-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 400px;
    font-family: "Cera Pro", sans-serif;
    border-radius: 10%;
    overflow: hidden;
}

.confirm-close-content .header-confirm-close-overlay {
    background-color: #ffe4d4;
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: "Cera Pro", sans-serif;
}

.confirm-close-content .header-confirm-close-overlay h5 {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: #000000;
    font-weight: 600;
    font-family: "Cera Pro", sans-serif;
    text-align: left;
}

/* .confirm-close-content p {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    margin: 0;
    font-size: 1rem;
    color: #333;
    background-color: white;
    font-family: "Cera Pro", sans-serif;
    font-style: normal;
    /* box-sizing: border-box; */

.confirm-close-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    justify-content: center;
    padding: 20px;
    width: 100%;
    background-color: white;
    box-sizing: border-box;
}

.confirm-close-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    font-size: 1rem;
    width: 100%;
    font-family: "Cera Pro", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.confirm-close-buttons button.btn-secondary {
    display: inline-block;
    color: #000;
    background-color: #fff;
    border-radius: 0;
    position: relative;
    font-weight: normal;
    transition: all 0.3s ease;
    height: 45px;
    font-family: "Cera Pro", sans-serif;
    font-size: 1rem;
}

.confirm-close-buttons button.btn-secondary::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 15%;
    height: 3px;
    background-color: #ff5900;
    transform: translateX(-50%);
}

.confirm-close-buttons button.btn-secondary:hover {
    background-color: #ff5900;
    color: #fff;
    font-weight: bold;
    border-radius: 2.5rem;
}

.confirm-close-buttons button.btn-danger {
    display: inline-block;
    color: #000;
    background-color: #fff;
    border-radius: 0;
    position: relative;
    font-weight: normal;
    transition: all 0.3s ease;
    height: 45px;
    font-family: "Cera Pro", sans-serif;
    font-size: 1rem;
}

.confirm-close-buttons button.btn-danger::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 15%;
    height: 3px;
    background-color: #ff5900;
    transform: translateX(-50%);
}

.confirm-close-buttons button.btn-danger:hover {
    background-color: #ff5900;
    color: #fff;
    font-weight: bold;
    border-radius: 2.5rem;
}

/* end confirm close overlay */

.date-time-wrapper {
    color: #6c757d;
    font-size: 0.75rem; /* 12px */
    display: inline-block;
    white-space: nowrap;
    margin-right: 5px;
}

/* Input Name Overlay Styles */
.input-name-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.input-name-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.input-name-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 400px;
    font-family: "Cera Pro", sans-serif;
    border-radius: 10%;
    overflow: hidden;
}

.header-input-name-overlay {
    background-color: #ffe4d4;
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: "Cera Pro", sans-serif;
}

.header-input-name-overlay h2 {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: #000000;
    font-weight: 600;
    font-family: "Cera Pro", sans-serif;
    text-align: left;
}

.input-name-content {
    background-color: white;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: "Cera Pro", sans-serif;
}

.input-name-content h2 + h2 {
    margin-top: 15px; /* Spasi atas sebelum heading nomor telepon */
    margin-bottom: 10px; /* Spasi bawah sebelum input nomor telepon (sesuaikan jika perlu) */
    /* Pastikan properti lain dari h2 sebelumnya juga berlaku atau salin di sini jika perlu */
    font-size: 1.3rem;
    color: #000000;
    font-weight: 600;
    font-family: "Cera Pro", sans-serif;
    text-align: left;
}

.input-name-content input[type="text"],
.input-name-content input[type="tel"] {
    /* Targetkan kedua tipe input */
    margin-bottom: 5px; /* Kurangi margin bawah agar error lebih dekat */
    padding-bottom: 8px; /* Padding untuk garis bawah */
    border: none; /* Hapus border default */
    border-bottom: 1px solid #ddd; /* Tambahkan garis bawah */
    width: 100%;
    max-width: 400px;
    font-family:  sans-serif;
    box-sizing: border-box;
    outline: none; /* Hapus outline saat fokus */
    line-height: 1.1;
    font-size: 1rem;
    background-color: transparent; /* Pastikan background transparan */
}

.input-name-content input[type="text"]::placeholder,
.input-name-content input[type="tel"]::placeholder {
    color: #999; /* Warna placeholder */
}
.input-name-content .error-message {
    display: none; /* Secara default disembunyikan */
    color: red; /* Warna teks error */
    font-size: 0.8rem; /* Ukuran font error */
    margin-top: 5px; /* Spasi antara garis input dan pesan error */
    margin-bottom: 15px; /* Spasi antara pesan error dan tombol di bawahnya */
    text-align: left; /* Pastikan teks error rata kiri */
}

.input-name-content input#userPhoneInput.invalid {
    border-bottom-color: red; /* Ubah warna garis bawah menjadi merah */
}

.input-name-content button {
    padding: 10px 20px;
    border: none;
    border-radius: 4.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #ff5900;
    color: white;
    white-space: nowrap;
    font-size: 0.875rem;
    font-family: "Cera Pro", sans-serif;
}

.input-name-content button:hover {
    background-color: #ff5900;
}

/* Error Message Styles */
.error-message {
    display: block;
    color: red;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Style buat button input name*/
.input-name-content .btn-save {
    display: inline-block;
    color: #000;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 2px;
    border-bottom: none;
    position: relative;
    font-weight: normal;
    transition: all 0.3s ease;
    height: 45px;
    font-family: "Cera Pro", sans-serif;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.4rem;
}

.input-name-content .btn-save::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 15%;
    height: 3px;
    background-color: #ff5900;
    transform: translateX(-50%);
}

.input-name-content .btn-save:hover {
    background-color: #ff5900;
    font-weight: bold;
    border-radius: 4rem;
}

.input-name-content .btn-close {
    display: inline-block;
    color: #000;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 2px;
    border-bottom: none;
    position: relative;
    font-weight: normal;
    transition: all 0.3s ease;
    height: 45px;
    font-family: "Cera Pro", sans-serif;
    font-size: 1.2rem;
}

.input-name-content .btn-close::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 15%;
    height: 3px;
    background-color: #ff5900;
    transform: translateX(-50%);
}

.input-name-content .btn-close:hover {
    background-color: #ff5900;
    font-weight: bold;
    border-radius: 4rem;
}

.input-name-content .btn-close:focus,
.input-name-content .btn-close:active {
    outline: none !important;
    box-shadow: none !important;
    background-color: #ff5900 !important;
    color: white !important;
    border-radius: 1.5rem !important;
    border: 1px solid #ff5900 !important;
}

.input-name-content .btn-save:focus,
.input-name-content .btn-save:active {
    outline: none !important;
    box-shadow: none !important;
    background-color: #ff5900 !important;
    color: white !important;
    border-radius: 1.5rem !important;
    border: 1px solid #ff5900 !important;
}

.input-name-container .form-control {
    font-family: "Cera Pro", sans-serif;
}

/*  Input Name Overlay Styles */

/* afk  */
.inactivity-options-container {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
    margin-left: 45px;
}

.bot-inactivity .message {
    background-color: #f0f0f0;
    border-radius: 10px;
    margin: 0px 0px 0px 45px;
    padding: 10px;
    display: inline-block;
    max-width: 70%;
}

.bot-inactivity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* afk */

/* Gaya untuk container utama */
#disclaimer-container {
    display: block;
    margin-bottom: 10px;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
}

/* Gaya untuk container konten (teks dan tombol) */
#disclaimer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Gaya untuk teks disclaimer */
#disclaimer-content p {
    margin: 0;
    flex-grow: 1;
}

/* Gaya untuk tombol close */
#close-disclaimer-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

/* Gaya hover untuk tombol close (opsional) */
#close-disclaimer-button:hover {
    color: red;
}

/* Customize scrollbar for WebKit browsers */
.chat-content::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.chat-content::-webkit-scrollbar-track {
    background: #f1f1f1; /* Color of the track */
}

.chat-content::-webkit-scrollbar-thumb {
    background: #d0d0d0; /* Color of the thumb */
    border-radius: 4px; /* Rounded corners of the thumb */
}

.chat-content::-webkit-scrollbar-thumb:hover {
    background: #b5b5b5; /* Color of the thumb when hovered */
}
