body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FAFAF8;
    color: #1F2933;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
    background-color: #3A6EA5;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.analogy-level {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.analogy-level label {
    font-size: 16px;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
}

.analogy-level select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    outline: none;
}

.analogy-level select:focus {
    border-color: #3A6EA5;
}

header h1 {
    margin: 0;
    font-size: 28px;
    font-family: 'Lora', serif;
    font-weight: 700;
}

header p {
    margin: 5px 0 0;
    font-size: 16px;
    opacity: 0.9;
    font-family: 'Open Sans', sans-serif;
}

.chat-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 70vh;
}

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

.message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    max-width: 90%;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
}

.user-message {
    background-color: #e3f2fd;
    margin-left: auto;
    text-align: right;
    border-bottom-right-radius: 4px;
}

.ai-message {
    background-color: white;
    margin-right: auto;
    text-align: left;
    border-bottom-left-radius: 4px;
}

.ai-section {
    margin-bottom: 20px;
    padding: 18px;
    border-left: 5px solid #3A6EA5;
    background-color: #f0f8ff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ai-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ai-section h3 {
    margin-top: 0;
    color: #3A6EA5;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid #d0e8ff;
    padding-bottom: 10px;
    margin-bottom: 12px;
    position: relative;
    font-family: 'Lora', serif;
}

.copyable-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    margin-left: 10px;
}

.copy-btn:hover {
    color: #3A6EA5;
    background-color: rgba(58, 110, 165, 0.1);
}

.copy-btn.copied {
    color: #4CAF50;
}

.copy-btn.copied::after {
    content: ' ✓';
}

.ai-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #333;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
}

.ai-section ul, .ai-section ol {
    margin: 12px 0;
    padding-left: 25px;
}

.ai-section li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.ai-section strong {
    color: #1976D2;
    font-weight: 600;
}

.ai-section em {
    color: #666;
    font-style: italic;
}

.ai-section a {
    color: #1976D2;
    text-decoration: none;
    font-weight: 500;
}

.ai-section a:hover {
    text-decoration: underline;
}

.ai-section blockquote {
    border-left: 4px solid #d0e8ff;
    padding-left: 15px;
    margin-left: 10px;
    color: #555;
    font-style: italic;
}

.ai-section pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    border-left: 4px solid #d0e8ff;
    margin: 15px 0;
}

.ai-section code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

.empty-state {
    padding: 20px;
    text-align: center;
    display: none;
}

.try-asking {
    margin: 20px 0;
}

.try-asking-title {
    font-size: 16px;
    font-weight: 600;
    color: #3A6EA5;
    margin-bottom: 15px;
    font-family: 'Open Sans', sans-serif;
}

.sample-queries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.sample-query {
    background-color: #f0f8ff;
    border: 1px solid #d0e8ff;
    color: #3A6EA5;
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    font-family: 'Open Sans', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sample-query:hover {
    background-color: #e3f2fd;
    border-color: #3A6EA5;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.sample-query:active {
    transform: translateY(0);
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
    background-color: #f0f0f0;
}

.thinking-indicator {
    display: none;
    text-align: center;
    padding: 15px;
    background-color: #3A6EA5;
    color: white;
    font-style: italic;
    font-weight: 600;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s infinite;
}

.disclaimer {
    margin-top: 5px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

.disclaimer strong {
    color: #333;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

#userInput {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: 'Open Sans', sans-serif;
}

#userInput:focus {
    border-color: #2196F3;
}

#sendButton {
    margin-left: 10px;
    padding: 12px 20px;
    background-color: #3A6EA5;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
    font-family: 'Open Sans', sans-serif;
}

#sendButton:hover {
    background-color: #0b7dda;
}

#sendButton:active {
    background-color: #0866c6;
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #b0bec5;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #90a4ae;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .chat-container {
        height: 80vh;
    }
    
    .message {
        max-width: 95%;
    }
}