File size: 3,630 Bytes
b291c07
 
 
3dfed1b
 
b291c07
 
3dfed1b
 
b291c07
 
3dfed1b
 
b291c07
 
3dfed1b
 
b291c07
 
3dfed1b
b291c07
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
/* 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;
    }
}