body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f5f5f5;
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 80vh;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.message-avatar {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.message-content {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: calc(70% - 40px);
    width: fit-content;
    word-wrap: break-word;
    white-space: pre-wrap;
}

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

.user-message .message-content {
    background: #007AFF;
    color: white;
    margin-left: auto;
    max-width: calc(50% - 40px);
    hyphens: auto;
}

.ai-message .message-content {
    background: #E9ECEF;
    color: black;
}

.chat-input {
    display: flex;
    padding: 20px;
    border-top: 1px solid #eee;
}

input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 16px;
}

button {
    padding: 10px 20px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: #0056b3;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
    background: #E9ECEF;
    border-radius: 15px;
    width: fit-content;
    min-width: 40px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #666;
    border-radius: 50%;
    animation: bounce 1.5s ease infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.ai-message pre {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.ai-message code {
    font-family: monospace;
    background: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
}

.ai-message p {
    margin: 0 0 10px 0;
}

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

.message.ai-message.loading {
    padding-left: 40px;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(90deg, #000000 0%, #1a1a1a 100%);
    border-radius: 10px 10px 0 0;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.header-right {
    gap: 10px;
}

.header-right span {
    color: #fff;
    font-size: 0.8rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.nvidia-logo {
    height: 30px;
    margin-right: 15px;
}

.pinecone-logo {
    height: 18px;
}

.chat-header h1 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
} 