/* Typography & Minimalist setup */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Google Brand Colors */
.text-google-blue { color: #4285F4; }
.btn-google-blue {
    background-color: #4285F4;
    color: white;
    border: none;
    transition: background-color 0.2s;
}
.btn-google-blue:hover, .btn-google-blue:focus {
    background-color: #3367D6;
    color: white;
}

/* Custom Google Color Top Border */
.google-border-top {
    border-top: 4px solid;
    border-image: linear-gradient(to right, #4285F4 25%, #EA4335 25%, #EA4335 50%, #FBBC04 50%, #FBBC04 75%, #34A853 75%) 1;
}

/* Chat Window & Bubbles */
#chatContainer {
    background-color: #f8f9fa;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.user-bubble {
    background-color: #4285F4;
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.agent-bubble {
    background-color: #ffffff;
    color: #202124;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 0.25rem;
}

/* Markdown styling inside Agent Bubbles */
.agent-bubble p:last-child {
    margin-bottom: 0;
}
.agent-bubble ul, .agent-bubble ol {
    margin-bottom: 0;
    padding-left: 1.2rem;
}
.agent-bubble strong {
    color: #000;
}

/* Thinking animation */
.dot-flashing {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 5px;
    background-color: #9aa0a6;
    color: #9aa0a6;
    animation: dot-flashing 1s infinite linear alternate;
    animation-delay: 0.5s;
    margin-left: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.dot-flashing::before, .dot-flashing::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
}
.dot-flashing::before {
    left: -15px;
    width: 8px;
    height: 8px;
    border-radius: 5px;
    background-color: #9aa0a6;
    color: #9aa0a6;
    animation: dot-flashing 1s infinite alternate;
    animation-delay: 0s;
}
.dot-flashing::after {
    left: 15px;
    width: 8px;
    height: 8px;
    border-radius: 5px;
    background-color: #9aa0a6;
    color: #9aa0a6;
    animation: dot-flashing 1s infinite alternate;
    animation-delay: 1s;
}

@keyframes dot-flashing {
    0% { background-color: #9aa0a6; }
    50%, 100% { background-color: #e8eaed; }
}