|
|
@@ -480,3 +480,190 @@ textarea::placeholder {
|
|
|
transform: scale(1);
|
|
|
}
|
|
|
|
|
|
+/* --------------------------------- */
|
|
|
+/* Food Search Component Styles */
|
|
|
+/* --------------------------------- */
|
|
|
+
|
|
|
+.search-module {
|
|
|
+ padding: 10px 24px;
|
|
|
+ background: rgba(22, 27, 34, 0.4);
|
|
|
+ border-bottom: 1px solid var(--border-color);
|
|
|
+ position: relative;
|
|
|
+ z-index: 10;
|
|
|
+}
|
|
|
+
|
|
|
+.search-input-wrapper {
|
|
|
+ position: relative;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ background: rgba(13, 17, 23, 0.8);
|
|
|
+ border: 1px solid var(--border-color);
|
|
|
+ border-radius: 12px;
|
|
|
+ padding: 8px 16px;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+ box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
|
|
|
+}
|
|
|
+
|
|
|
+.search-input-wrapper:focus-within {
|
|
|
+ border-color: rgba(46, 160, 67, 0.6);
|
|
|
+ box-shadow: 0 0 0 3px rgba(46, 160, 67, 0.15), inset 0 2px 4px rgba(0,0,0,0.1);
|
|
|
+}
|
|
|
+
|
|
|
+.search-icon {
|
|
|
+ color: var(--text-muted);
|
|
|
+ margin-right: 12px;
|
|
|
+}
|
|
|
+
|
|
|
+#food-search-input {
|
|
|
+ flex: 1;
|
|
|
+ background: transparent;
|
|
|
+ border: none;
|
|
|
+ color: var(--text-main);
|
|
|
+ font-size: 0.95rem;
|
|
|
+ outline: none;
|
|
|
+ font-family: inherit;
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+
|
|
|
+#clear-search-btn {
|
|
|
+ background: transparent;
|
|
|
+ border: none;
|
|
|
+ color: var(--text-muted);
|
|
|
+ cursor: pointer;
|
|
|
+ border-radius: 50%;
|
|
|
+ padding: 4px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ transition: all 0.2s;
|
|
|
+}
|
|
|
+
|
|
|
+#clear-search-btn:hover {
|
|
|
+ background: rgba(255, 255, 255, 0.1);
|
|
|
+ color: #f85149;
|
|
|
+}
|
|
|
+
|
|
|
+.search-results-dropdown {
|
|
|
+ position: absolute;
|
|
|
+ top: 100%;
|
|
|
+ left: 24px;
|
|
|
+ right: 24px;
|
|
|
+ margin-top: 8px;
|
|
|
+ background: rgba(22, 27, 34, 0.85);
|
|
|
+ backdrop-filter: blur(20px);
|
|
|
+ -webkit-backdrop-filter: blur(20px);
|
|
|
+ border: 1px solid var(--border-color);
|
|
|
+ border-radius: 12px;
|
|
|
+ box-shadow: 0 15px 35px rgba(0,0,0,0.4);
|
|
|
+ max-height: 350px;
|
|
|
+ overflow-y: auto;
|
|
|
+ z-index: 100;
|
|
|
+ opacity: 0;
|
|
|
+ transform: translateY(-10px);
|
|
|
+ animation: dropdownFadeIn 0.2s forwards;
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes dropdownFadeIn {
|
|
|
+ to { opacity: 1; transform: translateY(0); }
|
|
|
+}
|
|
|
+
|
|
|
+.search-results-dropdown::-webkit-scrollbar {
|
|
|
+ width: 6px;
|
|
|
+}
|
|
|
+.search-results-dropdown::-webkit-scrollbar-thumb {
|
|
|
+ background: rgba(255,255,255,0.2);
|
|
|
+ border-radius: 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.food-item {
|
|
|
+ padding: 14px 18px;
|
|
|
+ border-bottom: 1px solid rgba(255,255,255,0.05);
|
|
|
+ cursor: pointer;
|
|
|
+ transition: background 0.2s, padding-left 0.2s;
|
|
|
+}
|
|
|
+
|
|
|
+.food-item:last-child {
|
|
|
+ border-bottom: none;
|
|
|
+}
|
|
|
+
|
|
|
+.food-item:hover {
|
|
|
+ background: rgba(255,255,255,0.05);
|
|
|
+ padding-left: 22px;
|
|
|
+}
|
|
|
+
|
|
|
+.food-item-header {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ margin-bottom: 8px;
|
|
|
+}
|
|
|
+
|
|
|
+.food-name {
|
|
|
+ font-weight: 600;
|
|
|
+ color: #e6edf3;
|
|
|
+ font-size: 1rem;
|
|
|
+}
|
|
|
+
|
|
|
+.food-badge {
|
|
|
+ background: rgba(46, 160, 67, 0.15);
|
|
|
+ color: #3fb950;
|
|
|
+ border: 1px solid rgba(46, 160, 67, 0.3);
|
|
|
+ padding: 2px 8px;
|
|
|
+ border-radius: 12px;
|
|
|
+ font-size: 0.7rem;
|
|
|
+ font-weight: 600;
|
|
|
+ text-transform: uppercase;
|
|
|
+ letter-spacing: 0.5px;
|
|
|
+}
|
|
|
+
|
|
|
+.food-macros {
|
|
|
+ display: flex;
|
|
|
+ gap: 15px;
|
|
|
+ font-size: 0.8rem;
|
|
|
+ color: var(--text-muted);
|
|
|
+}
|
|
|
+
|
|
|
+.macro-tag span {
|
|
|
+ color: #c9d1d9;
|
|
|
+ font-weight: 500;
|
|
|
+}
|
|
|
+
|
|
|
+.search-loading, .search-empty {
|
|
|
+ padding: 20px;
|
|
|
+ text-align: center;
|
|
|
+ color: var(--text-muted);
|
|
|
+ font-size: 0.9rem;
|
|
|
+ background: transparent;
|
|
|
+}
|
|
|
+
|
|
|
+/* Mobile Responsiveness */
|
|
|
+@media (max-width: 600px) {
|
|
|
+ body {
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
+ .app-container {
|
|
|
+ height: 100vh;
|
|
|
+ border-radius: 0;
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+ .chat-header {
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: flex-start;
|
|
|
+ gap: 10px;
|
|
|
+ }
|
|
|
+ .actions {
|
|
|
+ width: 100%;
|
|
|
+ justify-content: space-between;
|
|
|
+ }
|
|
|
+ .search-module {
|
|
|
+ padding: 10px 12px;
|
|
|
+ }
|
|
|
+ .search-results-dropdown {
|
|
|
+ left: 12px;
|
|
|
+ right: 12px;
|
|
|
+ }
|
|
|
+ .message {
|
|
|
+ max-width: 95%;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|