* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e8b4b8;
    --primary-light: #f2d0d3;
    --primary-dark: #c9969a;
    --bg: #1a1a1a;
    --bg-card: #242424;
    --bg-input: #2a2a2a;
    --text: #f5f5f5;
    --text-muted: rgba(255, 255, 255, 0.6);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Cormorant Garamond', serif;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 1.1rem;
    line-height: 1.6;
}

.app-container {
    max-width: 700px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(232, 180, 184, 0.15);
}

.app-header h1 {
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

/* Chat */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.message {
    max-width: 80%;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius);
    animation: fadeIn 0.3s ease;
    line-height: 1.5;
    font-size: 1.05rem;
}

.message.bot {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid rgba(232, 180, 184, 0.1);
}

.message.user {
    align-self: flex-end;
    background: rgba(232, 180, 184, 0.2);
}

.message ul {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
}

.message li {
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.message .prompt-list {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.message .prompt-btn {
    background: rgba(232, 180, 184, 0.1);
    border: 1px solid rgba(232, 180, 184, 0.2);
    color: var(--primary-light);
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.message .prompt-btn:hover {
    background: rgba(232, 180, 184, 0.2);
    border-color: var(--primary);
}

/* Quick mood buttons */
.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    justify-content: center;
}

.quick-btn {
    background: rgba(232, 180, 184, 0.08);
    border: 1px solid rgba(232, 180, 184, 0.2);
    color: var(--primary-light);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: rgba(232, 180, 184, 0.2);
    border-color: var(--primary);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 0.3rem;
    padding: 0.9rem 1.2rem;
    align-self: flex-start;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite;
    opacity: 0.4;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* Input */
.chat-input-area {
    display: flex;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem 1rem;
    border-top: 1px solid rgba(232, 180, 184, 0.1);
}

#chat-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid rgba(232, 180, 184, 0.15);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    color: var(--text);
    font-family: var(--font);
    font-size: 1.05rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    max-height: 120px;
}

#chat-input:focus {
    border-color: var(--primary);
}

#chat-input::placeholder {
    color: var(--text-muted);
}

.btn-send {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--bg);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    flex-shrink: 0;
    align-self: flex-end;
}

.btn-send:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(232, 180, 184, 0.2);
    border-radius: 3px;
}

/* Mobile */
@media (max-width: 600px) {
    .app-header h1 { font-size: 1rem; }
    .message { max-width: 90%; }
    .chat-messages { padding: 1rem; }
    .chat-input-area { padding: 0.8rem 1rem; }
    .quick-buttons { padding: 0.5rem 1rem; }
}
