.chart-host {
  width: 100%;
  height: 280px;
}

:root {
  --bg: #f5f6fb;
  --purple-700: #4c2aa6;
  --purple-800: #3c1e89;
  --purple-900: #2c136c;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;

  --line-marks: #6c63ff;
  --line-mpm: #22c1c3;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar etc… (unchanged) */
/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, var(--purple-800), var(--purple-700));
  color: #fff;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.brand-icon {
  width: 28px;
  height: 28px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.suite-select {
  margin: 10px 0 18px;
}

.suite-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.nav-link {
  color: #e9e9ff;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.ico {
  width: 20px;
  text-align: center;
}

.profile {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--purple-800);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.profile-link {
  color: #fff;
  text-decoration: none;
}

/* Main */
.main {
  padding: 28px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
}

.header-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.back-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #eeeeee;
  display: grid;
  place-items: center;
  cursor: pointer;
}

h1 {
  font-size: 22px;
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.select-wrap {
  position: relative;
}

.select-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid #8ed0d2;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  min-width: 160px;
  justify-content: space-between;
}

.select-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  padding: 6px;
  display: none;
  min-width: 220px;
  z-index: 10;
}

.select-menu.open {
  display: block;
}

.select-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.select-item:hover {
  background: #f3f4f6;
}

.abc-btn {
  display: 100%;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #5340b0;
  border-radius: 14px;
  padding: 10px 5px;
  color: #5340b0;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  /* margin-bottom: 10px; */
}

.abc-icon {
  font-size: 18px;
}

.abc-icon img {
  width: 40px;
}

.tabs {
  width: 100%;
  /* border: 1px solid !important; */
  border-radius: 20px !important;
  display: flex !important;
  overflow: auto !important;
  margin-bottom: 10px;
  background: #fff;
}

.tab {
  border: 0;
  background: transparent;
  color: #222222;
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-width: 20%;
}

.tab.active {
  background: #22c1c3;
  color: #fff;
  border-radius: 0px;
}

/* 🔔 NEW: “min 5 mocks” message bar */
.limit-msg {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  color: #92400e;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  display: none;
  /* hidden by default, JS shows when needed */
  align-items: center;
  gap: 8px;
}

.limit-msg::before {
  content: "⚠️";
}

.card {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(50, 50, 93, 0.06);
  overflow: hidden;
}

.card-header {
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f7;
}

.card-header h2 {
  margin: 0;
  font-size: 18px;
}

.card-body {
  padding: 18px 18px 8px;
  min-height: 360px;
}

.card-body canvas {
  width: 100%;
  height: 280px;
}

.legend {
  display: flex;
  gap: 18px;
  padding: 0 18px 18px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-marks {
  background: var(--line-marks);
}

.dot-mpm {
  background: var(--line-mpm);
}

.page-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #233668 !important;
  font-family: var(--primary-fonts) !important;
}

.subject-nav-pills {
  border: 1px solid !important;
  border-radius: 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  overflow: scroll !important;
}

.section-btn {
  min-width: 200px !important;
}

@media screen and (min-width: 1700px) {
  .tab {
    border: 0;
    background: transparent;
    /* color: #566a7f; */
    padding: 12px 15px;
    border-radius: 14px;
    cursor: pointer;
    min-width: 20% !important;
  }
}

@media screen and (min-width: 1400px) {
  .first-section1 {
    width: 80% !important;
  }

  .second-section1 {
    width: 20% !important;
  }

  .tab {
    border: 0;
    background: transparent;
    /* color: #566a7f; */
    padding: 5px 15px;
    border-radius: 14px;
    cursor: pointer;
    min-width: 20% !important;
  }

}

@media screen and (max-width: 1191px) {

  .tab {
    border: 0;
    background: transparent;
    /* color: #566a7f; */
    padding: 5px 13px;
    border-radius: 14px;
    cursor: pointer;
    min-width: 20% !important;
  }
}



@media screen and (max-width: 991px) {
  .tab {
    border: 0;
    background: transparent;
    /* color: #566a7f; */
    padding: 8px 10px;
    border-radius: 14px;
    cursor: pointer;
    min-width: 18% !important;
  }

}

@media screen and (max-width: 576px) {
  .tabs {
    flex-wrap: nowrap !important;
    padding: 0px !important;
  }

  .tab {
    border: 0;
    background: transparent;
    /* color: #566a7f; */
    padding: 12px 10px;
    border-radius: 14px;
    cursor: pointer;
    text-wrap: nowrap !important;
    white-space: nowrap !important;
    min-width: auto !important;
  }

  .header-row {
    display: block !important;
  }
}