* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.chat-container {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    margin: 20px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-header {
    background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.chat-header-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.chat-header-content h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 2px;
}
.chat-header-content p {
    font-size: 13px;
    opacity: 0.9;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f8f9fa;
    scroll-behavior: smooth;
}
.message {
    display: flex;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.message.user {
    justify-content: flex-end;
}
.message-content {
    max-width: 70%;
    padding: 14px 18px;
    border-radius: 18px;
    line-height: 1.5;
    word-wrap: break-word;
}
.message.user .message-content {
    background: #FF0000;
    color: white;
    border-bottom-right-radius: 4px;
}
.message.assistant .message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.message.assistant .message-content a {
    color: #FF0000;
    text-decoration: underline;
    font-weight: 500;
}
.message.assistant .message-content a:hover {
    color: #cc0000;
}
.message.assistant .message-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}
.message-metadata {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    padding-left: 18px;
}
.typing-indicator {
    display: none;
    padding: 14px 18px;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 70px;
}
.typing-indicator.active {
    display: block;
}
.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}
.chat-input-container {
    padding: 20px 24px;
    background: white;
    border-top: 1px solid #e0e0e0;
}
.chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.chat-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    transition: border-color 0.2s;
}
.chat-input:focus {
    outline: none;
    border-color: #FF0000;
}
.send-button {
    width: 48px;
    height: 48px;
    background: #FF0000;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.send-button:hover {
    background: #cc0000;
    transform: scale(1.05);
}
.send-button:active {
    transform: scale(0.95);
}
.send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}
.welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}
.welcome-message h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #333;
}
.welcome-message p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}
.suggested-queries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 24px;
    padding: 0 24px;
}
.suggested-query {
    padding: 12px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    text-align: left;
}
.suggested-query:hover {
    border-color: #FF0000;
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.1);
}
.suggested-query-icon {
    margin-right: 8px;
}
.error-message {
    background: #fee;
    color: #c00;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 24px;
    font-size: 14px;
}
/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}
.chat-messages::-webkit-scrollbar-tr