Spaces:
Running
Running
File size: 3,099 Bytes
933f24f 925a483 933f24f 925a483 933f24f 925a483 933f24f 925a483 933f24f 925a483 933f24f 925a483 933f24f | 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 | /* Custom styles for JaiKaset Smart Farm */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Prompt', sans-serif;
}
.tab-content {
animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.nav-btn.active {
color: #16a34a;
}
.nav-btn:hover {
color: #16a34a;
}
/* Chart canvas styling */
canvas {
max-width: 100%;
height: auto;
}
/* Custom scrollbar for mobile */
::-webkit-scrollbar {
width: 4px;
height: 4px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #16a34a;
border-radius: 2px;
}
/* Smooth transitions */
* {
transition: all 0.2s ease;
}
/* Responsive design */
@media (max-width: 640px) {
main {
padding-bottom: 80px;
}
}
/* Custom animations */
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
.pulse-animation {
animation: pulse 2s infinite;
}
/* Loading spinner */
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.spinner {
border: 3px solid #f3f3f3;
border-top: 3px solid #16a34a;
border-radius: 50%;
width: 30px;
height: 30px;
animation: spin 1s linear infinite;
}
/* Badge styles */
.badge {
display: inline-block;
padding: 0.25rem 0.5rem;
font-size: 0.75rem;
font-weight: 600;
border-radius: 9999px;
}
.badge-success {
background-color: #dcfce7;
color: #16a34a;
}
.badge-warning {
background-color: #fef3c7;
color: #d97706;
}
.badge-danger {
background-color: #fee2e2;
color: #dc2626;
}
/* Card hover effects */
.card-hover:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
/* Input field focus styles */
input:focus, select:focus, textarea:focus {
outline: none;
border-color: #16a34a;
box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}
/* Tab indicator */
.tab-indicator {
height: 3px;
background: linear-gradient(90deg, #16a34a, #22c55e);
border-radius: 3px 3px 0 0;
}
/* Custom button styles */
.btn-primary {
background: linear-gradient(135deg, #16a34a, #22c55e);
color: white;
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
font-weight: 600;
transition: all 0.3s ease;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(22, 163, 74, 0.3);
}
/* Glass morphism effect */
.glass {
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.3);
}
/* Success animation */
@keyframes success {
0% {
transform: scale(0) rotate(-180deg);
opacity: 0;
}
100% {
transform: scale(1) rotate(0deg);
opacity: 1;
}
}
.success-animation {
animation: success 0.5s ease-out;
} |