*,:before,:after{box-sizing:border-box}:root{--green-dark:#5a9e2f;--green-light:#a8d44a;--yellow:#d4b84a;--purple:#7c4a7c;--cream:#f5f0e8;--brown:#2d2417;--border:#b8d88a;--white:#fff}body{background-color:var(--white);background-image:repeating-linear-gradient(0deg,#a8d44a8c 0 30px,#0000 30px 60px),repeating-linear-gradient(90deg,#a8d44a8c 0 30px,#0000 30px 60px);min-height:100vh;margin:0;font-family:Nunito,sans-serif}.page-bg{background-color:#fdf6f0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3C!-- Tomato 1: top-left --%3E%3Ccircle cx='30' cy='30' r='16' fill='%23c0392b'/%3E%3Ccircle cx='30' cy='30' r='16' fill='none' stroke='%23922b21' stroke-width='1.5'/%3E%3Cellipse cx='30' cy='22' rx='5' ry='3' fill='%23922b21' opacity='0.4'/%3E%3C!-- stem --%3E%3Crect x='29' y='11' width='2' height='7' rx='1' fill='%232d6a2d'/%3E%3C!-- leaves --%3E%3Cellipse cx='24' cy='13' rx='6' ry='2.5' fill='%2327ae60' transform='rotate(-30 24 13)'/%3E%3Cellipse cx='36' cy='13' rx='6' ry='2.5' fill='%2327ae60' transform='rotate(30 36 13)'/%3E%3Cellipse cx='30' cy='11' rx='5' ry='2' fill='%2327ae60'/%3E%3C!-- shine --%3E%3Cellipse cx='24' cy='24' rx='4' ry='3' fill='white' opacity='0.2' transform='rotate(-20 24 24)'/%3E%3C!-- Tomato 2: bottom-right --%3E%3Ccircle cx='90' cy='90' r='16' fill='%23c0392b'/%3E%3Ccircle cx='90' cy='90' r='16' fill='none' stroke='%23922b21' stroke-width='1.5'/%3E%3Cellipse cx='90' cy='82' rx='5' ry='3' fill='%23922b21' opacity='0.4'/%3E%3Crect x='89' y='71' width='2' height='7' rx='1' fill='%232d6a2d'/%3E%3Cellipse cx='84' cy='73' rx='6' ry='2.5' fill='%2327ae60' transform='rotate(-30 84 73)'/%3E%3Cellipse cx='96' cy='73' rx='6' ry='2.5' fill='%2327ae60' transform='rotate(30 96 73)'/%3E%3Cellipse cx='90' cy='71' rx='5' ry='2' fill='%2327ae60'/%3E%3Cellipse cx='84' cy='84' rx='4' ry='3' fill='white' opacity='0.2' transform='rotate(-20 84 84)'/%3E%3C!-- Small tomato: top-right --%3E%3Ccircle cx='95' cy='25' r='10' fill='%23e74c3c'/%3E%3Crect x='94' y='13' width='2' height='5' rx='1' fill='%232d6a2d'/%3E%3Cellipse cx='90' cy='15' rx='4' ry='1.8' fill='%2327ae60' transform='rotate(-30 90 15)'/%3E%3Cellipse cx='100' cy='15' rx='4' ry='1.8' fill='%2327ae60' transform='rotate(30 100 15)'/%3E%3Cellipse cx='90' cy='21' rx='3' ry='2' fill='white' opacity='0.2' transform='rotate(-20 90 21)'/%3E%3C!-- Small tomato: bottom-left --%3E%3Ccircle cx='25' cy='95' r='10' fill='%23e74c3c'/%3E%3Crect x='24' y='83' width='2' height='5' rx='1' fill='%232d6a2d'/%3E%3Cellipse cx='20' cy='85' rx='4' ry='1.8' fill='%2327ae60' transform='rotate(-30 20 85)'/%3E%3Cellipse cx='30' cy='85' rx='4' ry='1.8' fill='%2327ae60' transform='rotate(30 30 85)'/%3E%3Cellipse cx='20' cy='91' rx='3' ry='2' fill='white' opacity='0.2' transform='rotate(-20 20 91)'/%3E%3C/svg%3E");background-size:120px 120px;min-height:calc(100vh - 60px)}.navbar{background:var(--green-dark);border-bottom:3px solid var(--yellow);z-index:10;justify-content:space-between;align-items:center;height:60px;padding:0 24px;display:flex;position:sticky;top:0}.navbar-brand{color:var(--cream);letter-spacing:.05em;font-size:1.3rem;font-weight:800;text-decoration:none}.navbar-links{gap:8px;display:flex}.nav-link{color:#f5f0e8cc;border-radius:20px;padding:8px 16px;font-size:.95rem;font-weight:600;text-decoration:none;transition:background .2s,color .2s}.nav-link:hover{color:var(--cream);background:#ffffff26}.nav-link.active{background:var(--yellow);color:var(--brown)}.logout-button{color:#f5f0e8cc;cursor:pointer;background:0 0;border:2px solid #f5f0e866;border-radius:20px;padding:8px 16px;font-family:inherit;font-size:.9rem;font-weight:600;transition:all .2s}.logout-button:hover{border-color:var(--cream);color:var(--cream)}.home-container{justify-content:center;align-items:center;min-height:calc(100vh - 60px);padding:40px 20px;display:flex}.home-card{background:var(--white);border:2px solid var(--border);text-align:center;border-radius:24px;width:100%;max-width:420px;padding:48px 40px;box-shadow:0 4px 32px #5a9e2f1f}.home-title{color:var(--green-dark);letter-spacing:.02em;margin:0 0 8px;font-size:2.4rem;font-weight:800}.home-subtitle{color:#a0a0a0;margin:0 0 40px;font-size:1rem}.home-links{flex-direction:column;gap:12px;display:flex}.home-link{background:var(--cream);border:2px solid var(--border);border-radius:16px;align-items:center;gap:16px;padding:18px 24px;text-decoration:none;transition:all .2s;display:flex}.home-link:hover{background:var(--green-dark);border-color:var(--green-dark)}.home-link:hover .home-link-label{color:var(--white)}.home-link-icon{font-size:1.8rem}.home-link-label{color:var(--brown);font-size:1.1rem;font-weight:700;transition:color .2s}.grocery-container{max-width:500px;margin:40px auto;padding:0 20px}.grocery-title{color:var(--green-dark);margin-bottom:24px;font-size:2rem;font-weight:800}.add-form{gap:8px;margin-bottom:24px;display:flex}.add-input{border:2px solid var(--border);background:var(--white);color:var(--brown);border-radius:12px;outline:none;flex:1;padding:12px 16px;font-family:inherit;font-size:1rem;transition:border-color .2s}.add-input:focus{border-color:var(--green-dark)}.add-button{background:var(--green-dark);color:var(--white);cursor:pointer;border:none;border-radius:12px;padding:12px 20px;font-family:inherit;font-size:1rem;font-weight:700;transition:background .2s}.add-button:hover{background:var(--green-light)}.item-list{margin:0;padding:0;list-style:none}.item{background:var(--white);border:1px solid var(--border);border-radius:12px;align-items:center;gap:12px;margin-bottom:6px;padding:12px 16px;display:flex}.checkbox{border:2px solid var(--border);background:var(--cream);cursor:pointer;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:26px;height:26px;font-family:inherit;font-size:.8rem;transition:background .2s,border-color .2s;display:flex}.checkbox.checked{background:var(--green-dark);border-color:var(--green-dark);color:#fff}.item-name{color:var(--brown);flex:1;font-size:1rem;font-weight:500}.item.checked .item-name{color:#a0a0a0;text-decoration:line-through}.delete-button{color:#c8b8a8;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:4px 6px;font-family:inherit;font-size:.9rem;transition:color .2s}.delete-button:hover{color:var(--purple)}.got-label{text-transform:uppercase;letter-spacing:.08em;color:#a0a0a0;margin:20px 0 8px;font-size:.8rem;font-weight:700}.recipe-container{max-width:600px;margin:40px auto;padding:0 20px}.recipe-header{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.recipe-title{color:var(--green-dark);margin:0;font-size:2rem;font-weight:800}.add-recipe-button{background:var(--green-dark);color:var(--white);cursor:pointer;border:none;border-radius:20px;padding:10px 18px;font-family:inherit;font-size:.95rem;font-weight:700;transition:background .2s}.add-recipe-button:hover{background:var(--green-light)}.recipe-form{background:var(--white);border:1px solid var(--border);border-radius:16px;flex-direction:column;gap:12px;margin-bottom:24px;padding:20px;display:flex}.form-input{border:2px solid var(--border);color:var(--brown);background:var(--cream);resize:vertical;border-radius:10px;outline:none;padding:10px 14px;font-family:inherit;font-size:1rem;transition:border-color .2s}.form-input:focus{border-color:var(--green-dark);background:var(--white)}.submit-button{background:var(--green-dark);color:var(--white);cursor:pointer;border:none;border-radius:12px;padding:12px;font-family:inherit;font-size:1rem;font-weight:700;transition:background .2s}.submit-button:hover{background:var(--green-light)}.category-tabs{flex-wrap:wrap;gap:8px;margin-bottom:20px;display:flex}.category-tab{border:2px solid var(--border);background:var(--white);color:var(--brown);cursor:pointer;border-radius:20px;padding:6px 16px;font-family:inherit;font-size:.85rem;font-weight:600;transition:all .2s}.category-tab:hover{border-color:var(--green-dark);color:var(--green-dark)}.category-tab.active{background:var(--green-dark);border-color:var(--green-dark);color:var(--white)}.recipe-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.recipe-item{background:var(--white);border:1px solid var(--border);border-radius:16px;overflow:hidden}.recipe-row{cursor:pointer;justify-content:space-between;align-items:center;padding:16px;transition:background .2s;display:flex}.recipe-row:hover{background:var(--cream)}.recipe-name{color:var(--brown);margin-right:10px;font-size:1rem;font-weight:700}.recipe-category{text-transform:uppercase;letter-spacing:.06em;color:var(--green-light);font-size:.75rem;font-weight:700}.recipe-chevron{color:var(--green-light);font-size:.75rem}.recipe-detail{border-top:1px solid var(--border);flex-direction:column;gap:12px;padding:0 16px 16px;display:flex}.recipe-link{color:var(--purple);margin-top:12px;font-weight:600;text-decoration:none;display:inline-block}.recipe-link:hover{text-decoration:underline}.detail-section{flex-direction:column;gap:4px;display:flex}.detail-label{text-transform:uppercase;letter-spacing:.08em;color:var(--green-light);margin:0;font-size:.75rem;font-weight:700}.detail-text{color:var(--brown);white-space:pre-wrap;margin:0;font-family:inherit;font-size:.95rem}.grocery-button{background:var(--purple);color:var(--white);cursor:pointer;border:none;border-radius:10px;align-self:flex-start;padding:8px 16px;font-family:inherit;font-size:.9rem;font-weight:700;transition:background .2s}.grocery-button:hover{background:#6a3a6a}.grocery-button:disabled{opacity:.5;cursor:not-allowed}.delete-recipe-button{color:#c87070;cursor:pointer;background:0 0;border:1px solid #e8c8c8;border-radius:8px;align-self:flex-start;padding:6px 12px;font-family:inherit;font-size:.85rem;transition:all .2s}.delete-recipe-button:hover{color:#b04040;background:#fef2f2}.empty-message{color:#a0a0a0;text-align:center;padding:40px 0}.ingredient-list{flex-direction:column;gap:4px;margin:0 0 12px;padding:0;list-style:none;display:flex}.ingredient-item{cursor:pointer;border-radius:8px;align-items:center;gap:10px;padding:8px 4px;transition:background .15s;display:flex}.ingredient-item:hover{background:var(--cream)}.ingredient-checkbox{border:2px solid var(--border);background:var(--cream);border-radius:5px;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;font-size:.75rem;transition:background .15s,border-color .15s;display:flex}.ingredient-checkbox.checked{background:var(--green-dark);border-color:var(--green-dark);color:#fff}.ingredient-name{color:var(--brown);font-size:.95rem;font-weight:500;transition:color .15s}.ingredient-name.deselected{color:#a0a0a0;text-decoration:line-through}.login-container{justify-content:center;align-items:center;min-height:100vh;display:flex}.login-card{background:var(--white);border:2px solid var(--border);border-radius:20px;width:100%;max-width:380px;padding:40px;box-shadow:0 4px 24px #4a7c3f1a}.login-title{color:var(--green-dark);text-align:center;letter-spacing:.05em;margin:0 0 4px;font-size:2.2rem;font-weight:800}.login-subtitle{color:#a0a0a0;text-align:center;margin:0 0 28px;font-size:.95rem}.login-form{flex-direction:column;gap:12px;display:flex}.login-input{border:2px solid var(--border);background:var(--cream);color:var(--brown);border-radius:12px;outline:none;padding:12px 16px;font-family:inherit;font-size:1rem;transition:border-color .2s}.login-input:focus{border-color:var(--green-dark);background:var(--white)}.login-button{background:var(--green-dark);color:var(--white);cursor:pointer;border:none;border-radius:12px;margin-top:4px;padding:12px;font-family:inherit;font-size:1rem;font-weight:700;transition:background .2s}.login-button:hover{background:var(--green-light)}.login-button:disabled{opacity:.6;cursor:not-allowed}.login-error{color:#c87070;text-align:center;margin:0;font-size:.9rem}
