* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(#EEEEFF,#C8C7FF);
}
img {
    height: 50px;
    width: 50px;
}
.btn {
    border: none;
    padding: 5px;
    background: none;
}
.btn img {
    height: 30px;
    width: 30px;
    border-radius: 50%;
}

.chat-popup {
    width: 400px;
    overflow: hidden;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 0 128px 0 rgba(0,0,0,0.1), 0 32px 64px -48px rgba(0,0,0,0.5);
    position: relative;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #5350C4;
}
.header .logo {
    display: flex;
}

.header .logo img {
    margin-right: 12px;
    background: white;
    padding: 10px;
    border-radius: 50%;
}
.header .logo .logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    color:#fff;
    font-weight: 600;
}

.close-btn img {
    height: 35px;
    width: 35px;
}
.chat-body {
    padding:15px;
    height: 600px;
    overflow-y: auto;
    word-wrap: break-word;
}
.bot-message {
    display: flex;
    margin-bottom: 12px;
}
.bot-message img {
    height: 35px;
    width: 35px;
    margin-right: 12px;
    align-self: flex-end;
}
.message {
    font-size: 0.95rem;
    padding: 12px 16px;
    max-width: 75%;
}
.bot-text {
    background: #F2F2FF;
    border-radius: 13px 13px 13px 3px;
}

.user-message {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}
.user-text {
    color: #fff;
    background: #5350C4;
    border-radius: 13px 13px 3px 13px;
}

.chat-footer {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 10px;
    border-radius: 25px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.input-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    background: #f1f1f1;
    border-radius: 20px;
    padding: 5px;
}

.chat-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 14px;
    background: transparent;
    border-radius: 20px;
}

button {
    background-color: none;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

button:hover {
    background-color: #128c7e;
    outline: none;
}

.file-btn {
    margin-left: 5px;
}


.thinking-animation {
    display: flex;
    gap: 6px;
    padding: 7px 16px;
}

.dot {
    margin-left: 6px;
    animation: dot-pulse 1.5s infinite ease-in-out;
    font-size: 1.5rem;
}

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

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

@keyframes dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}
