@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* BODY */
body {
    height: 100vh;
    background: radial-gradient(circle at top, #1a1a40, #0d0d1f 70%);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* CHAT CONTAINER */
.chat-container {
    flex: 1;
    padding: 30px 15%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* WELCOME SECTION */
.welcome-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
}

.welcome-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* AI MESSAGE */
.ai-chat-box {
    display: flex;
    justify-content: center;
    max-width: 70%;
}

.ai-chat-area {
    padding: 16px 22px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    line-height: 1.7;
}

/* USER MESSAGE */
.user-chat-box {
    align-self: flex-end;
    max-width: 70%;
}

.user-chat-area {
    padding: 16px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    box-shadow: 0 8px 25px rgba(255,75,43,0.6);
    line-height: 1.7;
}

/* ===================== */
/* INPUT BAR (CHATGPT STYLE)
/* ===================== */

.prompt-area {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: 92%;
    max-width: 750px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;

    border-radius: 50px;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,0.15);

    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
}

/* INPUT */
#prompt {
    flex: 1;
    min-width: 0;

    border: none;
    outline: none;

    background: transparent;
    color: white;

    font-size: 15px;
    padding: 12px 14px;
}

#prompt::placeholder {
    color: #aaa;
}

/* BUTTONS */
.prompt-area button {
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    border-radius: 50%;
    border: none;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(145deg, #00f5ff, #5f00ff);

    box-shadow: 0 5px 15px rgba(0,0,0,0.6);
    transition: 0.25s ease;
}

.prompt-area button:hover {
    transform: translateY(-3px) scale(1.05);
}

.prompt-area button:active {
    transform: scale(0.95);
}

/* ICONS */
button img {
    width: 18px;
    filter: brightness(0) invert(1);
}

/* VOICE */
#voiceBtn {
    font-size: 18px;
}

/* SEND BUTTON SPECIAL */
#submit {
    background: linear-gradient(145deg, #10a37f, #0e8f6f);
}

/* SCROLLBAR */
.chat-container::-webkit-scrollbar {
    width: 5px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: linear-gradient(#00f5ff, #5f00ff);
    border-radius: 10px;
}

/* ===================== */
/* RESPONSIVE DESIGN
/* ===================== */

@media (max-width: 768px) {

    .chat-container {
        padding: 12px;
        padding-bottom: 120px;
    }

    .welcome-img {
        width: 90px;
        height: 90px;
    }

    .ai-chat-area {
        max-width: 95%;
        font-size: 14px;
        padding: 12px;
    }

    .prompt-area {
        width: 95%;
        bottom: 15px;
        padding: 8px;
        border-radius: 40px;
    }

    #prompt {
        font-size: 14px;
    }

    .prompt-area button {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 360px) {

    .chat-container {
        padding-bottom: 140px;
    }

    .prompt-area {
        bottom: 12px;
    }

    #prompt {
        font-size: 13px;
    }
}
