Spaces:
Running
Running
File size: 3,159 Bytes
3f17337 d8fefcc 3f17337 d8fefcc 3f17337 d8fefcc 3f17337 d8fefcc 3f17337 d8fefcc 3f17337 d8fefcc 3f17337 d8fefcc 3f17337 640584b d8fefcc 640584b d8fefcc 640584b d8fefcc 640584b d8fefcc 640584b 3f17337 d8fefcc 3f17337 d8fefcc 3f17337 d8fefcc 3f17337 d8fefcc 3f17337 d8fefcc 3f17337 640584b 3f17337 |
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 |
:root {
--primary-color: #2ecc71;
--secondary-color: #27ae60;
--accent-color: #f1c40f;
--background-color: #ffffff;
--text-color: #2d3436;
--card-bg: #f8f9fa;
--dark-text: #2c3e50;
}
/* Base styles */
.stApp {
background: var(--background-color);
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: var(--dark-text);
}
/* Header styles */
.custom-header {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
padding: 2rem;
border-radius: 15px;
color: white;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin-bottom: 2rem;
animation: fadeIn 1s ease-in;
}
/* Text visibility fixes */
.stMarkdown, .nutrition-card, .meal-plan-section, .graph-container {
color: var(--dark-text) !important;
}
.stTextInput>div>div>input, .stNumberInput>div>div>input {
color: var(--dark-text) !important;
}
/* Food card styles */
.nutrition-card {
background: var(--card-bg);
border-radius: 15px;
padding: 1.5rem;
margin: 1rem 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease;
color: var(--dark-text);
}
/* Meal plan section */
.meal-plan-section {
background: var(--card-bg);
border-radius: 15px;
padding: 2rem;
margin: 2rem 0;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
color: var(--dark-text);
}
/* Graph container */
.graph-container {
background: var(--card-bg);
border-radius: 15px;
padding: 1.5rem;
margin: 1rem 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
color: var(--dark-text);
}
/* Updated Radio buttons */
.stRadio label {
background: var(--card-bg) !important;
color: var(--dark-text) !important;
border: 2px solid var(--primary-color) !important;
padding: 0.8rem 1.5rem !important;
border-radius: 25px !important;
transition: all 0.3s ease !important;
}
.stRadio input:checked + label {
background: var(--primary-color) !important;
color: white !important;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}
.stRadio label:hover {
transform: translateY(-2px);
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
/* Form styling */
.stForm {
background: var(--card-bg);
color: var(--dark-text);
}
/* Table text color */
.stTable {
color: var(--dark-text) !important;
}
/* Mobile responsive adjustments */
@media (max-width: 768px) {
.custom-header h1 {
font-size: 1.8rem;
color: white !important;
}
.nutrition-card {
margin: 0.5rem 0;
padding: 1rem;
}
}
/* Animation classes */
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.02); }
100% { transform: scale(1); }
}
.pulse-animation {
animation: pulse 2s infinite;
}
/* Loading spinner */
.loading-spinner {
display: flex;
justify-content: center;
padding: 2rem;
}
.loading-spinner::after {
content: "";
width: 40px;
height: 40px;
border: 4px solid var(--primary-color);
border-top-color: transparent;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Custom radio button container */
.stRadio > div {
display: flex;
gap: 1rem;
flex-wrap: wrap;
} |