/* --------------------------
   GLOBAL BASE
--------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    width: 100%;

    /* New deep multi-color background only on sides */
    background:
        radial-gradient(circle at 0% 0%,   #4f46e5 0,  transparent 55%),
        radial-gradient(circle at 100% 0%, #06b6d4 0,  transparent 55%),
        radial-gradient(circle at 0% 100%, #22c55e 0,  transparent 55%),
        radial-gradient(circle at 100% 100%, #facc15 0, transparent 55%),
        #eaf2ff; /* light base so center stays soft */

    font-family: "Poppins", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* --------------------------
   MAIN CHAT CARD
--------------------------- */
.main-wrapper {
    width: 95%;
    max-width: 950px;
    height: 90vh;

    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #e3e8f1;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --------------------------
   HEADER
--------------------------- */
.header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: #f9fbff;
    border-bottom: 1px solid #e4e7ee;
}

.header .logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #23395d;
}

/* --------------------------
   CHAT AREA
--------------------------- */
.chat-container {
    flex: 1;
    padding: 18px 20px;
    background: #f6f9ff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

/* Scrollbar clean */
.chat-container::-webkit-scrollbar {
    width: 6px;
}
.chat-container::-webkit-scrollbar-thumb {
    background: #b0c4e8;
    border-radius: 8px;
}

/* --------------------------
   AI MESSAGE
--------------------------- */
.ai-chat-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ai-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.ai-chat-area {
    max-width: 70%;
    background: #ffffff;
    padding: 12px 16px;

    font-size: 0.95rem;
    color: #333;

    border-radius: 0 14px 14px 14px;
    border: 1px solid #d9e1ef;
    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
}

/* --------------------------
   USER MESSAGE
--------------------------- */
.user-chat-box {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 10px;             /* avatar aur bubble ke beech gap */
    align-items: flex-start;
}

.user-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-chat-area {
    max-width: 70%;
    padding: 12px 16px;

    background: #4f8bff;
    color: #fff;

    font-size: 0.95rem;
    border-radius: 14px 0 14px 14px;

    box-shadow: 0 3px 12px rgba(70,120,255,0.28);
}


/* --------------------------
   INPUT / FOOTER
--------------------------- */
.prompt-area {
    padding: 14px 18px;
    background: #ffffff;
    border-top: 1px solid #e4e8f0;

    display: flex;
    gap: 10px;
}

/* Input box */
.prompt-area input {
    flex: 1;
    height: 48px;
    padding: 0 18px;
    border-radius: 30px;

    background: #ffffff;
    border: 1px solid #cbd6e4;
    color: #222;

    font-size: 0.95rem;
}

.prompt-area input::placeholder {
    color: #7b8797;
}

/* --------------------------
   BUTTONS
--------------------------- */
.icon-btn,
.send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: 0.2s ease;
}

/* Mic + Image button */
.icon-btn {
    background: #e6edff;
    border: 1px solid #c5d4ff;
}
.icon-btn:hover {
    background: #dae6ff;
}

/* SEND BUTTON (GREEN) */
.send-btn {
    background: linear-gradient(135deg, #28d67f, #15b665);
    color: white;
    border: none;
    box-shadow: 0 6px 15px rgba(21,182,101,0.30);
}
.send-btn:hover {
    opacity: 0.88;
}

/* --------------------------
   LOADING DOTS
--------------------------- */
.show-loading {
    width: 25px;
    height: 10px;
    background-image: radial-gradient(circle, #ffcf46 3px, transparent 3px),
                      radial-gradient(circle, #ffcf46 3px, transparent 3px),
                      radial-gradient(circle, #ffcf46 3px, transparent 3px);
    background-position: 0 50%, 10px 50%, 20px 50%;
    background-size: 8px 8px;
    background-repeat: no-repeat;
    animation: dots 1s infinite linear;
}

@keyframes dots {
    0%   { opacity: 0.4; }
    50%  { opacity: 1; }
    100% { opacity: 0.4; }
}
