| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067 |
- :root {
- --bg-color: #0d1117;
- --panel-bg: rgba(22, 27, 34, 0.7);
- --border-color: rgba(48, 54, 61, 0.8);
- --text-main: #c9d1d9;
- --text-muted: #8b949e;
- --primary-gradient: linear-gradient(135deg, #2ea043 0%, #238636 100%);
- --primary-color: #2ea043;
- --user-msg-bg: linear-gradient(135deg, #1f6feb 0%, #164e63 100%);
- --bot-msg-bg: rgba(33, 38, 45, 0.8);
- --glass-blur: blur(16px);
- }
- * {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- }
- body {
- font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
- background-color: var(--bg-color);
- background-image: radial-gradient(circle at top right, rgba(46, 160, 67, 0.15), transparent 400px),
- radial-gradient(circle at bottom left, rgba(31, 111, 235, 0.1), transparent 400px);
- color: var(--text-main);
- display: flex;
- justify-content: center;
- align-items: center;
- height: 100vh;
- padding: 20px;
- overflow: hidden;
- }
- .app-container {
- width: 100%;
- max-width: 900px;
- height: 90vh;
- background: var(--panel-bg);
- backdrop-filter: var(--glass-blur);
- -webkit-backdrop-filter: var(--glass-blur);
- border: 1px solid var(--border-color);
- border-radius: 20px;
- display: flex;
- flex-direction: column;
- box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
- overflow: hidden;
- }
- .chat-header {
- padding: 16px 24px;
- border-bottom: 1px solid var(--border-color);
- display: flex;
- justify-content: space-between;
- align-items: center;
- background: rgba(13, 17, 23, 0.6);
- }
- .brand {
- display: flex;
- align-items: center;
- gap: 12px;
- }
- .logo {
- font-size: 28px;
- background: var(--primary-gradient);
- -webkit-background-clip: text;
- background-clip: text;
- }
- h1 {
- font-size: 1.1rem;
- font-weight: 600;
- color: #f0f6fc;
- }
- .status-indicator {
- display: inline-block;
- width: 8px;
- height: 8px;
- background-color: #2ea043;
- border-radius: 50%;
- margin-right: 6px;
- box-shadow: 0 0 10px #2ea043;
- }
- .status-text {
- font-size: 0.75rem;
- color: var(--text-muted);
- }
- #clear-chat {
- background: none;
- border: none;
- color: var(--text-muted);
- cursor: pointer;
- transition: color 0.2s ease;
- padding: 8px;
- border-radius: 8px;
- }
- #clear-chat:hover {
- color: #f85149;
- background: rgba(248, 81, 73, 0.1);
- }
- .chat-container {
- flex: 1;
- padding: 24px;
- overflow-y: auto;
- display: flex;
- flex-direction: column;
- gap: 20px;
- scroll-behavior: smooth;
- }
- .chat-container::-webkit-scrollbar {
- width: 6px;
- }
- .chat-container::-webkit-scrollbar-thumb {
- background: var(--border-color);
- border-radius: 10px;
- }
- .message {
- display: flex;
- gap: 16px;
- max-width: 85%;
- animation: fadeIn 0.3s ease forwards;
- opacity: 0;
- transform: translateY(10px);
- }
- @keyframes fadeIn {
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
- .message.user {
- align-self: flex-end;
- flex-direction: row-reverse;
- }
- .avatar {
- width: 36px;
- height: 36px;
- border-radius: 10px;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 20px;
- flex-shrink: 0;
- background: rgba(255, 255, 255, 0.1);
- }
- .message.user .avatar {
- background: var(--user-msg-bg);
- }
- .message.system .avatar {
- background: var(--bot-msg-bg);
- border: 1px solid var(--border-color);
- }
- .message-content {
- padding: 14px 18px;
- border-radius: 18px;
- line-height: 1.6;
- font-size: 0.95rem;
- white-space: pre-wrap;
- word-break: break-word;
- }
- .message.user .message-content {
- background: var(--user-msg-bg);
- color: #fff;
- border-top-right-radius: 4px;
- }
- .message.system .message-content {
- background: var(--bot-msg-bg);
- border: 1px solid var(--border-color);
- border-top-left-radius: 4px;
- box-shadow: 0 4px 12px rgba(0,0,0,0.1);
- }
- .chat-input-area {
- padding: 20px 24px;
- background: rgba(13, 17, 23, 0.8);
- border-top: 1px solid var(--border-color);
- }
- .input-form {
- display: flex;
- gap: 12px;
- align-items: flex-end;
- background: var(--bg-color);
- border: 1px solid var(--border-color);
- border-radius: 16px;
- padding: 8px 16px;
- transition: border-color 0.2s, box-shadow 0.2s;
- }
- .input-form:focus-within {
- border-color: rgba(46, 160, 67, 0.5);
- box-shadow: 0 0 0 2px rgba(46, 160, 67, 0.1);
- }
- textarea {
- flex: 1;
- background: none;
- border: none;
- color: var(--text-main);
- font-family: inherit;
- font-size: 1rem;
- resize: none;
- max-height: 150px;
- padding: 10px 0;
- outline: none;
- }
- textarea::placeholder {
- color: var(--text-muted);
- }
- .send-btn {
- background: var(--primary-color);
- border: none;
- border-radius: 12px;
- width: 40px;
- height: 40px;
- display: flex;
- justify-content: center;
- align-items: center;
- color: #fff;
- cursor: pointer;
- transition: transform 0.2s, background 0.2s;
- flex-shrink: 0;
- margin-bottom: 2px;
- }
- .send-btn:hover {
- background: #3fb950;
- transform: scale(1.05);
- }
- .send-btn:active {
- transform: scale(0.95);
- }
- .send-btn:disabled {
- background: var(--border-color);
- color: var(--text-muted);
- cursor: not-allowed;
- transform: none;
- }
- .footer-note {
- text-align: center;
- font-size: 0.7rem;
- color: var(--text-muted);
- margin-top: 12px;
- }
- .typing-indicator {
- display: flex;
- gap: 4px;
- padding: 4px 8px;
- align-items: center;
- }
- .typing-dot {
- width: 6px;
- height: 6px;
- background: var(--text-muted);
- border-radius: 50%;
- animation: typing 1.4s infinite ease-in-out both;
- }
- .typing-dot:nth-child(1) { animation-delay: -0.32s; }
- .typing-dot:nth-child(2) { animation-delay: -0.16s; }
- .typing-dot:nth-child(3) { animation-delay: 0s; }
- @keyframes typing {
- 0%, 80%, 100% { transform: scale(0); }
- 40% { transform: scale(1); }
- }
- /* Modal Styles */
- .nav-btn {
- background: rgba(255, 255, 255, 0.1);
- border: 1px solid var(--border-color);
- color: var(--text-main);
- padding: 6px 12px;
- border-radius: 8px;
- cursor: pointer;
- margin-right: 10px;
- font-size: 0.85rem;
- transition: background 0.2s;
- }
- .nav-btn:hover {
- background: rgba(255, 255, 255, 0.2);
- }
- .modal-overlay {
- position: fixed;
- top: 0; left: 0; right: 0; bottom: 0;
- background: rgba(0, 0, 0, 0.6);
- backdrop-filter: blur(8px);
- -webkit-backdrop-filter: blur(8px);
- display: flex;
- justify-content: center;
- align-items: center;
- z-index: 1000;
- opacity: 1;
- transition: opacity 0.3s ease;
- }
- .modal-overlay.hidden {
- opacity: 0;
- pointer-events: none;
- }
- .modal-content {
- background: var(--panel-bg);
- border: 1px solid var(--border-color);
- border-radius: 16px;
- padding: 30px;
- width: 350px;
- position: relative;
- box-shadow: 0 10px 30px rgba(0,0,0,0.5);
- transform: translateY(0);
- transition: transform 0.3s ease;
- }
- .modal-overlay.hidden .modal-content {
- transform: translateY(-20px);
- }
- .close-modal {
- position: absolute;
- top: 15px;
- right: 20px;
- background: none;
- border: none;
- color: var(--text-muted);
- font-size: 1.5rem;
- cursor: pointer;
- }
- .close-modal:hover {
- color: var(--text-main);
- }
- .modal-content h2 {
- margin-top: 0;
- margin-bottom: 20px;
- font-size: 1.3rem;
- text-align: center;
- }
- .input-group {
- margin-bottom: 15px;
- }
- .input-group label {
- display: block;
- margin-bottom: 5px;
- font-size: 0.85rem;
- color: var(--text-muted);
- }
- .input-group input {
- width: 100%;
- padding: 10px;
- background: rgba(0, 0, 0, 0.2);
- border: 1px solid var(--border-color);
- border-radius: 8px;
- color: var(--text-main);
- font-size: 0.95rem;
- outline: none;
- transition: border-color 0.2s;
- }
- .input-group input:focus {
- border-color: var(--primary-color);
- }
- .error-text {
- color: #f85149;
- font-size: 0.85rem;
- margin-bottom: 10px;
- text-align: center;
- min-height: 18px;
- }
- .success-text {
- color: #3fb950;
- font-size: 0.85rem;
- margin-bottom: 10px;
- text-align: center;
- min-height: 18px;
- }
- .primary-btn {
- width: 100%;
- padding: 10px;
- background: var(--primary-gradient);
- border: none;
- border-radius: 8px;
- color: #fff;
- font-size: 1rem;
- cursor: pointer;
- transition: opacity 0.2s;
- }
- .primary-btn:hover {
- opacity: 0.9;
- }
- /* Authentication Screen Gateway specific styles */
- .auth-container {
- width: 100%;
- max-width: 400px;
- background: var(--panel-bg);
- backdrop-filter: var(--glass-blur);
- -webkit-backdrop-filter: var(--glass-blur);
- border: 1px solid var(--border-color);
- border-radius: 20px;
- padding: 40px;
- box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
- transition: opacity 0.5s ease, transform 0.5s ease;
- }
- .auth-header {
- text-align: center;
- margin-bottom: 30px;
- }
- .auth-header h2 {
- font-size: 1.5rem;
- color: #f0f6fc;
- margin-bottom: 8px;
- }
- .auth-header p {
- font-size: 0.9rem;
- color: var(--text-muted);
- }
- .auth-toggle {
- text-align: center;
- font-size: 0.85rem;
- color: var(--text-muted);
- margin-top: 20px;
- }
- .auth-toggle a {
- color: var(--primary-color);
- text-decoration: none;
- font-weight: 500;
- transition: color 0.2s;
- }
- .auth-toggle a:hover {
- color: #3fb950;
- text-decoration: underline;
- }
- /* Animations for transitioning out the auth screen */
- .fade-out {
- opacity: 0;
- transform: scale(0.95);
- pointer-events: none;
- }
- .fade-in {
- opacity: 1;
- 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;
- }
- /* --- Expandable Details (Task #40) --- */
- .food-item-footer {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 10px;
- }
- .details-btn {
- background: none;
- border: 1px solid var(--border);
- border-radius: 4px;
- color: var(--primary);
- font-size: 0.75rem;
- padding: 2px 8px;
- cursor: pointer;
- transition: all 0.2s;
- }
- .details-btn:hover {
- background: rgba(255, 255, 255, 0.05);
- border-color: var(--primary);
- }
- .details-panel {
- max-height: 0;
- overflow: hidden;
- transition: max-height 0.3s ease-out, margin-top 0.3s;
- }
- .details-panel.expanded {
- max-height: 500px; /* Large enough for content */
- margin-top: 12px;
- border-top: 1px solid rgba(255, 255, 255, 0.05);
- padding-top: 12px;
- }
- .nutrient-section {
- margin-bottom: 12px;
- }
- .nutrient-section-title {
- font-size: 0.7rem;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- color: var(--text-muted);
- margin-bottom: 6px;
- font-weight: 700;
- }
- .nutrient-grid {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: 8px;
- }
- .nutrient-item {
- display: flex;
- justify-content: space-between;
- font-size: 0.8rem;
- padding: 4px 0;
- }
- .nutrient-label {
- color: var(--text-muted);
- }
- .nutrient-value {
- font-weight: 500;
- color: var(--text);
- }
- .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%;
- }
- }
- /* =============================================
- Macro Dashboard (US-07 Task #38)
- ============================================= */
- .macro-dashboard {
- display: flex;
- gap: 12px;
- padding: 12px 20px;
- background: rgba(255, 255, 255, 0.02);
- border-bottom: 1px solid var(--border);
- flex-wrap: wrap;
- animation: fadeIn 0.4s ease;
- }
- .macro-card {
- flex: 1;
- min-width: 100px;
- background: rgba(255, 255, 255, 0.05);
- border: 1px solid var(--border);
- border-radius: 12px;
- padding: 12px 16px;
- text-align: center;
- backdrop-filter: blur(6px);
- -webkit-backdrop-filter: blur(6px);
- transition: transform 0.2s ease, border-color 0.2s ease;
- }
- .macro-card:hover {
- transform: translateY(-2px);
- border-color: rgba(255, 255, 255, 0.25);
- }
- .macro-label {
- font-size: 0.75rem;
- color: var(--text-muted);
- text-transform: uppercase;
- letter-spacing: 1.2px;
- margin-bottom: 6px;
- font-weight: 600;
- }
- .macro-value {
- font-size: 1.4rem;
- font-weight: 700;
- transition: opacity 0.3s ease;
- }
- /* Color-coded per macro type */
- #macro-calories .macro-value, #macro-calories { --macro-color: #facc15; }
- #macro-protein .macro-value, #macro-protein { --macro-color: #ef4444; }
- #macro-carbs .macro-value, #macro-carbs { --macro-color: #3b82f6; }
- #macro-fat .macro-value, #macro-fat { --macro-color: #22c55e; }
- #macro-calories .macro-value { color: #facc15; }
- #macro-protein .macro-value { color: #ef4444; }
- #macro-carbs .macro-value { color: #3b82f6; }
- #macro-fat .macro-value { color: #22c55e; }
- #macro-calories { border-color: rgba(250, 204, 21, 0.2); }
- #macro-protein { border-color: rgba(239, 68, 68, 0.2); }
- #macro-carbs { border-color: rgba(59, 130, 246, 0.2); }
- #macro-fat { border-color: rgba(34, 197, 94, 0.2); }
- @media (max-width: 768px) {
- .macro-dashboard {
- gap: 8px;
- padding: 10px 12px;
- }
- .macro-card {
- min-width: 70px;
- padding: 10px 10px;
- }
- .macro-value {
- font-size: 1.1rem;
- }
- }
- /* =============================================
- Meal Builder (US-10 Task #46)
- ============================================= */
- .meal-builder-tray {
- margin: 0 20px;
- background: rgba(255, 255, 255, 0.03);
- border: 1px solid var(--border);
- border-radius: 12px;
- overflow: hidden;
- backdrop-filter: blur(10px);
- -webkit-backdrop-filter: blur(10px);
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- margin-bottom: 12px;
- }
- .meal-builder-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 10px 16px;
- background: rgba(255, 255, 255, 0.05);
- cursor: pointer;
- }
- .tray-title {
- display: flex;
- align-items: center;
- gap: 10px;
- }
- .tray-title h3 {
- font-size: 0.95rem;
- font-weight: 600;
- margin: 0;
- }
- .tray-title .item-count {
- font-size: 0.75rem;
- color: var(--text-muted);
- background: rgba(255, 255, 255, 0.1);
- padding: 2px 8px;
- border-radius: 10px;
- }
- .meal-content {
- max-height: 500px;
- overflow: hidden;
- transition: max-height 0.3s ease-out, opacity 0.3s ease;
- opacity: 1;
- }
- .meal-content.collapsed {
- max-height: 0;
- opacity: 0;
- }
- .meal-items-list {
- padding: 12px;
- max-height: 250px;
- overflow-y: auto;
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
- /* Custom Scrollbar for Meal List */
- .meal-items-list::-webkit-scrollbar {
- width: 4px;
- }
- .meal-items-list::-webkit-scrollbar-thumb {
- background: rgba(255, 255, 255, 0.1);
- border-radius: 4px;
- }
- .meal-item-row {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 8px 12px;
- background: rgba(255, 255, 255, 0.05);
- border: 1px solid rgba(255, 255, 255, 0.05);
- border-radius: 8px;
- animation: slideInLeft 0.3s ease-out;
- }
- .meal-item-name {
- flex: 1;
- font-size: 0.9rem;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .meal-item-controls {
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .weight-input-wrapper {
- display: flex;
- align-items: center;
- background: rgba(0, 0, 0, 0.25);
- border-radius: 8px;
- padding: 4px 10px;
- border: 1px solid var(--border);
- transition: border-color 0.2s, box-shadow 0.2s;
- }
- .weight-input-wrapper:focus-within {
- border-color: var(--primary);
- box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
- }
- .weight-input-wrapper input {
- background: transparent;
- border: none;
- color: var(--text);
- width: 65px;
- font-size: 0.95rem;
- text-align: right;
- padding: 2px;
- outline: none;
- font-weight: 500;
- }
- /* Hide Spinners (Arrows) for cleaner look */
- .weight-input-wrapper input::-webkit-outer-spin-button,
- .weight-input-wrapper input::-webkit-inner-spin-button {
- -webkit-appearance: none;
- margin: 0;
- }
- .weight-input-wrapper input[type=number] {
- -moz-appearance: textfield;
- }
- .weight-unit {
- font-size: 0.75rem;
- color: var(--text-muted);
- margin-left: 2px;
- }
- .remove-item-btn {
- background: transparent;
- border: none;
- color: #ef4444;
- cursor: pointer;
- padding: 4px;
- border-radius: 4px;
- display: flex;
- align-items: center;
- justify-content: center;
- opacity: 0.7;
- transition: opacity 0.2s, background 0.2s;
- }
- .remove-item-btn:hover {
- opacity: 1;
- background: rgba(239, 68, 68, 0.1);
- }
- .empty-meal-msg {
- text-align: center;
- padding: 20px;
- font-size: 0.85rem;
- color: var(--text-muted);
- font-style: italic;
- }
- #toggle-meal-btn {
- transition: transform 0.3s ease;
- }
- .meal-content:not(.collapsed) + .meal-builder-header #toggle-meal-btn {
- transform: rotate(180deg);
- }
- /* Add-to-meal button in search results */
- .add-meal-btn {
- background: var(--primary);
- color: white;
- border: none;
- border-radius: 6px;
- padding: 4px 10px;
- font-size: 0.8rem;
- cursor: pointer;
- transition: background 0.2s, transform 0.1s;
- font-weight: 600;
- }
- .add-meal-btn:hover {
- background: var(--primary-hover);
- transform: scale(1.05);
- }
- .add-meal-btn:active {
- transform: scale(0.95);
- }
- .food-item-footer {
- display: flex;
- gap: 8px;
- margin-top: 10px;
- }
- @keyframes slideInLeft {
- from { opacity: 0; transform: translateX(-10px); }
- to { opacity: 1; transform: translateX(0); }
- }
- @media (max-width: 600px) {
- .meal-builder-tray {
- margin: 0 12px 10px 12px;
- }
- .meal-item-name {
- font-size: 0.8rem;
- }
- }
- .meal-builder-footer {
- padding: 12px;
- border-top: 1px solid rgba(255, 255, 255, 0.05);
- display: flex;
- justify-content: center;
- background: rgba(255, 255, 255, 0.02);
- }
- .primary-btn-sm {
- background: var(--primary);
- color: white;
- border: none;
- border-radius: 8px;
- padding: 8px 16px;
- font-size: 0.85rem;
- font-weight: 600;
- cursor: pointer;
- transition: all 0.2s ease;
- width: 100%;
- }
- .primary-btn-sm:hover {
- background: var(--primary-hover);
- transform: translateY(-1px);
- box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
- }
- .primary-btn-sm:active {
- transform: translateY(0);
- }
|