/* style.css */

body { 
    font-family: 'Inter', sans-serif; 
    background-color: #f0f2f5; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    margin: 0; 
    overflow: hidden; 
} 

.main-layout-wrapper { 
    display: flex; 
    width: 100%; 
    height: 90vh; 
    max-width: 600px; 
    background-color: #ffffff; 
    border-radius: 1rem; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); 
    overflow: hidden; 
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
} 

.chat-container { 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    height: 100%; 
    flex-shrink: 0; 
    width: 100%; 
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
} 

.chat-header { 
    background-color: #4a90e2; 
    color: white; 
    padding: 0.75rem 1rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
} 

.chat-header-title { 
    font-size: 1.5rem; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
} 

.chat-header-title img { 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    margin-right: 0.5rem; 
    object-fit: cover; 
} 

.user-area { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
} 

#googleSignInButton { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    background-color: white; 
    color: #333; 
    padding: 0.5rem 1rem; 
    border-radius: 8px; 
    font-weight: 500; 
    cursor: pointer; 
    border: 1px solid #ddd; 
    transition: all 0.3s; 
} 

#googleSignInButton:hover { 
    background-color: #f8f8f8; 
} 

.user-info { 
    display: none; 
    align-items: center; 
    gap: 0.5rem; 
} 

.user-info img { 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
} 

.user-info span { 
    font-size: 0.9rem; 
    font-weight: 500; 
} 

#logoutButton { 
    background: #e74c3c; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    padding: 0.3rem 0.6rem; 
    font-size: 0.8rem; 
    cursor: pointer; 
} 

.chat-messages { 
    flex-grow: 1; 
    padding: 1.5rem; 
    overflow-y: auto; 
    background-color: #f9fbfd; 
    scroll-behavior: smooth; 
} 

.message-bubble { 
    max-width: 80%; 
    padding: 0.75rem 1rem; 
    border-radius: 1.2rem; 
    margin-bottom: 1rem; 
    word-wrap: break-word; 
    line-height: 1.4; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); 
} 

.message-bubble.user { 
    background-color: #4a90e2; 
    color: white; 
    margin-left: auto; 
    border-bottom-right-radius: 0.4rem; 
} 

.message-bubble.bot { 
    background-color: #e9e9eb; 
    color: #333; 
    margin-right: auto; 
    border-bottom-left-radius: 0.4rem; 
} 

.message-bubble.error { 
    background-color: #fbe2e2; 
    color: #c0392b; 
    border: 1px solid #e74c3c; 
} 

.chat-input-area { 
    display: flex; 
    padding: 1rem; 
    border-top: 1px solid #e0e0e0; 
    background-color: #ffffff; 
} 

.chat-input { 
    flex-grow: 1; 
    padding: 0.75rem 1rem; 
    border: 1px solid #cccccc; 
    border-radius: 9999px; 
    outline: none; 
    font-size: 1rem; 
    transition: border-color 0.3s; 
} 

.chat-input:focus { 
    border-color: #4a90e2; 
} 

.send-button { 
    background-color: #4a90e2; 
    color: white; 
    border: none; 
    border-radius: 9999px; 
    padding: 0.75rem 1.5rem; 
    margin-left: 0.75rem; 
    cursor: pointer; 
    font-size: 1rem; 
    font-weight: 500; 
    transition: background-color 0.3s; 
} 

.send-button:hover:not(:disabled) { 
    background-color: #3a7bd5; 
} 

.send-button:disabled { 
    background-color: #a0c7f1; 
    cursor: not-allowed; 
} 

.loading-indicator { 
    display: flex; 
    align-items: center; 
    margin-right: auto; 
} 

.spinner { 
    border: 4px solid rgba(0, 0, 0, 0.1); 
    width: 24px; 
    height: 24px; 
    border-radius: 50%; 
    border-left-color: #4a90e2; 
    animation: spin 1s ease infinite; 
    margin-right: 10px; 
} 

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}