:root {
    --primary-color: #2563eb;
    --background-color: #f8fafc;
    --chat-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --assistant-bg: #f1f5f9;
    --user-bg: #dbeafe;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
}

.chat-container {
    flex: 1;
    background: var(--chat-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 1rem;
    background: var(--chat-bg);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.chat-header h1 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.message {
    margin-bottom: 1rem;
    max-width: 80%;
    padding: 1rem;
    border-radius: 12px;
    position: relative;
}

.message.assistant {
    background: var(--assistant-bg);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.message.user {
    background: var(--user-bg);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message .source {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

.chat-input-container {
    padding: 1rem;
    background: var(--chat-bg);
    border-top: 1px solid var(--border-color);
}

.chat-input-form {
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: var(--primary-color);
}

.send-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s;
}

.send-button:hover {
    opacity: 0.9;
}

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

.typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Smooth scrolling for modern browsers */
.chat-messages {
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--background-color);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

/* Query Type Selector Styles */
.query-type-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.query-type-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.query-type-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.query-type-label input[type="radio"]:checked + .radio-custom {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.query-type-label:hover .radio-custom {
    border-color: var(--primary-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        height: 100vh;
    }
    
    .chat-container {
        border-radius: 0;
    }
    
    .message {
        max-width: 90%;
    }
}

.footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer p {
    margin: 0;
} 