/* Custom Styles */ .nav-btn { @apply flex flex-col items-center justify-center p-2 text-gray-500 hover:text-emerald-600 transition-colors rounded-lg; } .nav-btn.active { @apply text-emerald-600 bg-emerald-50; } .view { @apply min-h-screen; } .mood-btn { @apply text-3xl p-2 rounded-lg hover:bg-gray-100 transition-all; } .mood-btn.selected { @apply bg-emerald-100 ring-2 ring-emerald-500 transform scale-110; } .activity-label { @apply flex items-center space-x-2 p-2 border border-gray-200 rounded-lg cursor-pointer hover:bg-gray-50 transition; } .activity-label input:checked + span { @apply text-emerald-600 font-medium; } .activity-label input:checked ~ span { @apply text-emerald-600; } .activity-checkbox, .nutrition-checkbox { @apply rounded text-emerald-600 focus:ring-emerald-500; } input[type="range"] { @apply w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer; } input[type="range"]::-webkit-slider-thumb { @apply appearance-none w-5 h-5 bg-emerald-500 rounded-full cursor-pointer; } input[type="range"]::-moz-range-thumb { @apply w-5 h-5 bg-emerald-500 rounded-full cursor-pointer border-0; } /* Chart containers */ canvas { max-width: 100%; height: auto !important; } /* Animations */ @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } .view { animation: slideIn 0.3s ease-out; } /* Custom scrollbar */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: #f1f1f1; } ::-webkit-scrollbar-thumb { background: #10b981; border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: #059669; } /* Loading animation */ @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .loading { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; } /* Notification badge */ .notification-badge { @apply absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full; } /* Card hover effects */ .hover-lift { transition: transform 0.2s, box-shadow 0.2s; } .hover-lift:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } /* Gradient text */ .gradient-text { background: linear-gradient(135deg, #10b981 0%, #eab308 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* Glass effect */ .glass { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } /* Focus states */ .focus-ring:focus { @apply ring-2 ring-emerald-500 ring-offset-2 outline-none; } /* Status indicators */ .status-green { @apply bg-emerald-100 text-emerald-800 border-emerald-200; } .status-yellow { @apply bg-yellow-100 text-yellow-800 border-yellow-200; } .status-red { @apply bg-red-100 text-red-800 border-red-200; } /* Metric cards */ .metric-card { @apply bg-white border border-gray-200 rounded-xl p-4 hover:shadow-md transition-shadow; } .metric-value { @apply text-2xl font-bold text-gray-900; } .metric-label { @apply text-sm text-gray-600; } .metric-change { @apply text-xs font-medium flex items-center space-x-1; } .metric-change.positive { @apply text-emerald-600; } .metric-change.negative { @apply text-red-600; } /* Responsive adjustments */ @media (max-width: 380px) { .text-3xl { @apply text-2xl; } .text-4xl { @apply text-3xl; } .text-5xl { @apply text-4xl; } }