.spinner {
    border: 4px solid rgba(0,0,0,.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;

    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Chat container */
#gpt-chatbot-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Credits/Connects container */
#credits-container {
    text-align: right;
    margin-bottom: 20px;
}

/* Credits/Connects text */
#credits-container p {
    font-size: 16px;
    color: #555;
}

/* Profile container */
#profile-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* User and Friend profiles */
.profile {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.profile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile li {
    margin-bottom: 6px;
    font-size: 16px;
    color: #555;
}

/* Chat messages */
.user-message, .chatbot-message {
    margin-bottom: 10px;
    padding: 10px 16px;
    border-radius: 8px;
}

.chatbot-message {
    background-color: #007bff;
    color: #fff;
}

.user-message {
    background-color: #f9f9f9;
    color: #333;
}

/* User input container */
#user-input-container {
    display: flex;
    margin-top: 20px;
}

/* User input text box */
#user-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px 0 0 8px;
    outline: none;
}

/* Send button */
#send-button {
    padding: 10px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

#clear-chat-btn {
    padding: 10px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

/* Send button hover effect */
#send-button:hover {
    background-color: #0056b3;
}
