.btn-rec {
    background: white;
    border: 1px solid #007bff;
    color: #007bff;
    border-radius: 20px;
    padding: 5px 15px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    
}

.btn-rec:hover {
    background: #007bff;
    color: white;
}

#btn-reset-nanda:hover {
    background-color: #ff0000;
    transform: scale(1.1);
}

#btn-reset-nanda i {
    font-size: 16px;
}

.wrapper {
    display: none !important; /* Tambahkan !important */
    position: fixed;
    right: 20px;
    bottom: 80px; /* Di atas tombol WhatsApp/Nanda Circle */
    width: 350px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0px 15px 25px rgba(0,0,0,0.2);
    z-index: 99999; /* Pastikan paling depan */
    overflow: hidden;
    flex-direction: column;
}

/* Tombol Nanda Circle */
.float {
   
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #56d6ea;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 99999;
}

/* Tombol Trash di atas Chat */
#btn-reset-nanda {
     display: none !important; /* Tambahkan !important */
    position: fixed;
  
    bottom: 150px; /* Sesuaikan agar pas di atas wrapper yang muncul */
    right: 30px;
    width: 35px;
    height: 35px;
    background-color: #eb4d4b;
    color: white;
    border-radius: 50%;
   
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100000;
}

/* Fix untuk Mobile agar tidak berantakan */
@media (max-width: 450px) {
    .wrapper {
        width: 90%;
        right: 5%;
        bottom: 90px;
    }
}
.wrapper .title{
    background: #007bff;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 60px;
    text-align: center;
    border-bottom: 1px solid #006fe6;
    border-radius: 5px 5px 0 0;
}
.wrapper .title span{
    float: right;
    margin-right: 5px;
}

.wrapper .title a{
    text-decoration: none;
    color: #fff;
}
.wrapper .form{
    padding: 20px 15px;
    min-height: 400px;
    max-height: 400px;
    overflow-y: auto;
}
.wrapper .form .inbox{
    width: 100%;
    display: flex;
    align-items: baseline;
}
.wrapper .form .user-inbox{
    justify-content: flex-end;
    margin: 13px 0;
}
.wrapper .form .inbox .icon{
    height: 40px;
    width: 40px;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    font-size: 18px;
    background: #007bff;

}
.circular--square { 
    border-top-left-radius: 50% 50%; 
    border-top-right-radius: 50% 50%; 
    border-bottom-right-radius: 50% 50%; 
    border-bottom-left-radius: 50% 50%; 
}

.wrapper .form .inbox .msg-header{
    max-width: 83%;
    margin-left: 10px;
}
/*.form .inbox .msg-header p{
    color: #fff;
    background: #007bff;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    text-align:justify;
  
}*/
.form .user-inbox .msg-header p{
    color: #333;
    background: #efefef;
}
.wrapper .typing-field{
    display: flex;
    height: 60px;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    background: #efefef;
    border-top: 1px solid #d9d9d9;
    border-radius: 0 0 5px 5px;
}
.wrapper .typing-field .input-data{
    height: 40px;
    width: 335px;
    position: relative;
}
.wrapper .typing-field .input-data input{
    height: 100%;
    width: 100%;
    outline: none;
    border: 1px solid transparent;
    padding: 0 80px 0 15px;
    border-radius: 3px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s ease;
}
.typing-field .input-data input:focus{
    border-color: rgba(0,123,255,0.8);
}
.input-data input::placeholder{
    color: #999999;
    transition: all 0.3s ease;
}
.input-data input:focus::placeholder{
    color: #bfbfbf;
}

#send-btn {
        background-color: #007bff !important;
        background-image: none !important; /* Menghapus gradient bawaan template */
        color: #fff !important;
        border: 1px solid #007bff !important;
    }
.wrapper .typing-field .input-data button{
    position: absolute;
    right: 5px;
    top: 50%;
    height: 30px;
    width: 65px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    opacity: 0;
    pointer-events: none;
    border-radius: 3px;
    background: #007bff !important;
    border: 1px solid #007bff;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}
.wrapper .typing-field .input-data input:valid ~ button{
    opacity: 1;
    pointer-events: auto;
}
.typing-field .input-data button:hover{
    background: #006fef;
}
.float{
    position:fixed;
    width:60px;
    height:60px;
    bottom:80px;
    right:12px;
    background-color:#0C9;
    color:#FFF;
    border-radius:50px;
    text-align:center;
    box-shadow: 2px 2px 3px #999;
}

.my-float{
    margin-top:22px;
}

.msg-header {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 10px;
    color: #333;
    line-height: 1.5;

  /*   color: #fff;
    background: #007bff;
    border-radius: 10px;
    padding: 8px 10px;*/
    font-size: 12px;
    /*text-align:justify;*/
}

/* Karena CommonMark menghasilkan tag <p> otomatis, pastikan marginnya pas */
.msg-header p {
    margin-bottom: 8px;
    font-size: 12px;
     /*text-align:justify;*/
}

/* Beri gaya pada List (Titik-titik) */
.msg-header ul {
    list-style-type: disc !important;
    padding-left: 25px !important;
    margin-bottom: 10px;
}

/* Beri gaya pada List (Angka) */
.msg-header ol {
    list-style-type: decimal !important;
    padding-left: 25px !important;
    margin-bottom: 10px;

}

.msg-header li {
    display: list-item !important; /* Memastikan peluru muncul */
    margin-bottom: 4px;
    font-size: 12px;
}

.msg-header strong {
    font-weight: bold;
}

 .typing-loader {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 0;
}

.typing-loader span {
    width: 8px;
    height: 8px;
    background-color: #999;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-loader span:nth-child(1) { animation-delay: -0.32s; }
.typing-loader span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}