
.video-widget{
    position:fixed;
    bottom:50px;
    right:20px;
    text-align: center;
    border-radius:50%;
    display: block;
    cursor:pointer;
    transition: 0.5s all;
    z-index:9999;
    transition:0.3s;
}

.video-widget img {
     width:auto;
    height:150px;

}

.video-widget:hover{
    transform:scale(1.05);
}

.video-widget .msg {
  opacity: 0;
  visibility: hidden;
  width: 250px;
  border-radius: 4px;
  bottom: 10px;
  padding: 10px;
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  transition: 0.5s all;
  font-size: 17px;
  right: 120px;
  position: fixed;
}

.video-widget:hover .msg {
  opacity: 1;
  visibility: visible;
}

.video-widget video{
    width:100%;
    height:100%;
    object-fit:cover;
}

.chat-box{
    position:fixed;
    bottom:50px;
    right:20px;
    width:320px;
    background:white;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,0.3);
    display:none;
    flex-direction:column;
    overflow:hidden;
    z-index:9999999;
}

.bot-msg img {
  width: 100%;
  height: 100%;
}


.chat-messages{
    flex:1;
    padding:5px;
    overflow-y:auto;
    font-size:14px;
    border: 1px solid #ddd;
    /* padding: 10px 20px; */
    margin: 20px 10px;
    border-radius: 10px;
    box-shadow: 2px 2px 2px #ddd;
}

.chat-box {
    width: 320px;
    position: fixed;
    right: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    overflow: hidden;
    transition: all .3s ease;
}

.chat-header {
    background: #23a8a5;
    color: #fff;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-left: 8px;
}

.chat-body {
    transition: max-height .3s ease, opacity .3s ease;
    max-height: 500px;
    opacity: 1;
}

.chat-input{
    display:flex;
    border-top:1px solid #eee;
}

.chat-input input{
    flex:1;
    border:none;
    padding:10px;
    outline:none;
}

.chat-input button{
    border:none;
    background:#23a8a5;
    color:white;
    padding:10px 15px;
    cursor:pointer;
    font-weight: bold;
}

.close-btn{
    cursor:pointer;
}

  .chat-welcome {
    display: flex;
    gap: 14px;
    padding: 18px;
    margin-bottom: 0px;
    background: linear-gradient(135deg, #fff7f7, #ffffff);

}

.chat-welcome-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    font-size: 25px;
}

.chat-welcome-content h5 {
    margin: 2px 0 6px;
    font-size: 17px;
    font-weight: 700;
}

.chat-welcome-content p {
    margin: 0 0 10px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.chat-beta-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255,255,255,.8);
    border-radius: 12px;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

.chat-beta-info i {
    font-size: 15px;
    margin-top: 1px;
}
.chat-messages:empty {
    display: none;
}

.chat-messages:not(:empty) {
    display: block;
}
.chat-welcome {
    transition: opacity .35s ease, transform .35s ease, max-height .4s ease, margin .4s ease, padding .4s ease;
    max-height: 300px;
    overflow: hidden;
}

.chat-welcome.hide {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    pointer-events: none;
}
.chat-question {
    font-size: 16px;
    text-align: center;
    background-color: #23a8a5;
    color: #fff;
    margin-bottom: 0;
    padding: 5px 0;
}



.chat-messages {
    height: 300px;
    overflow-y: auto;
}

.user-msg {
    background: #007bff;
    color: white;
    padding: 8px;
    margin: 5px;
    border-radius: 10px;
    width: fit-content;
}

.bot-msg {
    background: #f1f1f1;
    padding: 8px;
    margin: 5px;
    border-radius: 10px;
}


.chat-box.minimized .chat-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.bot-msg p {
        margin: 0;
    }

.chat-link {
    display: block;
    background: #0dcaf0;
    padding: 6px 10px;
    margin-top: 5px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    width: 90%;
    border:1px solid #0dcaf0;
    margin: 0 auto 5px;
    color: #fff;
    transition: 0.2s;
}

.chat-controls .close-btn {
    position: relative;
    top: auto;
}


.chat-link:hover {
    background: #fff;
    color: #000;
    border:1px solid #0dcaf0;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 5px 0;
    justify-content: center;
}

.quick-buttons button {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    padding: 0px 5px;
    font-size: 13px;
    cursor: pointer;
}

.quick-buttons button:hover {
    background: #f1f5ff;
    border-color: #0d6efd;
}
.thinking-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #777;
    font-size: 14px;
}

.thinking-brain {
    width: 22px;
    height: 22px;
    border: 3px solid #ddd;
    border-top-color: #e53935;
    border-radius: 50%;
    animation: kirazSpin 0.8s linear infinite;
}

.thinking-text {
    animation: thinkingFade 1.4s ease-in-out infinite;
}

@keyframes kirazSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes thinkingFade {
    0%, 100% {
        opacity: .45;
    }
    50% {
        opacity: 1;
    }
}