/* ================================================
   HEADER v5 — LAYOUT SIMPLE
   ================================================ */

header.fx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 14px 12px;
  margin: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(148,163,184,0.15);
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

/* Row 1 — Profile + tombol */
.fx-row-1 {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.fx-prof {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: #fff;
  border: 1px solid rgba(148,163,184,0.15);
  border-radius: 999px;
  cursor: pointer;
  box-sizing: border-box;
}

.fx-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0EA5E9, #6366F1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.fx-pinfo { min-width: 0; flex: 1; }

.fx-pname {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-pmeta {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
}

.fx-pmeta .u-limit { color: #0EA5E9; font-weight: 800; }

.fx-ibtn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(148,163,184,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  color: #0f172a;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

/* Row 2 — Search BAR FULL WIDTH */
input.fx-search-input,
#search {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input.fx-search-input::placeholder,
#search::placeholder {
  color: #94a3b8;
}

input.fx-search-input:focus,
#search:focus {
  border-color: #0EA5E9;
  background: #fff;
}

body.theme-dark header.fx-header { background: rgba(15,23,42,0.9); }
body.theme-dark .fx-prof, body.theme-dark .fx-ibtn, body.theme-dark input.fx-search-input {
  background: rgba(30,41,59,0.9);
  border-color: rgba(255,255,255,0.1);
  color: #f1f5f9;
}
body.theme-dark .fx-pname { color: #f1f5f9; }
body.theme-dark .fx-pmeta { color: #94a3b8; }
