/* =====================================================================
   CARI-FOKUS · gaya kotak pencarian beranimasi (SMPN8JKT)
   Berdiri sendiri. Ubah warna lewat variabel di :root aplikasi:
   --cf-kotak, --cf-teks, --cf-redup, --cf-sorot, --cf-tirai, --cf-aksen
   ===================================================================== */
:root { --cf-kotak: #FFFFFF; --cf-teks: #140B3A; --cf-redup: #6B6589; --cf-sorot: rgba(20, 11, 58, .06); --cf-tirai: rgba(244, 241, 248, .94); --cf-aksen: #FF4D4D; --cf-lentur: cubic-bezier(.22, 1, .36, 1); }
.cf-pemicu { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 18px; border-radius: 99px; border: 1px solid rgba(20, 11, 58, .1); background: var(--cf-kotak); color: var(--cf-redup); font: inherit; font-weight: 600; font-size: 14.5px; cursor: text; text-align: left; box-shadow: 0 4px 18px rgba(20, 11, 58, .05); transition: border-color .2s, box-shadow .2s; }
.cf-pemicu:hover { border-color: rgba(20, 11, 58, .2); box-shadow: 0 6px 24px rgba(20, 11, 58, .08); }
.cf-pemicu svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; flex: none; }
.cf-pemicu span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-pemicu kbd { font: 700 11px inherit; border: 1px solid rgba(20, 11, 58, .12); border-radius: 6px; padding: 1px 6px; }
.cf-pemicu.ringkas { width: auto; height: 40px; padding: 0 14px; box-shadow: none; flex: none; }
@media (max-width: 640px) { .cf-pemicu kbd { display: none; } .cf-pemicu.ringkas { width: 40px; padding: 0; justify-content: center; } .cf-pemicu.ringkas span { display: none; } }
html.cf-terkunci { overflow: hidden; }
.cf-lapis, .cf-lapis *, .cf-pemicu { box-sizing: border-box; }
.cf-latar { transition: transform .45s var(--cf-lentur), opacity .3s ease-out; transform: translate3d(0, -14px, 0) scale(.985); opacity: .25; pointer-events: none; will-change: transform, opacity; }
.cf-sumber { opacity: 0 !important; }
.cf-lapis { position: fixed; inset: 0; z-index: 9990; display: none; }
.cf-lapis.cf-tampil { display: block; }
/* tirai: hanya opacity (tanpa blur) agar ringan di HP */
.cf-lapis::before { content: ''; position: absolute; inset: 0; background: var(--cf-tirai); opacity: 0; transition: opacity .3s ease-out; }
.cf-lapis.cf-buka::before { opacity: 1; }
/* kotak: posisi lewat transform (GPU), lebar/tinggi ikut meluncur */
.cf-kotak { position: fixed; top: 0; left: 0; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 18px; border-radius: 99px; background: var(--cf-kotak); color: var(--cf-teks); transition: transform .45s var(--cf-lentur), width .45s var(--cf-lentur), height .45s var(--cf-lentur), box-shadow .45s ease-out; box-shadow: 0 0 0 1px rgba(127,127,127,.15); isolation: isolate; will-change: transform, width; }
.cf-lapis.cf-buka .cf-kotak { box-shadow: 0 0 0 1px rgba(127,127,127,.12), 0 16px 44px rgba(5,2,20,.18); }
.cf-cincin { position: absolute; inset: -2px; border-radius: inherit; padding: 2px; z-index: -1; opacity: 0; background: conic-gradient(from var(--cf-sudut, 0deg), #FF4D4D, #FFB48E, #7C4DFF, #60A5FA, #FF4D4D); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .3s .15s; animation: cf-putar 2.6s linear infinite; }
.cf-lapis.cf-buka .cf-cincin { opacity: 1; }
@property --cf-sudut { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes cf-putar { to { --cf-sudut: 360deg; } }
.cf-ikon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; opacity: .7; display: block; }
.cf-input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; font-weight: 600; color: inherit; }
.cf-batal { flex: none; border: 0; background: var(--cf-sorot); color: inherit; font-weight: 700; font-size: 13.5px; height: 40px; padding: 0 16px; border-radius: 99px; cursor: pointer; opacity: 0; transform: translateX(6px); transition: opacity .2s ease-out, transform .35s var(--cf-lentur); }
.cf-lapis.cf-buka .cf-batal { opacity: 1; transform: none; transition-delay: .12s; }
.cf-hasil { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); width: min(720px, calc(100% - 24px)); max-height: calc(100% - 96px); overflow: auto; padding: 4px 4px 30px; opacity: 0; transform: translate3d(-50%, 10px, 0); transition: opacity .28s ease-out, transform .4s var(--cf-lentur); color: var(--cf-teks); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.cf-lapis.cf-buka .cf-hasil { opacity: 1; transform: translate3d(-50%, 0, 0); transition-delay: .1s; }
.cf-hasil.cf-muat { opacity: .6; }
.cf-grup { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cf-redup); margin: 14px 8px 6px; }
.cf-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; background: none; border-radius: 16px; text-align: left; cursor: pointer; color: inherit; animation: cf-masuk .35s var(--cf-lentur) both; animation-delay: var(--cf-d); }
.cf-item:hover, .cf-item:focus { background: var(--cf-sorot); outline: none; }
@keyframes cf-masuk { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
.cf-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--cf-w); flex: none; }
.cf-teks { flex: 1; min-width: 0; }
.cf-teks b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-teks b mark { background: none; color: var(--cf-aksen); }
.cf-teks small { display: block; color: var(--cf-redup); font-size: 12.5px; font-weight: 600; }
.cf-kanan { font-weight: 800; font-size: 15px; }
.cf-kosong { text-align: center; color: var(--cf-redup); padding: 30px 10px; }
@media (prefers-reduced-motion: reduce) {
  .cf-latar, .cf-kotak, .cf-hasil, .cf-item, .cf-cincin, .cf-lapis::before, .cf-batal { transition: none !important; animation: none !important; }
}
