body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #f0f0f0;
}

#app {
    max-width: 100%;
    width: 450px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Open Sans', sans-serif;
}
#app>div>h2 {
    padding: 20px 20px;
    text-align: center;
    margin-bottom: 0;
}
#app>div>form {
    padding: 0 20px 20px;
}
#app>div>form center button {
    background: #dd1b5c;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    font-size: 16px;
    border: none;
    padding: 9px 20px;
    border-radius: 5px;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
}

.header_box {
    padding: 15px;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    z-index: 2;
    position: relative;
    border-radius: 8px 8px 0 0;
    background: #fff;
    align-items: center;
}

.header_box_l img {
    height: 35px;
    vertical-align: middle;
    border-right: 1px solid #dfdfdf;
    padding-right: 15px;
    margin-right: 15px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.header_box_l p {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
}
.header_box_l p a {
    color: #000;
}

.header_box_r > img {
    height: 14px;
    margin-left: 15px;
   display: none; 

}

.header_box_r > img.ic_bottom {
    height: 8px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.input-group button {
    background: none;
    color: white;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.input-group button:disabled {
    cursor: not-allowed;
}

.input-group button:disabled img,
.input-group button img {
    height: 25px;
}


.chat-window {
    height: 60vh;
    min-height: 352px;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 15px;
    background: #DBDDDE;
}

.message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
}

.user-message {
    background-color: #DBDDDE;
    text-align: left;
    justify-content: flex-end;
}

.user-message .message-icon {
    display: none;
}

.user-message > div.note,
.bot-message > div.note {
    border-radius: 16px;
    padding: 15px;
    width: calc(100% - 50px);
    max-width: 80%;
    box-sizing: border-box;
}

.user-message > div.note {
    background: #545454;
    border-radius: 16px 16px 3px 16px;
    color: #fff;
}

.bot-message > div.note {
    background: #fff;
    border-radius: 3px 16px 16px 16px;
    position: relative;
    padding-bottom: 23px;
}

.input-group {
    display: flex;
    padding: 15px;
    position: relative;
    background: #fff;
}

.input-group textarea {
    flex-grow: 1;
    resize: none;
    min-height: 60px;
    max-height: 150px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 22px;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
    padding-right: 50px;
    word-break: break-word;
}
.typing-indicator {
    display: inline-block;
    width: 30px;
    height: 15px;
}
.typing-indicator span {
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: #3498db;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes typing {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}
.timestamp {
    font-size: 0.8em;
    color: #888;
    margin-top: 2px;
}
.message-content {
    white-space: normal;
    word-break: break-word;
    margin-bottom: 10px;
    font-size: 15px;
}
.user-message > div.note .timestamp {
    color: #cdcdcd;
    text-align: right;
}

.bot-message .message-content {
    font-family: 'Open Sans', sans-serif;
    line-height: 20px;
    font-size: 15px;
    margin-bottom: 10px;
}

.bot-message .message-content a {
    color: #0000FF !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.message-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    flex-shrink: 0;
}

.message-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.footer-warning {
    font-size: 10px;
    color: #58595B;
    text-align: left;
    font-style: italic;
    padding: 15px;
    padding-top: 0;
    background: #fff;
}

.vote-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
    position: absolute;
    right: 15px;
    bottom: 5px;
}

.vote-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    margin-left: 5px;
    transition: transform 0.2s, opacity 0.2s;
}

.vote-button img {
    width: 25px;
}

.protected-recaptcha {
    color: #b3b2b2;
    text-align: left;
    background: #efefef;
    padding: 10px 15px;
    font-size: 9px;
}

.grecaptcha-badge { 
    visibility: hidden; 
}

@media (max-width: 768px) {
    #app {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

 /*   .header_box_l p {
        display: none;
    }

    .header_box_l img {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    } */
}

@media (max-width: 480px) {
    .header_box {
        padding: 10px;
    }

    .header_box_l img {
        height: 30px;
    }

    .input-group {
        padding: 10px;
    }

    .input-group textarea {
        min-height: 50px;
	padding-right: 50px;
        word-break: break-word;
    }

    .vote-button img {
        width: 20px;
    }
}


.language-toggle {
    width: 40px;
    height: 30px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    visibility: hidden;
    pointer-events: none; 
}

.language-toggle:hover {
    transform: scale(1.1);
}

.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

