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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.chat-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 900px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #dc143c, #b71c1c);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.chat-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
}

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

.specialties {
    background: #f8f9fa;
    padding: 15px 25px;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
    color: #6c757d;
}

.specialties strong {
    color: #dc143c;
}

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

.message {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.user-message {
    align-items: flex-end;
}

.bot-message {
    align-items: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.user-message .message-bubble {
    background: #dc143c;
    color: white;
}

.bot-message .message-bubble {
    background: white;
    color: #333;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Style for sources within the message bubble */
.message-bubble ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0 0 0;
}

.message-bubble li {
    margin-bottom: 4px;
}

.message-bubble a {
    color: #dc143c;
    text-decoration: none;
    font-weight: 500;
}

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

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

.chat-input-form {
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: #dc143c;
}

.send-button {
    background: #dc143c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button:hover {
    background: #b71c1c;
    transform: scale(1.05);
}

.send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.loading-dots {
    display: inline-block;
    animation: loading 1.4s infinite ease-in-out;
}

@keyframes loading {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.welcome-message {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #dc143c;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.example-queries {
    margin-top: 15px;
}

.example-query {
    background: #f8f9fa;
    color: #dc143c;
    padding: 8px 12px;
    border-radius: 15px;
    margin: 5px;
    display: inline-block;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.example-query:hover {
    background: #dc143c;
    color: white;
}

@media (max-width: 768px) {
    .chat-container {
        height: 95vh;
        border-radius: 10px;
    }
    
    .message-bubble {
        max-width: 90%;
    }
} 