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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

#fact-icon {
    font-size: 1.5rem;
    margin-left: 15px;
    padding: 8px 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.status-accurate {
    background: rgba(76, 175, 80, 0.3) !important;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.status-uncertain {
    background: rgba(255, 152, 0, 0.3) !important;
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.5);
}

.status-inaccurate {
    background: rgba(244, 67, 54, 0.3) !important;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
}

.chat-container {
    flex: 1;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    margin-bottom: 20px;
}

.chat-log {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

.welcome-message {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.welcome-message p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.welcome-message ul {
    margin-left: 20px;
}

.welcome-message li {
    margin-bottom: 8px;
    font-size: 1rem;
}

.message {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.timestamp {
    color: #666;
    font-size: 0.8rem;
}

.message-content {
    padding: 15px;
    border-radius: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: 20%;
    border-bottom-right-radius: 5px;
}

.bot-message .message-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    margin-right: 20%;
    border-bottom-left-radius: 5px;
}

.error-message .message-content {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    margin-right: 20%;
    border-bottom-left-radius: 5px;
}

.input-container {
    display: flex;
    gap: 10px;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

#user-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#user-input:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

#send-button {
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

#send-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

.chat-log::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.chat-log::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .user-message .message-content,
    .bot-message .message-content,
    .error-message .message-content {
        margin-left: 0;
        margin-right: 0;
    }
    
    .input-container {
        flex-direction: column;
    }
    
    #send-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .message-content {
        padding: 12px;
        font-size: 0.95rem;
    }
} 