:root {
    --primary-color: #4CAF50;
    --secondary-color: #81C784;
    --background-color: #E8F5E9;
    --text-color: #2E7D32;
    --border-color: #A5D6A7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Mochiy Pop One', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.chat-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.15);
    overflow: hidden;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.leaf-spirit {
    position: relative;
    width: 60px;
    height: 60px;
}

.leaf {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #90EE90;
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(144, 238, 144, 0.5);
    animation: float 3s ease-in-out infinite;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
}

.eyes {
    display: flex;
    gap: 8px;
}

.eyes::before,
.eyes::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--text-color);
    border-radius: 50%;
}

.smile {
    width: 16px;
    height: 8px;
    border-bottom: 2px solid var(--text-color);
    border-radius: 0 0 8px 8px;
    margin-top: 4px;
}

.chat-messages {
    height: 400px;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(232, 245, 233, 0.5);
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    max-width: 80%;
    animation: fadeIn 0.3s ease-out;
}

.user-message {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
    border-radius: 15px 15px 0 15px;
}

.bot-message {
    background: white;
    border: 2px solid var(--border-color);
    margin-right: auto;
    border-radius: 15px 15px 15px 0;
}

.bot-message.typing::after {
    content: '...';
    animation: typing 1.5s infinite;
}

@keyframes typing {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

.chat-input-container {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-top: 2px solid var(--border-color);
    background: white;
}

input[type="text"] {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

button {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, background-color 0.2s;
}

button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.leaf-icon {
    font-size: 1.2rem;
}

@keyframes float {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(-5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 