Spaces:
Running
Running
File size: 2,584 Bytes
4a7cb62 4212c95 4a7cb62 4212c95 4a7cb62 4212c95 4a7cb62 4212c95 4a7cb62 4212c95 4a7cb62 | 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 | /* Custom Thai Font */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');
* {
font-family: 'Prompt', sans-serif;
}
/* Glassmorphism Effect */
.glass-card {
background: rgba(31, 41, 55, 0.4);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
transition: all 0.3s ease;
}
.glass-card:hover {
background: rgba(31, 41, 55, 0.6);
border-color: rgba(75, 85, 99, 0.5);
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: rgba(17, 24, 39, 0.5);
}
::-webkit-scrollbar-thumb {
background: linear-gradient(45deg, #34d399, #10b981);
border-radius: 10px;
}
/* Smooth Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
.animate-fadeInUp {
animation: fadeInUp 0.6s ease-out;
}
.pulse-animation {
animation: pulse 2s infinite;
}
/* Quick Log Buttons */
.quick-log-btn {
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.quick-log-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
transition: left 0.5s;
}
.quick-log-btn:hover::before {
left: 100%;
}
.quick-log-btn:active {
transform: scale(0.95);
}
/* Vital Circle Hover Effect */
vital-circle {
transition: transform 0.3s ease;
}
vital-circle:hover {
transform: translateY(-5px);
}
/* AI Coach Card Typing Effect */
.ai-typing::after {
content: '...';
animation: dots 1.5s infinite;
}
@keyframes dots {
0%, 20% { content: '.'; }
40% { content: '..'; }
60%, 100% { content: '...'; }
}
/* Chart Canvas */
canvas {
max-width: 100%;
height: auto !important;
}
/* Mobile Optimizations */
@media (max-width: 640px) {
.glass-card {
border-radius: 1rem;
}
.quick-log-btn {
font-size: 0.8rem;
padding: 0.75rem 1rem;
}
}
/* Loading State */
.loading-skeleton {
background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
background-size: 200% 100%;
animation: loading 1.5s infinite;
}
@keyframes loading {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
} |