/* ================================
   EFP Chart Section (Scoped)
   ================================ */

.efpChart{
  font-family: system-ui, Arial;
}

/* Layout */
.efpChart .layout{
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 26px;
  align-items: start;
}
@media (max-width: 980px){
  .efpChart .layout{ grid-template-columns: 1fr; }
}

/* Chart */
.efpChart .circleWrap{
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.efpChart svg{
  width: 100%;
  height: auto;
  display: block;
}
.efpChart .slice{
  cursor: pointer;
  transition: filter .12s ease;
}
.efpChart .slice:hover{
  filter: brightness(1.06) contrast(1.06);
}
.efpChart .sliceText{
  font-size: 16px;
  font-weight: 900;
  fill: #111;
  paint-order: stroke;
  stroke: rgba(255,255,255,.9);
  stroke-width: 6px;
  stroke-linejoin: round;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

/* ================================
   Perfect Round Thumbnail (Circle)
   ================================ */
.efpChart .thumbWrap,
.efpChartModal .thumbWrap{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;

  /* ring + depth like your sample */
  /* border: 3px solid #fff; */
  outline: 2px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);

  background: #fff;
}
.efpChart .thumbWrap img,
.efpChartModal .thumbWrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.07);
}

/* ================================
   Right Panel
   ================================ */
.efpChart .panel{
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.efpChart .panelHead{
  padding: 6px 6px 12px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 12px;
}
.efpChart .panelTitle{
  font-weight: 900;
  font-size: 18px;
  color: #111;
}
.efpChart .panelSub{
  color: #666;
  font-size: 13px;
  margin-top: 4px;
}
.efpChart .list{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ⚠️ IMPORTANT:
   Bootstrap এর .row class এর সাথে conflict এড়াতে
   আপনার JS এ row.className = "efpRow" ব্যবহার করুন
*/
.efpChart .efpRow{
  display: flex;
  align-items: center;
  gap: 16px;

  padding: 8px 10px;
  border-radius: 18px;
  border: 1px solid #eee;
  cursor: pointer;
  background: #fff;

  transition: transform .08s ease, box-shadow .08s ease, background .08s ease;
}
.efpChart .efpRow:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  background: #fafafa;
}

/* Text (Right Panel) */
.efpChart .efpMeta{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.efpname {
    font-weight: 900;
    font-size: 17px;
}
.efpdesc {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}
.name {
font-weight: 900;
    font-size: 17px;
}
.desc {
font-size: 12px;
    color: #666;
    margin-top: 2px;
}
/* .efpChart .efpName{
  font-weight: 900 !important;
  font-size: 20px;
  line-height: 1.1;
  color: #111;
}
.efpChart .efpDesc{
  font-size: 14px;
  color: #666;
} */

/* ================================
   Modal
   ================================ */
.efpChartModal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.6);
  z-index: 9999;
}
.efpChartModal.open{ display: flex; }

.efpChartModal .modalCard{
  width: min(1200px, 100%);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
}
.efpChartModal .modalHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  gap: 12px;
}
.efpChartModal .modalTitle{ font-weight: 900; }
.efpChartModal .close{
  border: 0;
  background: #f2f2f2;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.efpChartModal .modalBody{
  padding: 14px;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 14px;
}
@media (max-width: 980px){
  .efpChartModal .modalBody{ grid-template-columns: 1fr; }
}

.efpChartModal .viewer{
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 10px;
  background: #fafafa;
}
.efpChartModal .viewer img{
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fff;
  display: block;
}
.efpChartModal .cap{
  margin-top: 10px;
  font-weight: 900;
}
.efpChartModal .subcap{
  margin-top: 4px;
  color: #666;
  font-size: 13px;
}

.efpChartModal .modalList{
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}
.efpChartModal .mItem{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid #eee;
  margin-bottom: 10px;
}
.efpChartModal .mItem:hover{ background: #fafafa; }
.efpChartModal .mItem.active{
  border-color: #111;
  background: #f7f7f7;
}

/* Text (Modal list) */
.efpChartModal .efpMeta{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.efpChartModal .efpName{
  font-weight: 900;
  font-size: 16px;
  line-height: 1.1;
  color: #111;
}
.efpChartModal .efpDesc{
  font-size: 12px;
  color: #666;
}
