/*
*
==========================================
==========================================
 Basic CSS setup
==========================================
==========================================
*
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

#chat-container-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

}

#chat-container {
    width: 100%;
    height: 40vh;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#chat-output {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-in-out;
}

.user {
    align-self: flex-end;
    background-color: #eaeaea;
    color: #333;
    border-radius: 20px 20px 0 20px;
}

.assistant {
    align-self: flex-start;
    background-color: #e1f2ff;
    color: #333;
    border-radius: 20px 20px 20px 0;
    position: relative;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#chat-input-wrapper {
    display: flex;
    padding: 10px;
    background-color: #ffffff;
    border-top: 1px solid #e1e1e1;
}

#chat-input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 16px;
    resize: none;
    height: 80px;
    outline: none;
    transition: border-color 0.3s ease;
}

#chat-input:focus {
    border-color: #0100bc;
}

#send-button {
    padding: 14px 18px !important;
    margin-left: 10px;
    background-color: #0100bc;
    border: none;
    border-radius: 15px !important;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#send-button:hover {
    background-color: #11109d;
}

#send-button:active {
    background-color: #004085;
}

@media (max-width: 768px) {
    #chat-container {
        max-width: 100%;
        height: 95vh;
    }

    #chat-input {
        font-size: 15px;
    }

    #send-button {
        font-size: 15px;
        padding: 10px 16px;
    }
}




/*
*
==========================================
==========================================
 Typing animation, fade-in for messages
==========================================
==========================================
*
*/

/* Typing indicator (dots animation) */
/* Typing indicator styles */

.typing-indicator {
    font-style: italic;
    color: #007bff;
    margin-top: 10px;
}

.typing-indicator::after {
    content: '';
    animation: dots 1.5s infinite step-start;
}

@keyframes dots {
    0% {
        content: '';
    }
    33% {
        content: '.';
    }
    66% {
        content: '..';
    }
    100% {
        content: '...';
    }
}

/* Welcome message styling */
.welcome-message {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53, #6a1b9a, #2196f3);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    animation: gradientAnimation 3s infinite alternate;
}

/* Gradient animation */
@keyframes gradientAnimation {
    0% {
        background: linear-gradient(45deg, #ff6b6b, #ff8e53, #6a1b9a, #2196f3);
    }
    50% {
        background: linear-gradient(45deg, #ffb74d, #f44336, #9c27b0, #3f51b5);
    }
    100% {
        background: linear-gradient(45deg, #ff6b6b, #ff8e53, #6a1b9a, #2196f3);
    }
}
