/* Google Fonts */ @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap'); :root { /* Color Palette - Sustainable Tech */ --primary: #10b981; /* Emerald 500 */ --primary-hover: #059669; --secondary: #3b82f6; /* Blue 500 */ --accent: #f59e0b; /* Amber 500 */ --danger: #ef4444; /* Red 500 */ --bg-dark: #0f172a; /* Slate 900 */ --bg-card: rgba(30, 41, 59, 0.7); /* Slate 800 with opacity */ --text-main: #f8fafc; /* Slate 50 */ --text-muted: #94a3b8; /* Slate 400 */ --glass-border: 1px solid rgba(255, 255, 255, 0.1); --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --radius: 16px; --transition: all 0.3s ease; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Outfit', sans-serif; background-color: var(--bg-dark); color: var(--text-main); background-image: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%); min-height: 100vh; overflow-x: hidden; } /* Layout */ .app-container { max-width: 1200px; margin: 0 auto; padding: 20px; display: grid; grid-template-rows: auto 1fr; gap: 30px; } /* Header */ header { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; animation: fadeInDown 0.8s ease-out; } .logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 10px; } .logo span { color: var(--text-main); } nav ul { display: flex; gap: 20px; list-style: none; } nav button { background: transparent; border: none; color: var(--text-muted); font-size: 1rem; font-weight: 500; cursor: pointer; transition: var(--transition); padding: 8px 16px; border-radius: 20px; } nav button:hover, nav button.active { color: var(--text-main); background: rgba(255, 255, 255, 0.1); } /* Main Content Grid */ main { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; animation: fadeInUp 0.8s ease-out; } /* Glassmorphism Cards */ .card { background: var(--bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: var(--glass-border); border-radius: var(--radius); padding: 24px; box-shadow: var(--glass-shadow); transition: var(--transition); } .card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2); border-color: rgba(255, 255, 255, 0.2); } /* Specific Sections */ .stats-container { grid-column: span 12; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-bottom: 24px; } .stat-card { display: flex; flex-direction: column; align-items: center; text-align: center; } .stat-value { font-size: 2.5rem; font-weight: 700; background: linear-gradient(to right, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 10px 0; } .stat-label { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; } .action-section { grid-column: span 4; } .list-section { grid-column: span 8; } @media (max-width: 768px) { .action-section, .list-section { grid-column: span 12; } } /* Forms */ .input-group { margin-bottom: 16px; } label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.9rem; } input, select { width: 100%; padding: 12px; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: var(--text-main); font-family: 'Outfit', sans-serif; transition: var(--transition); } input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); } button.primary-btn { width: 100%; padding: 14px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; justify-content: center; align-items: center; gap: 8px; } button.primary-btn:hover { background: var(--primary-hover); transform: scale(1.02); } /* Inventory List */ .inventory-list { list-style: none; max-height: 400px; overflow-y: auto; padding-right: 10px; } .inventory-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: rgba(255, 255, 255, 0.03); border-radius: 12px; margin-bottom: 12px; transition: var(--transition); border-left: 3px solid var(--primary); } .inventory-item.expiring { border-left-color: var(--danger); } .inventory-item.warning { border-left-color: var(--accent); } .inventory-item:hover { background: rgba(255, 255, 255, 0.06); } .item-info h4 { margin-bottom: 4px; } .item-meta { font-size: 0.85rem; color: var(--text-muted); } .expiry-badge { padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; } .expiry-badge.safe { background: rgba(16, 185, 129, 0.2); color: var(--primary); } .expiry-badge.soon { background: rgba(245, 158, 11, 0.2); color: var(--accent); } .expiry-badge.expired { background: rgba(239, 68, 68, 0.2); color: var(--danger); } /* Recipes */ .recipes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; } .recipe-card { background: rgba(0, 0, 0, 0.2); border-radius: 12px; overflow: hidden; transition: var(--transition); } .recipe-card img { width: 100%; height: 140px; object-fit: cover; } .recipe-content { padding: 16px; } .recipe-title { font-size: 1.1rem; margin-bottom: 8px; } .recipe-ingredients { font-size: 0.85rem; color: var(--text-muted); } /* Utility */ .hidden { display: none; } .text-center { text-align: center; } .mb-4 { margin-bottom: 16px; } /* Scrollbar */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); } /* Animations */ @keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Loading Spinner */ .loader { width: 20px; height: 20px; border: 3px solid #FFF; border-bottom-color: transparent; border-radius: 50%; display: inline-block; box-sizing: border-box; animation: rotation 1s linear infinite; } @keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }