/* Base styles for chatbot template - NOT sent to v0 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-container {
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto;
}

.chat-header {
    color: white;
    padding: 20px;
    text-align: center;
}

.chat-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.chat-subtitle {
    opacity: 0.9;
    font-size: 14px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: inherit;
}

.message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.message.user {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.message.bot .message-bubble {
    background: #f1f3f4;
    color: #333;
}

.message-bubble h1, .message-bubble h2, .message-bubble h3 {
    margin: 0.5em 0 0.3em 0;
    font-weight: 600;
}

.message-bubble h1 {
    font-size: 1.4em;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.2em;
}

.message-bubble h2 {
    font-size: 1.25em;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.15em;
}

.message-bubble h3 {
    font-size: 1.1em;
    color: #555;
}

.message-bubble p {
    margin: 0.5em 0;
    line-height: 1.5;
}

.message-bubble p:first-child {
    margin-top: 0;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-bubble strong {
    font-weight: 600;
    color: #222;
}

.message-bubble em {
    font-style: italic;
    color: #444;
}

.message-bubble code {
    background: rgba(0, 0, 0, 0.08);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
}

.message-bubble pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1em;
    margin: 0.5em 0;
    overflow-x: auto;
    white-space: pre-wrap;
}

.message-bubble pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.85em;
}

.message-bubble ul, .message-bubble ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.message-bubble li {
    margin: 0.2em 0;
    line-height: 1.4;
}

.message-bubble blockquote {
    border-left: 4px solid #ddd;
    margin: 0.5em 0;
    padding: 0.5em 0 0.5em 1em;
    background: rgba(0, 0, 0, 0.02);
    font-style: italic;
    color: #666;
}

.message-bubble hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1em 0;
}

.message-bubble a {
    color: #0066cc;
    text-decoration: none;
}

.message-bubble a:hover {
    text-decoration: underline;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: #666;
    color: white;
}

.chat-input-container {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: inherit;
}

.input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.send-btn {
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.send-btn:hover {
    opacity: 0.8;
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.thinking-indicator {
    background: #f1f3f4;
    color: #333;
    font-style: italic;
}

@media (max-width: 768px) {
    .chat-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .message-bubble {
        max-width: 85%;
    }
} 