:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:#1f2937de;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}*{box-sizing:border-box}body{margin:0;display:flex;min-width:320px;min-height:100vh}#root{width:100%}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.2}button{font-family:inherit;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s ease}button:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}input,textarea{font-family:inherit;font-size:.9rem}input:focus,textarea:focus{outline:none}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#94a3b8}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.fade-in{animation:fadeIn .3s ease}.slide-in{animation:slideIn .4s ease}.login-page{min-height:100vh;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);display:flex;align-items:center;justify-content:center}.login-container{background:#fff;border-radius:16px;padding:48px;box-shadow:0 20px 25px -5px #0000001a;text-align:center;max-width:400px;width:100%;margin:20px}.login-content h1{margin:0 0 16px;font-size:2.5rem;font-weight:700;color:#1f2937;text-shadow:0 2px 4px rgba(0,0,0,.1)}.login-content p{margin:0 0 32px;font-size:1.1rem;color:#6b7280}.login-button{display:flex;align-items:center;justify-content:center;gap:12px;background:#3b82f6;color:#fff;border:none;padding:16px 32px;border-radius:12px;font-weight:600;font-size:1.1rem;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 6px #3b82f633;width:100%}.login-button:hover{background:#2563eb;transform:translateY(-2px);box-shadow:0 8px 15px #3b82f64d}.login-button:active{transform:translateY(0)}@media (max-width: 480px){.login-container{padding:32px 24px;margin:16px}.login-content h1{font-size:2rem}.login-button{padding:14px 24px;font-size:1rem}}.recipe-card{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;overflow:hidden;cursor:pointer;transition:all .3s ease;position:relative;height:100%;display:flex;flex-direction:column}.recipe-card:hover{transform:translateY(-4px);box-shadow:0 8px 25px #00000026;opacity:.95}.recipe-card-image{position:relative;width:100%;height:200px;overflow:hidden}.recipe-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.recipe-card:hover .recipe-card-image img{transform:scale(1.05)}.recipe-card-image-overlay{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(to top,rgba(0,0,0,.8) 0%,rgba(0,0,0,.4) 60%,transparent 100%);padding:16px 12px 12px;z-index:1}.recipe-card-image-title{margin:0;font-size:1.125rem;font-weight:700;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.3);line-height:1.3}.recipe-card-actions{position:absolute;top:8px;right:8px;display:flex;gap:4px;opacity:0;transition:opacity .3s ease;z-index:2}.recipe-card:hover .recipe-card-actions{opacity:1}.action-button{background:#ffffffe6;border:none;border-radius:6px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.action-button:hover{background:#fff;transform:scale(1.1)}.edit-button:hover{color:#3b82f6}.delete-button:hover{color:#ef4444}.recipe-card-content{padding:16px;flex:1;display:flex;flex-direction:column}.recipe-card-title{margin:0 0 12px;font-size:1.25rem;font-weight:600;color:#1f2937;line-height:1.3}.recipe-card-ingredients{flex:1;margin-bottom:12px}.recipe-card-ingredients ul{margin:0;padding:0;list-style:none}.recipe-card-ingredients li{color:#6b7280;font-size:.9rem;position:relative;padding:2px 0 2px 12px}.recipe-card-ingredients li:before{content:"•";color:#d1d5db;position:absolute;left:0}.recipe-card-ingredients .more-ingredients{font-style:italic;color:#9ca3af}.recipe-card-ingredients .more-ingredients:before{content:"...";color:#d1d5db}.recipe-card-meta{display:flex;justify-content:space-between;align-items:center;padding-top:12px;border-top:1px solid #e5e7eb;margin-top:auto;gap:16px}.recipe-card-servings,.recipe-card-cooking-time{display:flex;align-items:center;gap:4px}.servings-label,.cooking-time-label{color:#6b7280;font-size:.9rem}.servings-value,.cooking-time-value{color:#1f2937;font-weight:600;font-size:.9rem}.recipe-dialog-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;overflow:hidden}.recipe-dialog{background:#fff;border-radius:12px;width:100%;max-width:600px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 25px -5px #0000001a}.recipe-dialog-header{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid #e5e7eb}.dialog-tabs{display:flex;gap:4px}.tab-button{background:none;border:none;padding:8px 16px;border-radius:6px;cursor:pointer;font-weight:500;color:#6b7280;transition:all .2s ease}.tab-button:hover{background:#f3f4f6;color:#374151}.tab-button.active{background:#3b82f6;color:#fff}.close-button{background:none;border:none;padding:4px;border-radius:6px;cursor:pointer;color:#6b7280;transition:all .2s ease}.close-button:hover{background:#f3f4f6;color:#374151}.recipe-dialog-content{flex:1;overflow-y:auto;padding:20px}.recipe-dialog-actions{padding:16px 20px;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end;gap:8px;background:#f9fafb}.action-btn{display:flex;align-items:center;gap:6px;padding:8px 16px;border-radius:6px;border:none;font-weight:500;cursor:pointer;transition:all .2s ease}.edit-btn{background:#3b82f6;color:#fff}.edit-btn:hover{background:#2563eb}.delete-btn{background:#ef4444;color:#fff}.delete-btn:hover{background:#dc2626}.save-btn{background:#10b981;color:#fff}.save-btn:hover{background:#059669}.cancel-btn{background:#6b7280;color:#fff}.cancel-btn:hover{background:#4b5563}.view-tab{display:flex;flex-direction:column;gap:24px}.recipe-image{width:100%;height:250px;border-radius:8px;overflow:hidden}.recipe-image img{width:100%;height:100%;object-fit:cover}.recipe-title{margin:0;font-size:1.75rem;font-weight:700;color:#1f2937}.recipe-meta{display:flex;gap:32px}.meta-item{display:flex;flex-direction:column;gap:4px}.meta-label{font-size:.9rem;color:#6b7280;font-weight:500}.meta-value{font-size:1.1rem;color:#1f2937;font-weight:600}.ingredients-section h3,.preparation-section h3{margin:0 0 12px;font-size:1.25rem;font-weight:600;color:#1f2937}.ingredients-list{margin:0;padding:0;list-style:none}.ingredients-list li{padding:6px 0 6px 16px;color:#374151;position:relative}.ingredients-list li:before{content:"•";color:#9ca3af;position:absolute;left:0}.preparation-steps p{margin:8px 0;color:#374151;line-height:1.6}.edit-tab{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:6px}.form-group label{font-weight:500;color:#374151;font-size:.9rem}.form-group input,.form-group textarea{padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:.9rem;transition:border-color .2s ease}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.file-input{padding:4px!important}.image-preview{width:100%;height:200px;border-radius:6px;overflow:hidden;margin-top:8px}.image-preview img{width:100%;height:100%;object-fit:cover}.ingredients-editor{display:flex;flex-direction:column;gap:8px}.ingredient-row{display:flex;gap:8px;align-items:center}.ingredient-row input{flex:1}.remove-ingredient{background:#ef4444;color:#fff;border:none;border-radius:4px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s ease}.remove-ingredient:hover:not(:disabled){background:#dc2626}.remove-ingredient:disabled{background:#d1d5db;cursor:not-allowed}.add-ingredient{background:#10b981;color:#fff;border:none;border-radius:6px;padding:8px 12px;display:flex;align-items:center;gap:6px;cursor:pointer;font-weight:500;transition:background-color .2s ease;align-self:flex-start}.add-ingredient:hover{background:#059669}.confirm-dialog-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1100}.confirm-dialog{background:#fff;border-radius:8px;padding:24px;max-width:400px;box-shadow:0 20px 25px -5px #0000001a}.confirm-dialog p{margin:0 0 16px;color:#374151;font-size:1rem}.confirm-actions{display:flex;justify-content:flex-end;gap:8px}.confirm-actions .cancel-btn{background:#6b7280;color:#fff;border:none;padding:8px 16px;border-radius:6px;cursor:pointer;font-weight:500}.confirm-actions .confirm-btn{background:#ef4444;color:#fff;border:none;padding:8px 16px;border-radius:6px;cursor:pointer;font-weight:500}.cookbook-page{min-height:100vh;background:linear-gradient(135deg,#f5f7fa,#c3cfe2)}.cookbook-content{max-width:1200px;margin:0 auto;padding:20px}.recipes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px;margin-bottom:40px}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:80px 20px;color:#6b7280}.empty-state h2{margin:0 0 8px;font-size:1.75rem;font-weight:600;color:#374151}.empty-state p{margin:0 0 24px;font-size:1.1rem}.empty-state .create-recipe-btn.primary{display:flex;align-items:center;gap:8px;background:#3b82f6;color:#fff;border:none;padding:16px 24px;border-radius:8px;font-weight:600;font-size:1.1rem;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 6px #3b82f633}.empty-state .create-recipe-btn.primary:hover{background:#2563eb;transform:translateY(-2px);box-shadow:0 8px 15px #3b82f64d}.empty-state .create-recipe-btn.primary:active{transform:translateY(0)}@media (max-width: 768px){.cookbook-content{padding:16px}.recipes-grid{grid-template-columns:1fr;gap:16px}.empty-state{padding:60px 20px}.empty-state h2{font-size:1.5rem}}@media (max-width: 480px){.empty-state .create-recipe-btn.primary{font-size:1rem;padding:14px 20px}}.avatar{border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#f3f4f6;box-shadow:0 2px 4px #0000001a;transition:all .2s ease}.avatar:hover{box-shadow:0 4px 8px #00000026;transform:scale(1.05)}.avatar img{width:100%;height:100%;object-fit:cover;display:block}.user-profile,.user-info{display:flex;align-items:center;gap:12px}.user-name{color:#1f2937;font-weight:500;font-size:.95rem}.logout-button{background:none;border:1px solid #d1d5db;border-radius:6px;padding:8px;cursor:pointer;color:#6b7280;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.logout-button:hover{background:#f3f4f6;border-color:#9ca3af;color:#374151}.logout-button:active{background:#e5e7eb}@media (max-width: 640px){.user-name{display:none}.user-info,.user-profile{gap:8px}}.app{min-height:100vh;display:flex;flex-direction:column}.app-header{background:#fff;border-bottom:1px solid #e5e7eb;padding:16px 24px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 1px 3px #0000001a;position:sticky;top:0;z-index:100}.app-header h1{margin:0;font-size:1.75rem;font-weight:700;color:#1f2937}.header-actions{display:flex;align-items:center;gap:16px}.create-recipe-btn{display:flex;align-items:center;gap:6px;background:#3b82f6;color:#fff;border:none;padding:8px 16px;border-radius:6px;font-weight:500;font-size:.9rem;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px #3b82f633}.create-recipe-btn:hover{background:#2563eb;box-shadow:0 4px 8px #3b82f64d}.loading-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,#f5f7fa,#c3cfe2)}.loading-spinner{width:40px;height:40px;border:3px solid #e5e7eb;border-top:3px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:16px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-screen p{color:#6b7280;font-size:1.1rem}@media (max-width: 768px){.app-header{padding:12px 16px}.app-header h1{font-size:1.5rem}.header-actions{gap:12px}.create-recipe-btn{padding:6px 12px;font-size:.85rem}}@media (max-width: 640px){.create-recipe-btn span{display:none}.create-recipe-btn{padding:8px;min-width:36px;justify-content:center}}@media (max-width: 480px){.app-header h1{font-size:1.25rem}.header-actions{gap:8px}}
