/* 01-07-2026 */


         .ai-chat-btn {
    position: fixed;
    bottom: 7px;
    right: 20px;
    z-index: 9999;
    text-decoration: none;
}

.chat_icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 999px;

    background: #111118;
    color: #fff;

    font-size: 16px;
    font-weight: 600; 
    text-decoration: none !important;

    transition: all .3s ease;

    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

/* Gradient Border */
.chat_icon::before{
    content:"";
    position:absolute;
    inset:-4px;
    border-radius:inherit;
     background:linear-gradient(90deg,#35d6ff,#7c5cff,#ff4d9e,#ffcf63);
    z-index:-2;
}

/* Inner Dark Background */
.chat_icon::after{
    content:"";
    position:absolute;
    inset:0px;
    border-radius:inherit;
    background:#0d0d18;
    z-index:-1;
}

.chat_icon:hover{
     transform:translateY(-2px);
    box-shadow:0 8px 25px rgba(124,92,255,.4);
}


        .ai-popup {
            position: fixed;
            right: 20px;
            bottom: 90px;
            width: 400px;
            height: 500px;
            background: #fff;
            border-radius: 20px;
            box-shadow: 0 0 20px rgba(0, 0, 0, .15);
            display: none;
            z-index: 9999;
        }

        .ai-header {
            /* background-image: linear-gradient(90deg, rgb(200, 70, 118) 0%, rgb(150, 94, 184) 100%); */
            background: #0d0d18;
            color: #fff;
            padding: 10px;
            border-radius: 20px 20px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .gradient-text{
             background: linear-gradient(90deg, #ffcf63, #ff4d9e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
        }

        #icon_color{
             background: linear-gradient(90deg,  #ffcf63, #ff4d9e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
        }

         
        


        .ai-chat-body {
            height: 380px;
            overflow-y: auto;
            padding: 10px;
            background: #f5f5f5;
        }

        .ai-message {
            background: #EDE4FF;
            padding: 10px;
            border-radius: 12px;
            margin-bottom: 5px;
            max-width: 85%;
            font-size: 13px;
            line-height: 20px;
			color: #161439; 	
        }

        .user-message {
            background: #F8D9E8;
            padding: 10px;
            border-radius: 12px;
            margin-left: auto;
            margin-bottom: 5px;
            width: fit-content;
            font-size: 13px;
            line-height: 20px;
            color: #161439;
        }

       .chat-footer{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    background:#fff;
    border-top:1px solid #eee;
}

.chat-input-wrapper{
    flex:1;
    display:flex;
    align-items:center;
    border:1px solid #ee4995;
    border-radius:30px;
    padding:0 14px;
    background:#fff;
}

.chat-star{
    color:#ee4995;
    font-size:14px;
    width: 25px;
}

.chat-footer input{
    flex:1;
    border:none;
    outline:none;
    padding:10px;
    font-size:14px;
    background:transparent;
	color: #161439;
}

.chat-footer input::placeholder{
    font-size:13px;
    color:#999;
}

#sendMessage{
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    background:#ee4995;
    color:#fff;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.3s;
}

#sendMessage i{
    font-size:16px;
}

#sendMessage:hover{
    background:#d93a84;
}

        .duration-btn {
            margin: 0 0px 6px 0;
            background-color: transparent;
            color: #000;
            box-shadow: 0px 0;
            border: 1px solid #bf64af;
            border-radius: 50px;
            padding: 1px 7px 2px !important;
            font-size: 12px;
        }

        .floating_chat_btn {
    position: fixed;
    bottom: 30px;
    right: 1px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

 

/* responsive */
@media (min-width: 330px) {
        .ai-popup {
        position: fixed;
        right: 20px;
        bottom: 100px;
        width: 300px;
        height: 400px;
    }

           .ai-chat-body {
        height: 285px;
    
    }
	.chat-input-wrapper{
        width:20px;
    }
}


@media (min-width: 576px) {
      .ai-popup {
        position: fixed;
        right: 20px;
        bottom: 80px;
        width: 350px;
        height: 445px;
}
.ai-chat-body {
    height: 320px;
}
.ai-chat-btn {
    position: fixed;
    bottom: 7px;
    right: 20px;
    
}
.chat-input-wrapper{
        width:20px;
    }
}

/* Tablet */
@media (min-width: 768px) {
       .ai-popup {
        position: fixed;
        right: 30px;
        bottom: 90px;
        width: 380px;
        height: 430px;
    }
.ai-chat-body {
    height: 310px;
}

.ai-chat-btn {
    position: fixed;
    bottom: 10px;
}
 
}

/* Laptop */
@media (min-width: 992px) {
    .ai-popup {
    position: fixed;
    right: 20px;
    bottom: 75px;
    width: 380px;
    height: 460px;
}
.ai-chat-body {
    height: 340px;
}

.ai-chat-btn {
    position: fixed;
    bottom: 16px;
}

}

/* Desktop */
@media (min-width: 1200px) {

.ai-popup {
    position: fixed;
    right: 20px;
    bottom: 75px;
            width: 400px;
        height: 490px;
}
.ai-chat-body {
    height: 370px;
}
}

/* Large Desktop */
@media (min-width: 1400px) {

.ai-popup {
   position: fixed;
            right: 20px;
            bottom: 55px;
            width: 400px;
            height: 500px;
}
.ai-chat-body {
     height: 380px;
}
}


/* Class List Chat Icon */

.class_chat_icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 999px;
 
	background:#ffffff;
    color: #5751e1;

    font-size: 16px;
    font-weight: 600; 
    text-decoration: none !important;

    transition: all .3s ease;

    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

/* Gradient Border */
.class_chat_icon::before{
    content:"";
    position:absolute;
    inset:-4px;
    border-radius:inherit;
     background:linear-gradient(90deg,#35d6ff,#7c5cff,#ff4d9e,#ffcf63);
    z-index:-2;
}

/* Inner Dark Background */
.class_chat_icon::after{
    content:"";
    position:absolute;
    inset:0px;
    border-radius:inherit;
    background:#ffffff;
    z-index:-1;
}

.class_chat_icon:hover{
     transform:translateY(-2px);
    box-shadow:0 8px 25px rgba(124,92,255,.4);
}

.ai-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px;
}

.ai-typing span {
    width: 7px;
    height: 7px;
    background: #8b8b8b;
    border-radius: 50%;
    animation: aiTyping 1.3s infinite;
}

.ai-typing span:nth-child(2) {
    animation-delay: .2s;
}

.ai-typing span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes aiTyping {

    0%,80%,100%{
        transform:scale(.6);
        opacity:.4;
    }

    40%{
        transform:scale(1);
        opacity:1;
    }

}

.message-row{
    display:flex;
    align-items:flex-end; 
    gap:10px;
}

.ai-row{
    justify-content:flex-start;
}

.user-row{
    justify-content:flex-end;
}

.message-avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
    flex-shrink:0; 
    box-shadow:0 2px 8px rgba(0,0,0,.15);
	align-self: flex-start;
	margin-bottom: 5px;
}

