/* Base Settings */
body { font-family: 'Plus Jakarta Sans', sans-serif; -webkit-tap-highlight-color: transparent; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c7c7c7; border-radius: 10px; }

/* Animations */
.fade-in { animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.slide-up { animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Checkbox */
.custom-checkbox:checked + div { background-color: #4f46e5; border-color: #4f46e5; }
.custom-checkbox:checked + div svg { display: block; }

/* Toggle Switch */
.toggle-checkbox:checked {
    right: 0;
    border-color: #ec4899;
}
.toggle-checkbox:checked + .toggle-label {
    background-color: #ec4899;
}

/* Meal Radio Button Visual State */
.meal-radio:checked + div {
    background-color: #0f172a; /* Slate 900 */
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #0f172a;
}

/* Weather Animations */
.pulse-slow { animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }

/* AI Typing Effect */
.typing::after { content: '...'; animation: typing 1s infinite; }
@keyframes typing { 0% { content: '.'; } 33% { content: '..'; } 66% { content: '...'; } }

/* Chat Bubbles */
.chat-user {
    background: #0f172a;
    color: white;
    border-radius: 18px 18px 2px 18px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.chat-ai {
    background: white;
    color: #334155;
    border-radius: 18px 18px 18px 2px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}
.prose p { margin-bottom: 0.5em; }
.prose ul { list-style-type: disc; padding-left: 1.2em; margin-bottom: 0.5em; }
.prose strong { color: #4f46e5; font-weight: 700; }