:root {
    --primary-color: #7E57C2;
    --secondary-color: #5E35B1;
    --user-msg-bg: #EDE7F6;
    --bot-msg-bg: #F5F5F5;
    --border-radius: 20px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.chat-container {
    width: 100%;
    max-width: 500px;
    height: 700px;
    background-color: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.chat-header h2 {
    font-weight: 600;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-indicator {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4CAF50;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #FAFAFA;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 5px;
    animation: fadeIn 0.3s ease;
    position: relative;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message {
    background-color: var(--user-msg-bg);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bot-message {
    background-color: var(--bot-msg-bg);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message-typing {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--bot-msg-bg);
    border-radius: var(--border-radius);
    border-bottom-left-radius: 5px;
    align-self: flex-start;
    max-width: 120px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #9E9E9E;
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingAnimation {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

.timestamp {
    font-size: 0.7rem;
    color: #9E9E9E;
    margin-top: 5px;
    text-align: right;
}

.chat-input-container {
    display: flex;
    padding: 15px;
    border-top: 1px solid #E0E0E0;
    background-color: white;
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    resize: none;
    height: 50px;
    line-height: 1.5;
}

.send-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-left: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.send-button:hover {
    transform: scale(1.05);
}

.memory-badge {
    display: inline-block;
    background-color: rgba(126, 87, 194, 0.1);
    color: var(--primary-color);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    margin-top: 5px;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    border-top: 1px solid #E0E0E0;
    background-color: #F5F5F5;
}

.suggestion-chip {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid #E0E0E0;
    border-radius: 16px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-chip:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 600px) {
    .chat-container {
        height: 100vh;
        border-radius: 0;
    }
    
    .message {
        max-width: 90%;
    }
}