* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #333333;
    background: #FFFFFF;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    background: #FFFFFF;
    position: relative;
    padding-bottom: 120px;
}

.header {
    background: #FFFFFF;
    color: #333333;
    padding: 10px 20px;
    text-align: center;
    border-bottom: 1px solid #E0E0E0;
}


.header p {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
}

.avatar {
    margin-bottom: 24px;
    display: flex;
}

.avatar-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #E5E5E5;
    transition: border-color 0.2s ease;
}

.avatar-image:hover {
    border-color: #333333;
}

.health-indicator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #999999;
    margin: 0 auto 4px auto;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.healthy {
    background: #00ff00;
}

.status-dot.unhealthy {
    background: #ff0000;
}

.status-dot.checking {
    background: #ffaa00;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.chat-container {
    padding: 40px 60px;
    background: #FFFFFF;
}

.message {
    margin-bottom: 12px;
    max-width: 90%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 52px; /* Avatar gap spacing */
}

.message.user {
    margin-left: auto;
    text-align: right;
    flex-direction: row-reverse;
    padding-left: 0; /* No avatar gap for user messages */
}

.message.bot {
    margin-right: auto;
}

.message.bot:has(.message-avatar) {
    padding-left: 0; /* No extra padding when avatar is present */
}

.message-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.message-avatar .avatar-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #E5E5E5;
}

.message-content {
    padding: 16px 20px;
    font-size: 12px;
    line-height: 1.6;
    color: #333333;
    font-weight: 400;
    border-radius: 24px;
    border: none;
}

.message.user .message-content {
    background: transparent;
}

.message.bot .message-content {
    background: #F8F8F8;
    border: 1px solid #E0E0E0;
}

/* Markdown formatting in messages */
.message-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

.message-content em {
    font-style: italic;
}

.message-content a {
    color: #333333;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.message-content a:hover {
    opacity: 0.7;
}

/* Thinking message */
.thinking-message {
    color: #999999;
    font-size: 12px;
    padding: 12px 60px;
    background: transparent;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

.input-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    display: flex;
    gap: 12px;
    z-index: 1000;
}

.input-container textarea {
    flex: 1;
    padding: 20px 70px 20px 24px;
    border: 1px solid #E0E0E0;
    border-radius: 32px;
    background: #FFFFFF;
    font-size: 12px;
    outline: none;
    color: #333333;
    font-weight: 400;
    transition: all 0.2s ease;
    box-shadow: none;
    resize: none;
    min-height: 56px;
    max-height: 200px;
    overflow-y: auto;
    font-family: inherit;
    line-height: 1.5;
}

.input-container textarea:focus {
    border-color: #FF0000;
    box-shadow: none;
}

.input-container textarea::placeholder {
    color: #999999;
    font-weight: 400;
}

.input-container button {
    position: absolute;
    right: 52px;
    bottom: 52px;
    padding: 12px;
    background: #F5F5F5;
    color: #666666;
    border: none;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.input-container button:hover {
    background: #E5E5E5;
}

.input-container button.enabled {
    background: #FF0000;
    color: #FFFFFF;
    cursor: pointer;
}

.input-container button.enabled:hover {
    background: #CC0000;
}

.input-container button:disabled {
    background: #CCCCCC;
    color: #999999;
    cursor: not-allowed;
}

.typing {
    display: none;
    color: #666666;
    font-style: normal;
    padding: 20px 24px;
    font-size: 12px;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    margin-bottom: 24px;
}

.error {
    color: #1A1A1A;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    padding: 20px 24px;
    margin: 20px 0;
    font-size: 12px;
    border-radius: 8px;
}

.sample-questions {
    margin: 0;
    padding: 20px 40px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    background: transparent;
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    z-index: 999;
}

.sample-questions-label {
    color: #999999;
    font-size: 12px;
    margin-bottom: 16px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.sample-question-btn {
    display: block;
    margin: 0;
    padding: 18px 22px;
    background: transparent;
    color: #333333;
    border: 1px solid #E0E0E0;
    border-radius: 24px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 400;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}

.sample-question-btn:hover {
    background: #F8F8F8;
    border-color: #333333;
}

.sample-question-btn:last-child {
    margin-bottom: 0;
}

/* Scrollbar styling */
.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #CCCCCC;
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: #AAAAAA;
}

