*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,sans-serif;background:#f8fafc;color:#1e293b;line-height:1.6}.container{max-width:1200px;margin:0 auto;padding:2rem}.header{display:flex;justify-content:space-between;align-items:center;padding:1rem 2rem;background:linear-gradient(90deg,#0f172a,#3b82f6);color:#fff;border-radius:0 0 12px 12px;box-shadow:0 4px 12px #0000001a;position:sticky;top:0;z-index:100}.header .brand{font-size:2rem;font-weight:700;letter-spacing:1px}.header .nav a{color:#e0e7ff;margin-left:1.5rem;text-decoration:none;font-weight:500;transition:all .3s}.header .nav a:hover{color:#facc15;transform:scale(1.05)}.hero{text-align:center;margin-bottom:2rem}.hero h1{font-size:2.4rem;font-weight:700;color:#1e293b}.hero p{font-size:1rem;color:#475569;margin-top:.5rem}.controls{display:flex;justify-content:center;margin-bottom:2rem;position:relative;top:auto;z-index:auto}.controls input{padding:.7rem 1.2rem;border-radius:24px;border:1px solid #cbd5e1;outline:none;width:300px;box-shadow:0 4px 12px #0000000d;transition:all .3s}.controls input:focus{border-color:#3b82f6;box-shadow:0 0 10px #3b82f633}.grid-area{display:flex;gap:2rem}.left{flex:1 1 320px}.right{flex:3 1 700px}.add-form{background:#fff;padding:2rem;border-radius:16px;box-shadow:0 12px 24px #0000000d;display:flex;flex-direction:column;gap:.7rem;position:sticky;top:120px}.add-form h3{margin-bottom:1rem;color:#3b82f6;font-size:1.3rem}.add-form input{padding:.7rem 1rem;border-radius:12px;border:1px solid #cbd5e1;transition:all .3s}.add-form input:focus{border-color:#3b82f6;box-shadow:0 0 6px #3b82f64d}.add-form .btn{margin-top:.5rem;background:#3b82f6;color:#fff;padding:.7rem;border-radius:12px;font-weight:500;cursor:pointer;transition:.3s}.add-form .btn:hover{background:#60a5fa;transform:scale(1.03)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.card{background:#fff;padding:1.5rem;border-radius:20px;box-shadow:0 12px 24px #0000000f;transition:transform .3s,box-shadow .3s,background .3s;position:relative}.card:hover{transform:translateY(-6px);box-shadow:0 18px 36px #0000001f;background:#f0f4ff}.card h3{font-size:1.3rem;margin-bottom:.5rem;color:#1e293b}.card p{font-size:.95rem;color:#475569;margin-bottom:.3rem}.badge{display:inline-block;padding:.2rem .6rem;border-radius:12px;font-size:.75rem;font-weight:500;color:#fff;margin-right:.4rem}.badge-age{background:#2563eb}.badge-contact{background:#4ade80}.badge-notes{background:#facc15;color:#1e293b}.card-actions{margin-top:1rem;text-align:right}.card-actions .btn{padding:.5rem 1rem;background:#3b82f6;border-radius:12px}.card-actions .btn:hover{background:#60a5fa}.modal-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background:#1e293b99;display:flex;justify-content:center;align-items:center;z-index:1000}.modal{background:#fff;padding:2rem;border-radius:24px;max-width:500px;width:90%;box-shadow:0 16px 48px #00000026;animation:popIn .3s ease-out}@keyframes popIn{0%{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}.modal-close{position:absolute;top:1rem;right:1rem;font-size:1.5rem;border:none;background:none;cursor:pointer;color:#475569}.modal-close:hover{color:#ef4444}.state{text-align:center;padding:1rem;color:#64748b}.state.error{color:#ef4444}.footer{margin-top:3rem;text-align:center;padding:1.5rem 0;color:#64748b;font-size:.9rem;border-top:1px solid #e2e8f0}@media(max-width:768px){.grid-area{flex-direction:column}.controls{margin-bottom:1rem}.add-form{position:static}}
