/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Header styles */
header {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Chat container styles */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Message bubble styles */
.message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 18px;
    margin-bottom: 5px;
    animation: fadeIn 0.3s ease;
    word-wrap: break-word;
}

.user-message {
    align-self: flex-end;
    background-color: #E3F2FD;
    border-bottom-right-radius: 5px;
}

.assistant-message {
    align-self: flex-start;
    background-color: #F1F1F1;
    border-bottom-left-radius: 5px;
}

/* Typing indicator */
.typing-indicator {
    align-self: flex-start;
    background-color: #F1F1F1;
    border-radius: 18px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #888;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
    margin-right: 0;
}

/* Motivational quote styles */
.quote-message {
    align-self: center;
    text-align: center;
    font-style: italic;
    color: #666;
    max-width: 90%;
    padding: 10px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 10px 0;
    animation: fadeIn 0.5s ease;
}

/* Input container styles */
.input-container {
    display: flex;
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
}

input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 1rem;
}

input[type="text"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #45a049;
}

button svg {
    width: 20px;
    height: 20px;
}

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

@keyframes typing {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* Responsive styles */
@media (max-width: 600px) {
    .app-container {
        height: 100vh;
        width: 100%;
        max-width: none;
        border-radius: 0;
    }
    
    .message {
        max-width: 85%;
    }
}

/* Scrollbar styling */
.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

.chat-container::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}