/* 
 * Lo Helpim Yu+ Chatbot Styles
 * A light blue/green minimalist theme for the legal chatbot
 */

/* Base Styles */
:root {
    --primary-color: #2a9d8f;
    --secondary-color: #264653;
    --accent-color: #e9c46a;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #2a9d8f;
    --error-color: #e76f51;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f0f7fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: var(--box-shadow);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

header p {
    opacity: 0.9;
}

/* Main Content Styles */
main {
    padding: 30px 0;
}

.intro {
    text-align: center;
    margin-bottom: 30px;
}

.intro h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.examples {
    font-style: italic;
    color: #666;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Chat Container Styles */
.chat-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bot .message-content {
    background-color: #e9f5f3;
    border-left: 4px solid var(--primary-color);
}

.user .message-content {
    background-color: #e6f2ff;
    border-right: 4px solid #4a89dc;
    text-align: right;
}

.message-content p {
    margin-bottom: 8px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content h4 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.message-content ul {
    padding-left: 20px;
    margin-top: 8px;
}

.message-content ul li {
    margin-bottom: 5px;
}

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

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    outline: none;
}

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

.chat-input button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-input button:hover {
    background-color: #238b7e;
}

/* Disclaimer Styles */
.disclaimer {
    background-color: #fff3e0;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    border-left: 4px solid var(--accent-color);
}

.disclaimer h3 {
    color: #e67e22;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.disclaimer h3 i {
    margin-right: 8px;
}

.disclaimer p {
    font-size: 0.9rem;
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .chat-messages {
        height: 350px;
    }
    
    .message-content {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .chat-messages {
        height: 300px;
        padding: 15px;
    }
    
    .chat-input input {
        padding: 10px;
    }
    
    .chat-input button {
        padding: 0 15px;
    }
}
