
/* LearnHub Student Tabs — v2 (chips + icons)
   ------------------------------------------------------------
   Objectives:
   - Tabs must be independent (no shared background container)
   - Visual parity with the reference UI (active underline + icons)
   - Works both inside .ea-shell-content and as a fallback outside it
*/

/* Tab bar (no shared background) */
.ea-shell-content .lh-tabbar,
.lh-tabbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding:0 0 12px 0;
  margin:0;
  border:0;
  border-bottom:1px solid #eef2f7;
  background:transparent;
}

/* Individual tab (chip) */
.ea-shell-content .lh-tab,
.lh-tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#ffffff;
  color:#667085;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  line-height:1;
  position:relative;
}

.ea-shell-content .lh-tab:hover,
.lh-tab:hover{
  background:#f9fafb;
}

/* Active state */
.ea-shell-content .lh-tab.is-active,
.lh-tab.is-active,
.ea-shell-content .lh-tab[aria-selected="true"],
.lh-tab[aria-selected="true"]{
  color:#101828;
  background:#f0fdf4;
  border-color:#bbf7d0;
}

.ea-shell-content .lh-tab.is-active:after,
.lh-tab.is-active:after,
.ea-shell-content .lh-tab[aria-selected="true"]:after,
.lh-tab[aria-selected="true"]:after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:6px;
  height:3px;
  border-radius:999px;
  background:#10b981;
}

/* Icon */
.ea-shell-content .lh-tab__icon,
.lh-tab__icon{
  display:inline-flex;
  width:18px;
  height:18px;
  align-items:center;
  justify-content:center;
}

.ea-shell-content .lh-tab__icon svg,
.lh-tab__icon svg{
  width:18px;
  height:18px;
  display:block;
}

.ea-shell-content .lh-tab__label,
.lh-tab__label{ white-space:nowrap; }

/* Panels */
.ea-shell-content .lh-panel,
.lh-panel{ display:none; margin-top:12px; }

.ea-shell-content .lh-panel.is-active,
.lh-panel.is-active{ display:block; }

/* Utilities used by tab templates */
.ea-shell-content .lh-empty,
.lh-empty{ padding:12px 0; color:#6b7280; font-weight:700; }

.ea-shell-content .lh-pill,
.lh-pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid #e5e7eb;
  background:#f8fafc;
  color:#111827;
}

.ea-shell-content .lh-subcard,
.lh-subcard{ margin-top:14px; border:1px solid #eef2f7; border-radius:14px; overflow:hidden; }

.ea-shell-content .lh-subcard__head,
.lh-subcard__head{ padding:12px 14px; font-weight:900; background:#fbfcff; border-bottom:1px solid #eef2f7; }
