Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,7 +69,6 @@ def init_google_sheets():
|
|
| 69 |
|
| 70 |
|
| 71 |
# Google Sheets is initialized lazily on first sync.
|
| 72 |
-
# This keeps the public calculator fast to load even when Sheets is not configured.
|
| 73 |
gs_client = None
|
| 74 |
gs_sheet = None
|
| 75 |
gs_initialized = False
|
|
@@ -87,7 +86,6 @@ def get_google_sheets():
|
|
| 87 |
|
| 88 |
|
| 89 |
def sync_to_google_sheets(email, country, currency, breed, action="lead"):
|
| 90 |
-
"""Sync data to Google Sheets."""
|
| 91 |
client, sheet = get_google_sheets()
|
| 92 |
if not client or not sheet:
|
| 93 |
return False
|
|
@@ -773,7 +771,7 @@ def export_calculations_wrapper():
|
|
| 773 |
|
| 774 |
|
| 775 |
# ============================================================
|
| 776 |
-
# FEED CALCULATION
|
| 777 |
# ============================================================
|
| 778 |
|
| 779 |
def calculate_feed(birds, weeks, days, bag_size, price_per_bag, email, country_code, breed, request: gr.Request):
|
|
@@ -926,11 +924,15 @@ def calculate_feed(birds, weeks, days, bag_size, price_per_bag, email, country_c
|
|
| 926 |
|
| 927 |
|
| 928 |
# ============================================================
|
| 929 |
-
# CSS -
|
| 930 |
# ============================================================
|
| 931 |
|
| 932 |
CSS = """
|
|
|
|
|
|
|
|
|
|
| 933 |
:root {
|
|
|
|
| 934 |
--app-bg-main: #f4f7f5;
|
| 935 |
--app-card-surface: #ffffff;
|
| 936 |
--brand-primary-mint: #00a86b;
|
|
@@ -938,29 +940,58 @@ CSS = """
|
|
| 938 |
--brand-accent-yellow: #ffb800;
|
| 939 |
--ui-border-muted: #d6e0db;
|
| 940 |
--text-helper: #5a6e65;
|
| 941 |
-
--mint:
|
| 942 |
-
--mint-dark:
|
| 943 |
--mint-soft: #eaf8f1;
|
| 944 |
-
--yellow:
|
| 945 |
--yellow-soft: #fff7db;
|
| 946 |
-
--surface: var(--app-card-surface);
|
| 947 |
-
--page: var(--app-bg-main);
|
| 948 |
-
--border: var(--ui-border-muted);
|
| 949 |
-
--muted: var(--text-helper);
|
| 950 |
}
|
| 951 |
|
| 952 |
-
|
| 953 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 954 |
padding: 0 !important;
|
| 955 |
-
|
| 956 |
-
|
| 957 |
-
|
| 958 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 959 |
}
|
| 960 |
|
| 961 |
body, .gradio-container, .gradio-container .block, .gradio-container .gr-group {
|
| 962 |
-
background:
|
| 963 |
-
color:
|
|
|
|
| 964 |
}
|
| 965 |
|
| 966 |
.gradio-container {
|
|
@@ -969,17 +1000,13 @@ body, .gradio-container, .gradio-container .block, .gradio-container .gr-group {
|
|
| 969 |
margin: 0 auto !important;
|
| 970 |
padding: 0 10px 32px !important;
|
| 971 |
box-sizing: border-box !important;
|
| 972 |
-
|
| 973 |
-
|
| 974 |
-
.dark body, .dark .gradio-container, .dark .gradio-container .block {
|
| 975 |
-
background: var(--page) !important;
|
| 976 |
-
color: var(--mint-dark) !important;
|
| 977 |
}
|
| 978 |
|
| 979 |
/* HEADER */
|
| 980 |
.app-header {
|
| 981 |
-
background:
|
| 982 |
-
color: #fff;
|
| 983 |
border-radius: 0 0 16px 16px;
|
| 984 |
padding: 14px 14px 16px;
|
| 985 |
margin: 0 -10px 12px;
|
|
@@ -990,19 +1017,20 @@ body, .gradio-container, .gradio-container .block, .gradio-container .gr-group {
|
|
| 990 |
.app-header p { color: rgba(255,255,255,.88) !important; margin: 4px 0 0 36px; font-size: 13px; line-height: 1.4; }
|
| 991 |
|
| 992 |
.status-card {
|
| 993 |
-
background:
|
| 994 |
-
border: 1px solid
|
| 995 |
-
border-left: 4px solid
|
| 996 |
border-radius: 10px;
|
| 997 |
padding: 10px 12px;
|
| 998 |
margin-bottom: 10px;
|
| 999 |
font-size: 12px;
|
|
|
|
| 1000 |
}
|
| 1001 |
-
.status-card strong { color:
|
| 1002 |
|
| 1003 |
.form-section {
|
| 1004 |
-
background:
|
| 1005 |
-
border: 1px solid
|
| 1006 |
border-radius: 12px !important;
|
| 1007 |
margin-bottom: 10px !important;
|
| 1008 |
padding: 12px !important;
|
|
@@ -1012,7 +1040,7 @@ body, .gradio-container, .gradio-container .block, .gradio-container .gr-group {
|
|
| 1012 |
align-items: center;
|
| 1013 |
gap: 8px;
|
| 1014 |
margin: 0 0 10px;
|
| 1015 |
-
color:
|
| 1016 |
font-size: 15px;
|
| 1017 |
font-weight: 800;
|
| 1018 |
}
|
|
@@ -1020,7 +1048,7 @@ body, .gradio-container, .gradio-container .block, .gradio-container .gr-group {
|
|
| 1020 |
width: 26px;
|
| 1021 |
height: 26px;
|
| 1022 |
border-radius: 50%;
|
| 1023 |
-
background:
|
| 1024 |
color: #fff !important;
|
| 1025 |
display: inline-flex;
|
| 1026 |
align-items: center;
|
|
@@ -1032,18 +1060,18 @@ body, .gradio-container, .gradio-container .block, .gradio-container .gr-group {
|
|
| 1032 |
|
| 1033 |
.gradio-container input, .gradio-container textarea, .gradio-container select {
|
| 1034 |
background: #fff !important;
|
| 1035 |
-
color:
|
| 1036 |
border: 1px solid #C8D5CE !important;
|
| 1037 |
border-radius: 8px !important;
|
| 1038 |
min-height: 44px !important;
|
| 1039 |
font-size: 15px !important;
|
| 1040 |
}
|
| 1041 |
.gradio-container input:focus, .gradio-container textarea:focus, .gradio-container select:focus {
|
| 1042 |
-
border-color:
|
| 1043 |
box-shadow: 0 0 0 3px rgba(0,168,107,.16) !important;
|
| 1044 |
}
|
| 1045 |
-
.gradio-container label { color:
|
| 1046 |
-
.gradio-container .info { color:
|
| 1047 |
|
| 1048 |
.age-row, .feed-row { gap: 8px !important; }
|
| 1049 |
|
|
@@ -1052,7 +1080,7 @@ body, .gradio-container, .gradio-container .block, .gradio-container .gr-group {
|
|
| 1052 |
min-height: 48px !important;
|
| 1053 |
border: 0 !important;
|
| 1054 |
border-radius: 10px !important;
|
| 1055 |
-
background:
|
| 1056 |
color: #fff !important;
|
| 1057 |
font-size: 15px !important;
|
| 1058 |
font-weight: 800 !important;
|
|
@@ -1061,32 +1089,32 @@ body, .gradio-container, .gradio-container .block, .gradio-container .gr-group {
|
|
| 1061 |
.calculate-btn button:hover { background: #008F5A !important; }
|
| 1062 |
|
| 1063 |
/* RESULTS */
|
| 1064 |
-
.results-shell { width: 100%; box-sizing: border-box; color:
|
| 1065 |
.buy-card {
|
| 1066 |
background: linear-gradient(145deg, #F1FBF6 0%, #FFFFFF 100%);
|
| 1067 |
-
border: 2px solid
|
| 1068 |
border-radius: 14px;
|
| 1069 |
padding: 14px 12px;
|
| 1070 |
text-align: center;
|
| 1071 |
}
|
| 1072 |
-
.eyebrow { color:
|
| 1073 |
-
.buy-label { margin-top: 4px; color:
|
| 1074 |
-
.buy-number { color:
|
| 1075 |
-
.buy-unit { color:
|
| 1076 |
-
.buy-note { margin-top: 6px; color:
|
| 1077 |
-
.result-context { text-align: center; margin: 10px 2px 4px; color:
|
| 1078 |
-
.result-context strong { color:
|
| 1079 |
.plain-answer {
|
| 1080 |
background: #fff;
|
| 1081 |
-
border-left: 4px solid
|
| 1082 |
border-radius: 8px;
|
| 1083 |
padding: 10px 12px;
|
| 1084 |
margin: 8px 0 10px;
|
| 1085 |
font-size: 13px;
|
| 1086 |
line-height: 1.5;
|
| 1087 |
-
color:
|
| 1088 |
}
|
| 1089 |
-
.plain-answer strong { color:
|
| 1090 |
|
| 1091 |
.metric-grid {
|
| 1092 |
display: grid;
|
|
@@ -1096,16 +1124,16 @@ body, .gradio-container, .gradio-container .block, .gradio-container .gr-group {
|
|
| 1096 |
}
|
| 1097 |
.metric-card {
|
| 1098 |
background: #fff;
|
| 1099 |
-
border: 1px solid
|
| 1100 |
border-radius: 10px;
|
| 1101 |
padding: 10px 8px;
|
| 1102 |
}
|
| 1103 |
-
.metric-icon { display: block; color:
|
| 1104 |
-
.metric-label { display: block; color:
|
| 1105 |
-
.metric-card strong { display: block; color:
|
| 1106 |
|
| 1107 |
.result-section { margin: 12px 0; }
|
| 1108 |
-
.section-title { color:
|
| 1109 |
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
|
| 1110 |
.feed-table {
|
| 1111 |
width: 100%;
|
|
@@ -1113,37 +1141,37 @@ body, .gradio-container, .gradio-container .block, .gradio-container .gr-group {
|
|
| 1113 |
border-collapse: separate;
|
| 1114 |
border-spacing: 0;
|
| 1115 |
background: #fff;
|
| 1116 |
-
border: 1px solid
|
| 1117 |
border-radius: 8px;
|
| 1118 |
overflow: hidden;
|
| 1119 |
font-size: 11px;
|
| 1120 |
}
|
| 1121 |
.feed-table th {
|
| 1122 |
-
background:
|
| 1123 |
color: #fff !important;
|
| 1124 |
padding: 8px 6px;
|
| 1125 |
text-align: left;
|
| 1126 |
font-weight: 800;
|
| 1127 |
}
|
| 1128 |
.feed-table th:not(:first-child), .feed-table td:not(:first-child) { text-align: right; }
|
| 1129 |
-
.feed-table td { padding: 8px 6px; border-top: 1px solid
|
| 1130 |
-
.feed-table .muted { color:
|
| 1131 |
-
.feed-table .total-row td { background:
|
| 1132 |
|
| 1133 |
.cost-card {
|
| 1134 |
-
background:
|
| 1135 |
border: 1px solid #EBC34A;
|
| 1136 |
-
border-left: 4px solid
|
| 1137 |
border-radius: 10px;
|
| 1138 |
padding: 10px 12px;
|
| 1139 |
margin: 12px 0;
|
| 1140 |
}
|
| 1141 |
-
.cost-main { color:
|
| 1142 |
-
.cost-note { color:
|
| 1143 |
|
| 1144 |
.performance-grid {
|
| 1145 |
background: #fff;
|
| 1146 |
-
border: 1px solid
|
| 1147 |
border-radius: 8px;
|
| 1148 |
overflow: hidden;
|
| 1149 |
}
|
|
@@ -1152,26 +1180,25 @@ body, .gradio-container, .gradio-container .block, .gradio-container .gr-group {
|
|
| 1152 |
justify-content: space-between;
|
| 1153 |
gap: 10px;
|
| 1154 |
padding: 10px;
|
| 1155 |
-
border-top: 1px solid
|
| 1156 |
font-size: 12px;
|
| 1157 |
}
|
| 1158 |
.performance-grid > div:first-child { border-top: 0; }
|
| 1159 |
-
.performance-grid span { color:
|
| 1160 |
-
.performance-grid strong { color:
|
| 1161 |
|
| 1162 |
.share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
|
| 1163 |
.share-btn {
|
| 1164 |
display: block;
|
| 1165 |
text-align: center;
|
| 1166 |
text-decoration: none !important;
|
| 1167 |
-
background: var(--mint);
|
| 1168 |
-
color: #fff !important;
|
| 1169 |
border-radius: 8px;
|
| 1170 |
padding: 10px 8px;
|
| 1171 |
font-size: 12px;
|
| 1172 |
font-weight: 800;
|
| 1173 |
min-height: 40px;
|
| 1174 |
box-sizing: border-box;
|
|
|
|
| 1175 |
}
|
| 1176 |
.share-btn.whatsapp { background: #25D366 !important; }
|
| 1177 |
.share-btn.email { background: #EA4335 !important; }
|
|
@@ -1184,53 +1211,53 @@ body, .gradio-container, .gradio-container .block, .gradio-container .gr-group {
|
|
| 1184 |
|
| 1185 |
.result-disclaimer {
|
| 1186 |
background: #F1F6F3;
|
| 1187 |
-
border: 1px solid
|
| 1188 |
border-radius: 8px;
|
| 1189 |
padding: 8px 10px;
|
| 1190 |
-
color:
|
| 1191 |
font-size: 10px;
|
| 1192 |
line-height: 1.4;
|
| 1193 |
margin-top: 12px;
|
| 1194 |
}
|
| 1195 |
|
| 1196 |
.benchmark-card {
|
| 1197 |
-
background:
|
| 1198 |
-
border: 1px solid
|
| 1199 |
border-radius: 12px;
|
| 1200 |
padding: 12px;
|
| 1201 |
margin: 12px 0 10px;
|
| 1202 |
}
|
| 1203 |
-
.benchmark-title { color:
|
| 1204 |
.selected-breed-badge {
|
| 1205 |
display: inline-flex;
|
| 1206 |
align-items: center;
|
| 1207 |
padding: 4px 12px;
|
| 1208 |
border-radius: 999px;
|
| 1209 |
-
background:
|
| 1210 |
color: #fff !important;
|
| 1211 |
font-size: 12px;
|
| 1212 |
font-weight: 800;
|
| 1213 |
}
|
| 1214 |
-
.benchmark-help { color:
|
| 1215 |
|
| 1216 |
.question-card {
|
| 1217 |
-
background:
|
| 1218 |
-
border: 1px solid
|
| 1219 |
border-radius: 12px;
|
| 1220 |
padding: 12px;
|
| 1221 |
margin: 12px 0;
|
| 1222 |
}
|
| 1223 |
-
.question-heading { color:
|
| 1224 |
-
.question-help { color:
|
| 1225 |
|
| 1226 |
.admin-login {
|
| 1227 |
background: #fff !important;
|
| 1228 |
-
border: 1px solid
|
| 1229 |
-
border-left: 4px solid
|
| 1230 |
border-radius: 10px !important;
|
| 1231 |
padding: 10px !important;
|
| 1232 |
}
|
| 1233 |
-
.footer-note { color:
|
| 1234 |
|
| 1235 |
.benchmark-table { min-width: 0; font-size: 11px; }
|
| 1236 |
.comparison-table { min-width: 520px; }
|
|
@@ -1251,6 +1278,17 @@ body, .gradio-container, .gradio-container .block, .gradio-container .gr-group {
|
|
| 1251 |
.metric-card { padding: 8px 6px; }
|
| 1252 |
.metric-card strong { font-size: 13px; }
|
| 1253 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1254 |
"""
|
| 1255 |
|
| 1256 |
# ============================================================
|
|
|
|
| 69 |
|
| 70 |
|
| 71 |
# Google Sheets is initialized lazily on first sync.
|
|
|
|
| 72 |
gs_client = None
|
| 73 |
gs_sheet = None
|
| 74 |
gs_initialized = False
|
|
|
|
| 86 |
|
| 87 |
|
| 88 |
def sync_to_google_sheets(email, country, currency, breed, action="lead"):
|
|
|
|
| 89 |
client, sheet = get_google_sheets()
|
| 90 |
if not client or not sheet:
|
| 91 |
return False
|
|
|
|
| 771 |
|
| 772 |
|
| 773 |
# ============================================================
|
| 774 |
+
# FEED CALCULATION
|
| 775 |
# ============================================================
|
| 776 |
|
| 777 |
def calculate_feed(birds, weeks, days, bag_size, price_per_bag, email, country_code, breed, request: gr.Request):
|
|
|
|
| 924 |
|
| 925 |
|
| 926 |
# ============================================================
|
| 927 |
+
# CSS - COMPLETE FIX: NO FLOATER, FORCE LIGHT THEME
|
| 928 |
# ============================================================
|
| 929 |
|
| 930 |
CSS = """
|
| 931 |
+
/* ============================================================
|
| 932 |
+
FORCE LIGHT THEME - NO DARK MODE
|
| 933 |
+
============================================================ */
|
| 934 |
:root {
|
| 935 |
+
color-scheme: light !important;
|
| 936 |
--app-bg-main: #f4f7f5;
|
| 937 |
--app-card-surface: #ffffff;
|
| 938 |
--brand-primary-mint: #00a86b;
|
|
|
|
| 940 |
--brand-accent-yellow: #ffb800;
|
| 941 |
--ui-border-muted: #d6e0db;
|
| 942 |
--text-helper: #5a6e65;
|
| 943 |
+
--mint: #00a86b;
|
| 944 |
+
--mint-dark: #0b3022;
|
| 945 |
--mint-soft: #eaf8f1;
|
| 946 |
+
--yellow: #ffb800;
|
| 947 |
--yellow-soft: #fff7db;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 948 |
}
|
| 949 |
|
| 950 |
+
/* Force light on everything */
|
| 951 |
+
html, body, .gradio-container, .gradio-container * {
|
| 952 |
+
color-scheme: light !important;
|
| 953 |
+
background-color: #f4f7f5 !important;
|
| 954 |
+
color: #0b3022 !important;
|
| 955 |
+
}
|
| 956 |
+
|
| 957 |
+
/* Remove Hugging Face Space header/GoogleCalc floater */
|
| 958 |
+
#huggingface-space-header,
|
| 959 |
+
#huggingface-space-header *,
|
| 960 |
+
.hf-header,
|
| 961 |
+
.hf-header *,
|
| 962 |
+
[data-testid="header"],
|
| 963 |
+
[data-testid="header"] *,
|
| 964 |
+
.gradio-header,
|
| 965 |
+
.gradio-header *,
|
| 966 |
+
.space-header,
|
| 967 |
+
.space-header *,
|
| 968 |
+
.duplicated-from-banner,
|
| 969 |
+
.duplicated-from-banner * {
|
| 970 |
+
display: none !important;
|
| 971 |
+
opacity: 0 !important;
|
| 972 |
+
height: 0 !important;
|
| 973 |
+
min-height: 0 !important;
|
| 974 |
+
max-height: 0 !important;
|
| 975 |
padding: 0 !important;
|
| 976 |
+
margin: 0 !important;
|
| 977 |
+
border: 0 !important;
|
| 978 |
+
pointer-events: none !important;
|
| 979 |
+
visibility: hidden !important;
|
| 980 |
+
}
|
| 981 |
+
|
| 982 |
+
/* Kill any dark mode */
|
| 983 |
+
.dark, .dark *,
|
| 984 |
+
[data-theme="dark"], [data-theme="dark"] *,
|
| 985 |
+
.dark-mode, .dark-mode * {
|
| 986 |
+
background-color: #f4f7f5 !important;
|
| 987 |
+
color: #0b3022 !important;
|
| 988 |
+
color-scheme: light !important;
|
| 989 |
}
|
| 990 |
|
| 991 |
body, .gradio-container, .gradio-container .block, .gradio-container .gr-group {
|
| 992 |
+
background: #f4f7f5 !important;
|
| 993 |
+
color: #0b3022 !important;
|
| 994 |
+
color-scheme: light !important;
|
| 995 |
}
|
| 996 |
|
| 997 |
.gradio-container {
|
|
|
|
| 1000 |
margin: 0 auto !important;
|
| 1001 |
padding: 0 10px 32px !important;
|
| 1002 |
box-sizing: border-box !important;
|
| 1003 |
+
background: #f4f7f5 !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1004 |
}
|
| 1005 |
|
| 1006 |
/* HEADER */
|
| 1007 |
.app-header {
|
| 1008 |
+
background: #0b3022 !important;
|
| 1009 |
+
color: #fff !important;
|
| 1010 |
border-radius: 0 0 16px 16px;
|
| 1011 |
padding: 14px 14px 16px;
|
| 1012 |
margin: 0 -10px 12px;
|
|
|
|
| 1017 |
.app-header p { color: rgba(255,255,255,.88) !important; margin: 4px 0 0 36px; font-size: 13px; line-height: 1.4; }
|
| 1018 |
|
| 1019 |
.status-card {
|
| 1020 |
+
background: #ffffff !important;
|
| 1021 |
+
border: 1px solid #d6e0db;
|
| 1022 |
+
border-left: 4px solid #00a86b;
|
| 1023 |
border-radius: 10px;
|
| 1024 |
padding: 10px 12px;
|
| 1025 |
margin-bottom: 10px;
|
| 1026 |
font-size: 12px;
|
| 1027 |
+
color: #0b3022 !important;
|
| 1028 |
}
|
| 1029 |
+
.status-card strong { color: #0b3022 !important; }
|
| 1030 |
|
| 1031 |
.form-section {
|
| 1032 |
+
background: #ffffff !important;
|
| 1033 |
+
border: 1px solid #d6e0db !important;
|
| 1034 |
border-radius: 12px !important;
|
| 1035 |
margin-bottom: 10px !important;
|
| 1036 |
padding: 12px !important;
|
|
|
|
| 1040 |
align-items: center;
|
| 1041 |
gap: 8px;
|
| 1042 |
margin: 0 0 10px;
|
| 1043 |
+
color: #0b3022 !important;
|
| 1044 |
font-size: 15px;
|
| 1045 |
font-weight: 800;
|
| 1046 |
}
|
|
|
|
| 1048 |
width: 26px;
|
| 1049 |
height: 26px;
|
| 1050 |
border-radius: 50%;
|
| 1051 |
+
background: #0b3022;
|
| 1052 |
color: #fff !important;
|
| 1053 |
display: inline-flex;
|
| 1054 |
align-items: center;
|
|
|
|
| 1060 |
|
| 1061 |
.gradio-container input, .gradio-container textarea, .gradio-container select {
|
| 1062 |
background: #fff !important;
|
| 1063 |
+
color: #0b3022 !important;
|
| 1064 |
border: 1px solid #C8D5CE !important;
|
| 1065 |
border-radius: 8px !important;
|
| 1066 |
min-height: 44px !important;
|
| 1067 |
font-size: 15px !important;
|
| 1068 |
}
|
| 1069 |
.gradio-container input:focus, .gradio-container textarea:focus, .gradio-container select:focus {
|
| 1070 |
+
border-color: #00a86b !important;
|
| 1071 |
box-shadow: 0 0 0 3px rgba(0,168,107,.16) !important;
|
| 1072 |
}
|
| 1073 |
+
.gradio-container label { color: #0b3022 !important; font-weight: 650 !important; }
|
| 1074 |
+
.gradio-container .info { color: #5a6e65 !important; }
|
| 1075 |
|
| 1076 |
.age-row, .feed-row { gap: 8px !important; }
|
| 1077 |
|
|
|
|
| 1080 |
min-height: 48px !important;
|
| 1081 |
border: 0 !important;
|
| 1082 |
border-radius: 10px !important;
|
| 1083 |
+
background: #00a86b !important;
|
| 1084 |
color: #fff !important;
|
| 1085 |
font-size: 15px !important;
|
| 1086 |
font-weight: 800 !important;
|
|
|
|
| 1089 |
.calculate-btn button:hover { background: #008F5A !important; }
|
| 1090 |
|
| 1091 |
/* RESULTS */
|
| 1092 |
+
.results-shell { width: 100%; box-sizing: border-box; color: #0b3022; }
|
| 1093 |
.buy-card {
|
| 1094 |
background: linear-gradient(145deg, #F1FBF6 0%, #FFFFFF 100%);
|
| 1095 |
+
border: 2px solid #00a86b;
|
| 1096 |
border-radius: 14px;
|
| 1097 |
padding: 14px 12px;
|
| 1098 |
text-align: center;
|
| 1099 |
}
|
| 1100 |
+
.eyebrow { color: #00a86b !important; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
|
| 1101 |
+
.buy-label { margin-top: 4px; color: #0b3022 !important; font-size: 12px; font-weight: 800; }
|
| 1102 |
+
.buy-number { color: #00a86b !important; font-size: clamp(50px, 15vw, 76px); font-weight: 900; line-height: .9; }
|
| 1103 |
+
.buy-unit { color: #0b3022 !important; font-size: 18px; font-weight: 900; letter-spacing: .06em; }
|
| 1104 |
+
.buy-note { margin-top: 6px; color: #5a6e65 !important; font-size: 11px; }
|
| 1105 |
+
.result-context { text-align: center; margin: 10px 2px 4px; color: #5a6e65 !important; font-size: 12px; }
|
| 1106 |
+
.result-context strong { color: #0b3022 !important; }
|
| 1107 |
.plain-answer {
|
| 1108 |
background: #fff;
|
| 1109 |
+
border-left: 4px solid #ffb800;
|
| 1110 |
border-radius: 8px;
|
| 1111 |
padding: 10px 12px;
|
| 1112 |
margin: 8px 0 10px;
|
| 1113 |
font-size: 13px;
|
| 1114 |
line-height: 1.5;
|
| 1115 |
+
color: #0b3022 !important;
|
| 1116 |
}
|
| 1117 |
+
.plain-answer strong { color: #0b3022 !important; }
|
| 1118 |
|
| 1119 |
.metric-grid {
|
| 1120 |
display: grid;
|
|
|
|
| 1124 |
}
|
| 1125 |
.metric-card {
|
| 1126 |
background: #fff;
|
| 1127 |
+
border: 1px solid #d6e0db;
|
| 1128 |
border-radius: 10px;
|
| 1129 |
padding: 10px 8px;
|
| 1130 |
}
|
| 1131 |
+
.metric-icon { display: block; color: #00a86b !important; font-size: 16px; font-weight: 900; }
|
| 1132 |
+
.metric-label { display: block; color: #5a6e65 !important; font-size: 10px; margin: 2px 0 3px; }
|
| 1133 |
+
.metric-card strong { display: block; color: #0b3022 !important; font-size: 15px; line-height: 1.2; }
|
| 1134 |
|
| 1135 |
.result-section { margin: 12px 0; }
|
| 1136 |
+
.section-title { color: #0b3022 !important; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
|
| 1137 |
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
|
| 1138 |
.feed-table {
|
| 1139 |
width: 100%;
|
|
|
|
| 1141 |
border-collapse: separate;
|
| 1142 |
border-spacing: 0;
|
| 1143 |
background: #fff;
|
| 1144 |
+
border: 1px solid #d6e0db;
|
| 1145 |
border-radius: 8px;
|
| 1146 |
overflow: hidden;
|
| 1147 |
font-size: 11px;
|
| 1148 |
}
|
| 1149 |
.feed-table th {
|
| 1150 |
+
background: #00a86b !important;
|
| 1151 |
color: #fff !important;
|
| 1152 |
padding: 8px 6px;
|
| 1153 |
text-align: left;
|
| 1154 |
font-weight: 800;
|
| 1155 |
}
|
| 1156 |
.feed-table th:not(:first-child), .feed-table td:not(:first-child) { text-align: right; }
|
| 1157 |
+
.feed-table td { padding: 8px 6px; border-top: 1px solid #d6e0db; color: #0b3022 !important; white-space: nowrap; }
|
| 1158 |
+
.feed-table .muted { color: #5a6e65 !important; font-size: 9px; }
|
| 1159 |
+
.feed-table .total-row td { background: #eaf8f1 !important; font-weight: 900 !important; }
|
| 1160 |
|
| 1161 |
.cost-card {
|
| 1162 |
+
background: #fff7db !important;
|
| 1163 |
border: 1px solid #EBC34A;
|
| 1164 |
+
border-left: 4px solid #ffb800;
|
| 1165 |
border-radius: 10px;
|
| 1166 |
padding: 10px 12px;
|
| 1167 |
margin: 12px 0;
|
| 1168 |
}
|
| 1169 |
+
.cost-main { color: #0b3022 !important; font-size: clamp(24px, 7vw, 34px); line-height: 1.1; font-weight: 900; }
|
| 1170 |
+
.cost-note { color: #5a6e65 !important; font-size: 10px; margin-top: 4px; }
|
| 1171 |
|
| 1172 |
.performance-grid {
|
| 1173 |
background: #fff;
|
| 1174 |
+
border: 1px solid #d6e0db;
|
| 1175 |
border-radius: 8px;
|
| 1176 |
overflow: hidden;
|
| 1177 |
}
|
|
|
|
| 1180 |
justify-content: space-between;
|
| 1181 |
gap: 10px;
|
| 1182 |
padding: 10px;
|
| 1183 |
+
border-top: 1px solid #d6e0db;
|
| 1184 |
font-size: 12px;
|
| 1185 |
}
|
| 1186 |
.performance-grid > div:first-child { border-top: 0; }
|
| 1187 |
+
.performance-grid span { color: #5a6e65 !important; }
|
| 1188 |
+
.performance-grid strong { color: #00a86b !important; white-space: nowrap; }
|
| 1189 |
|
| 1190 |
.share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
|
| 1191 |
.share-btn {
|
| 1192 |
display: block;
|
| 1193 |
text-align: center;
|
| 1194 |
text-decoration: none !important;
|
|
|
|
|
|
|
| 1195 |
border-radius: 8px;
|
| 1196 |
padding: 10px 8px;
|
| 1197 |
font-size: 12px;
|
| 1198 |
font-weight: 800;
|
| 1199 |
min-height: 40px;
|
| 1200 |
box-sizing: border-box;
|
| 1201 |
+
color: #fff !important;
|
| 1202 |
}
|
| 1203 |
.share-btn.whatsapp { background: #25D366 !important; }
|
| 1204 |
.share-btn.email { background: #EA4335 !important; }
|
|
|
|
| 1211 |
|
| 1212 |
.result-disclaimer {
|
| 1213 |
background: #F1F6F3;
|
| 1214 |
+
border: 1px solid #d6e0db;
|
| 1215 |
border-radius: 8px;
|
| 1216 |
padding: 8px 10px;
|
| 1217 |
+
color: #5a6e65 !important;
|
| 1218 |
font-size: 10px;
|
| 1219 |
line-height: 1.4;
|
| 1220 |
margin-top: 12px;
|
| 1221 |
}
|
| 1222 |
|
| 1223 |
.benchmark-card {
|
| 1224 |
+
background: #ffffff !important;
|
| 1225 |
+
border: 1px solid #d6e0db;
|
| 1226 |
border-radius: 12px;
|
| 1227 |
padding: 12px;
|
| 1228 |
margin: 12px 0 10px;
|
| 1229 |
}
|
| 1230 |
+
.benchmark-title { color: #0b3022 !important; font-size: 15px; font-weight: 850; }
|
| 1231 |
.selected-breed-badge {
|
| 1232 |
display: inline-flex;
|
| 1233 |
align-items: center;
|
| 1234 |
padding: 4px 12px;
|
| 1235 |
border-radius: 999px;
|
| 1236 |
+
background: #0b3022;
|
| 1237 |
color: #fff !important;
|
| 1238 |
font-size: 12px;
|
| 1239 |
font-weight: 800;
|
| 1240 |
}
|
| 1241 |
+
.benchmark-help { color: #5a6e65 !important; font-size: 11px; margin: 6px 0 8px; }
|
| 1242 |
|
| 1243 |
.question-card {
|
| 1244 |
+
background: #ffffff !important;
|
| 1245 |
+
border: 1px solid #d6e0db;
|
| 1246 |
border-radius: 12px;
|
| 1247 |
padding: 12px;
|
| 1248 |
margin: 12px 0;
|
| 1249 |
}
|
| 1250 |
+
.question-heading { color: #0b3022 !important; font-size: 15px; font-weight: 850; }
|
| 1251 |
+
.question-help { color: #5a6e65 !important; font-size: 11px; margin-bottom: 8px; }
|
| 1252 |
|
| 1253 |
.admin-login {
|
| 1254 |
background: #fff !important;
|
| 1255 |
+
border: 1px solid #d6e0db !important;
|
| 1256 |
+
border-left: 4px solid #ffb800 !important;
|
| 1257 |
border-radius: 10px !important;
|
| 1258 |
padding: 10px !important;
|
| 1259 |
}
|
| 1260 |
+
.footer-note { color: #5a6e65 !important; font-size: 11px; line-height: 1.5; }
|
| 1261 |
|
| 1262 |
.benchmark-table { min-width: 0; font-size: 11px; }
|
| 1263 |
.comparison-table { min-width: 520px; }
|
|
|
|
| 1278 |
.metric-card { padding: 8px 6px; }
|
| 1279 |
.metric-card strong { font-size: 13px; }
|
| 1280 |
}
|
| 1281 |
+
|
| 1282 |
+
/* Force all backgrounds to light */
|
| 1283 |
+
* {
|
| 1284 |
+
background-color: transparent !important;
|
| 1285 |
+
}
|
| 1286 |
+
body, .gradio-container, .gradio-container .block, .gradio-container .gr-group {
|
| 1287 |
+
background: #f4f7f5 !important;
|
| 1288 |
+
}
|
| 1289 |
+
.form-section, .benchmark-card, .question-card, .status-card, .admin-login {
|
| 1290 |
+
background: #ffffff !important;
|
| 1291 |
+
}
|
| 1292 |
"""
|
| 1293 |
|
| 1294 |
# ============================================================
|