Spaces:
Running
Running
File size: 3,316 Bytes
b263139 9080d1c b263139 9080d1c b263139 9080d1c b263139 9080d1c b263139 9080d1c b263139 | 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 189 190 191 192 | /* ThaiRice NDVI Visualizer - Main Styles */
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #10b981;
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: #059669;
}
/* Smooth Scrolling */
html {
scroll-behavior: smooth;
}
/* Custom Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
@keyframes gradientShift {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
/* Animation Classes */
.fade-in-up {
animation: fadeInUp 0.6s ease-out forwards;
}
.pulse-slow {
animation: pulse 2s infinite;
}
.gradient-shift {
background-size: 200% 200%;
animation: gradientShift 3s ease infinite;
}
/* Custom Components */
.ndvi-gradient {
background: linear-gradient(90deg,
#d32f2f 0%,
#f57c00 20%,
#fbc02d 40%,
#7cb342 60%,
#388e3c 80%,
#1b5e20 100%);
}
.health-indicator {
position: relative;
}
.health-indicator::after {
content: '';
position: absolute;
top: -4px;
right: -4px;
width: 12px;
height: 12px;
border-radius: 50%;
background-color: #10b981;
border: 2px solid white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Map Controls */
.map-control {
transition: all 0.2s ease;
backdrop-filter: blur(10px);
}
.map-control:hover {
transform: scale(1.05);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
/* Card Hover Effects */
.hover-lift {
transition: all 0.3s ease;
}
.hover-lift:hover {
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
/* Loading States */
.loading-shimmer {
background: linear-gradient(90deg,
#f0f0f0 25%,
#e0e0e0 50%,
#f0f0f0 75%);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
0% {
background-position: -200% 0;
}
100% {
background-position: 200% 0;
}
}
/* Tooltip Styles */
.tooltip {
position: fixed;
z-index: 9999;
pointer-events: none;
opacity: 0;
animation: tooltipFadeIn 0.2s ease forwards;
}
@keyframes tooltipFadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Responsive Typography */
@media (max-width: 640px) {
.responsive-text {
font-size: 0.875rem;
}
}
/* Custom Borders */
.border-gradient {
border: 2px solid transparent;
background: linear-gradient(white, white) padding-box,
linear-gradient(90deg, #10b981, #059669) border-box;
}
/* Focus States */
.focus-ring:focus {
outline: none;
ring-width: 3px;
ring-color: rgba(16, 185, 129, 0.5);
ring-offset: 2px;
}
/* Print Styles */
@media print {
.no-print {
display: none !important;
}
.print-only {
display: block !important;
}
} |