/* Modern medical-themed CSS (separate file to avoid existing file conflicts)
   Preserves layout/positions; adds animated gradient and subtle UI animations */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

:root{
    --med-blue-1: #eaf6fb;
    --med-blue-2: #f3fbff;
    --med-teal: #007b9e;
    --accent-dark: #063647;
    --muted-shadow: rgba(3,55,73,0.06);
    --muted-shadow-strong: rgba(0,123,158,0.18);
    --anim-fast: 0.18s;
    --anim-medium: 0.6s;
}

body{
    width:100% ;
    height: 100vh ;
    background: var(--med-blue-2);
}

.chat-container{
    width: 100%;
    height: 80%;
    background: linear-gradient(120deg, var(--med-blue-2) 0%, #e6f9ff 25%, #f0fbff 50%, var(--med-blue-1) 75%);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 20px;
    overflow: auto;
}

.user-chat-box{
    width: 60%;
    position: relative;
    left:40% ;
}
.ai-chat-box{
    width: 60%;
    position: relative ;
}

.user-chat-area{
    width: 90%;
    padding: 20px;
    background-color: var(--med-teal);
    color: #ffffff;
    border-radius: 40px 0px 40px 40px;
    box-shadow: 2px 2px 10px var(--muted-shadow-strong);
    will-change: transform, opacity;
    animation: fadeSlideInRight var(--anim-medium) cubic-bezier(.2,.9,.2,1) both;
}

.ai-chat-area{
    width: 90%;
    padding: 20px;
    background-color: var(--med-blue-1);
    position: relative;
    left: 10%;
    color: var(--accent-dark);
    border-radius: 0px 40px 40px 40px;
    box-shadow: 2px 2px 10px var(--muted-shadow);
    display: flex;
    gap: 10px;
    flex-direction: column;
    will-change: transform, opacity;
    animation: fadeSlideInLeft var(--anim-medium) cubic-bezier(.2,.9,.2,1) both;
}

#userImage{
    position:absolute;
    right:0 ;
    filter: drop-shadow(2px 2px 10px rgba(3,55,73,0.25));
    margin-left:10px ;
    animation: floatY 4.5s ease-in-out infinite;
}

#aiImage{
    position: absolute;
    filter: drop-shadow(2px 2px 10px rgba(3,55,73,0.25));
    left:0;
    margin-right: 10px;
    animation: floatY 4.5s ease-in-out infinite;
}

.prompt-area{
    width: 100%;
    height: 20%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.prompt-area input{
    width: 50%;
    height: 80px;
    background-color: #ffffff;
    outline: none;
    border: 2px solid var(--med-teal);
    border-radius: 50px;
    padding: 20px;
    color: #053b4a;
    font-size: 20px;
    box-shadow: 2px 2px 10px var(--muted-shadow);
}

.prompt-area button{
    width: 70px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--med-teal);
    border: none;
    box-shadow: 2px 2px 10px var(--muted-shadow-strong);
    cursor: pointer;
    transition: transform var(--anim-fast) ease, box-shadow var(--anim-fast) ease, background-color var(--anim-fast) ease;
    animation: pulseGlow 3.6s ease-in-out infinite;
    display:flex;
    align-items:center;
    justify-content:center;
}

.prompt-area button:hover{
    background-color: rgba(28, 164, 202, 0.22);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 18px rgba(0,123,158,0.28);
}

.load{
   filter: drop-shadow(2px 2px 10px black);
}

.ai-chat-area button{
    background-color: var(--med-teal);
    border-radius: 50px;
    border: solid 2px rgba(0,255,255,0.25);
    cursor: pointer;
    height: 50px;
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #f0fbff;
    font-style: italic;
    transition: transform var(--anim-fast) ease, box-shadow var(--anim-fast) ease;
}

.ai-chat-area button:hover{
    background-color: rgba(28, 164, 202, 0.22);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 18px rgba(0,123,158,0.18);
    color: black;
}

.ai-chat-area a{
      text-decoration: none;
}

.chooseimge{
    width: 30%;
}
.choose{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

#image{
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width:600px){
    .user-chat-box{
        width: 80%;
        left:20% ;
    }
    .ai-chat-box{
        width: 80%;
    }
}

@keyframes gradientShift{
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

@keyframes fadeSlideInRight{
    0%{opacity:0; transform: translateX(18px) scale(.995)}
    100%{opacity:1; transform: translateX(0) scale(1)}
}

@keyframes fadeSlideInLeft{
    0%{opacity:0; transform: translateX(-18px) scale(.995)}
    100%{opacity:1; transform: translateX(0) scale(1)}
}

@keyframes floatY{
    0%{transform: translateY(-2px)}
    50%{transform: translateY(2px)}
    100%{transform: translateY(-2px)}
}

@keyframes pulseGlow{
    0%{box-shadow: 2px 2px 8px rgba(0,123,158,0.06)}
    50%{box-shadow: 0 10px 28px rgba(0,123,158,0.08)}
    100%{box-shadow: 2px 2px 8px rgba(0,123,158,0.06)}
}