*{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth}body{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f4f7fb;color:#172033;min-height:100vh;transition:background .3s ease,color .3s ease}button,input,select{font:inherit}.header{background:#fff;border-bottom:1px solid #e3e8f0;padding:24px 20px;position:sticky;top:0;z-index:20;transition:background .3s ease,border-color .3s ease}.header-content{max-width:1200px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:20px}.header h1{font-size:28px;line-height:1.2;margin-bottom:6px}.subtitle{color:#697586;font-size:14px}.theme-toggle{border:1px solid #d7deea;background:#fff;color:#172033;padding:10px 16px;border-radius:10px;cursor:pointer;transition:background .2s ease,color .2s ease,transform .2s ease}.theme-toggle:hover{transform:translateY(-1px)}.container{max-width:1200px;margin:0 auto;padding:32px 20px 60px}.controls{display:grid;grid-template-columns:minmax(260px,2fr) minmax(180px,1fr) minmax(180px,1fr);gap:16px;background:#fff;padding:20px;border:1px solid #e3e8f0;border-radius:16px;margin-bottom:32px;transition:background .3s ease,border-color .3s ease}.control-group{display:flex;flex-direction:column;gap:7px}.control-group label{font-size:13px;font-weight:600}.control-group input,.control-group select{width:100%;border:1px solid #d5dce8;background:#fff;color:#172033;border-radius:9px;padding:11px 12px;outline:none;transition:border-color .2s ease,box-shadow .2s ease,background .3s ease,color .3s ease}.control-group input:focus,.control-group select:focus{border-color:#4f7cff;box-shadow:0 0 0 3px #4f7cff26}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.section-heading h2{font-size:22px;margin-bottom:4px}.section-heading p{color:#697586;font-size:14px}.employee-count{background:#edf2ff;color:#3e63dd;padding:7px 12px;border-radius:999px;font-size:13px;font-weight:600}.employee-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.employee-card{position:relative;background:#fff;border:1px solid #e3e8f0;border-radius:16px;overflow:hidden;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .3s ease,border-color .3s ease}.employee-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px #1f29371a}.employee-photo-wrapper{position:relative;background:#eef2f7}.employee-photo{width:100%;height:230px;display:block;object-fit:cover}.favorite-btn{position:absolute;top:12px;right:12px;width:42px;height:42px;border:none;border-radius:50%;background:#fffffff2;color:#687386;font-size:25px;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 12px #0000001f;transition:transform .2s ease,color .2s ease}.favorite-btn:hover{transform:scale(1.08)}.favorite-btn.is-favorite{color:#f59e0b}.employee-info{padding:18px}.employee-info h3{font-size:18px;margin-bottom:8px}.employee-email,.employee-phone{color:#697586;font-size:13px;margin-bottom:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.department{display:inline-block;margin-top:8px;padding:5px 9px;border-radius:999px;background:#eef2ff;color:#465fc5;font-size:12px;font-weight:600}.loading-state{grid-column:1 / -1;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#697586}.spinner{width:42px;height:42px;border:4px solid #dce3ef;border-top-color:#4f7cff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty-state{grid-column:1 / -1;text-align:center;padding:70px 20px}.empty-icon{font-size:42px;margin-bottom:15px}.empty-state h3{margin-bottom:8px}.empty-state p{color:#697586}.error-state{grid-column:1 / -1;text-align:center;padding:60px 20px}.error-icon{font-size:42px;margin-bottom:15px}.error-state h3{margin-bottom:8px}.error-state p{color:#697586;margin-bottom:20px}.retry-button{border:none;background:#4f7cff;color:#fff;padding:10px 18px;border-radius:9px;cursor:pointer;font-weight:600;transition:transform .2s ease,opacity .2s ease}.retry-button:hover{transform:translateY(-1px);opacity:.9}.modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}.modal.hidden{display:none}.modal-overlay{position:absolute;inset:0;background:#0f172aa6;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal-content{position:relative;z-index:2;width:min(560px,100%);max-height:90vh;overflow-y:auto;background:#fff;color:#172033;border-radius:18px;padding:28px;box-shadow:0 25px 70px #00000040;animation:modalIn .2s ease}@keyframes modalIn{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.modal-close{position:absolute;top:12px;right:12px;width:38px;height:38px;border:none;border-radius:50%;background:#eef1f5;color:#172033;font-size:25px;cursor:pointer;line-height:1}.modal-photo{width:140px;height:140px;object-fit:cover;border-radius:50%;display:block;margin:0 auto 18px}.modal-content h2{text-align:center;margin-bottom:22px;font-size:25px}.modal-details{display:flex;flex-direction:column;gap:12px}.modal-details p{line-height:1.5;color:#4f5d73}.modal-details strong{color:#172033}body.modal-open{overflow:hidden}body.dark-mode{background:#0f172a;color:#e8edf5}body.dark-mode .header{background:#111c31;border-color:#27344a}body.dark-mode .subtitle,body.dark-mode .section-heading p{color:#9aa8bd}body.dark-mode .theme-toggle{background:#1b2940;border-color:#33425b;color:#e8edf5}body.dark-mode .controls{background:#111c31;border-color:#27344a}body.dark-mode .control-group input,body.dark-mode .control-group select{background:#18243a;border-color:#33425b;color:#e8edf5}body.dark-mode .employee-card{background:#111c31;border-color:#27344a}body.dark-mode .employee-card:hover{box-shadow:0 12px 30px #0000004d}body.dark-mode .employee-photo-wrapper{background:#18243a}body.dark-mode .employee-email,body.dark-mode .employee-phone{color:#9aa8bd}body.dark-mode .department,body.dark-mode .employee-count{background:#202d49;color:#aebdff}body.dark-mode .favorite-btn{background:#111c31f2;color:#9aa8bd}body.dark-mode .modal-content{background:#111c31;color:#e8edf5}body.dark-mode .modal-close{background:#243249;color:#e8edf5}body.dark-mode .modal-details p{color:#aab6c8}body.dark-mode .modal-details strong{color:#e8edf5}@media(max-width:900px){.employee-list{grid-template-columns:repeat(2,minmax(0,1fr))}.controls{grid-template-columns:1fr 1fr}.control-group:first-child{grid-column:1 / -1}}@media(max-width:600px){.header{padding:18px 16px}.header-content{align-items:flex-start;flex-direction:column}.header h1{font-size:23px}.container{padding:20px 14px 40px}.controls{grid-template-columns:1fr;padding:16px;gap:13px}.control-group:first-child{grid-column:auto}.employee-list{grid-template-columns:1fr;gap:16px}.employee-photo{height:260px}.section-heading{align-items:flex-start;flex-direction:column}.modal{padding:12px}.modal-content{padding:22px 18px}.modal-photo{width:115px;height:115px}}