.user-initial{
    width:40px;
    height:40px;
    border-radius:50%;
    background:#282568;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600; 
    flex-shrink:0;
	margin-bottom: 5px;
}

.ai-welcome-card{
        display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 5px;
    /* margin: 10px; */
    border: 1px solid #f2f2f2; 
}

.welcome-avatar{
    width:85px;
    height:85px;
    object-fit:contain;
    flex-shrink:0;
}

.welcome-content{
    flex:1;
}

.welcome-content h4{
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 700;
    color: #161439;
}

.title-gradient-text{
    background:linear-gradient(90deg,#7b61ff,#ff4fa3);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}  

.welcome-content p{
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #161453;
}

.welcome-content p span{
    color:#7b61ff;
    font-weight:600;
}

@media (max-width:576px){

    .ai-welcome-card{
        padding:5px;
        gap:10px;
    }

    .welcome-avatar{
        width:65px;
        height:65px;
    }

    .welcome-content h4{
        font-size:18px;
    }

    .welcome-content p{
        font-size:13px;
    }
}

.ai-suggestions{
    margin: 8px 0px;
}

.ai-suggestions h5{
    margin-bottom:8px;
    font-size:16px;
    font-weight:700;
    color:#161439;
}

.suggestion-chip{
    width:auto;
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px;
    margin-bottom:5px;
    border:none;
    border-radius:12px;
    background:#EDE4FF;
    cursor:pointer;
    text-align:left;
    transition:.25s;
    font-size:13px;
    color:#161439;
} 

.suggestion-chip span{
    font-weight:500;
}
.suggestion-chip:hover,
.suggestion-chip:hover span {
    color: #161439;
    font-weight: 700;
}

@media(max-width:576px){

    .suggestion-chip{
        font-size:13px;
        padding:8px;
    }

}
