/* TPP Academy Dashboard */

.tpp-academy-dashboard,
.tpp-academy-dashboard * {
  box-sizing: border-box;
}

.tpp-academy-dashboard {
  width: 100%;
  max-width: 1100px;
  margin: 34px auto;
  padding: 0 16px;
  color: #333333;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tpp-academy-dashboard-inner {
  width: 100%;
  padding: 30px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-top: 5px solid #ff3333;
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.07);
}

.tpp-academy-dashboard-header {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.tpp-academy-logo-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 13px;
  background-image: url("https://thepoker-place.com/wp-content/uploads/2026/01/cropped-Favicon-TPP.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.tpp-academy-dashboard-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  padding: 6px 11px;
  color: #ffffff;
  background: #111111;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.tpp-academy-dashboard-header h2 {
  margin: 0 0 8px;
  color: #111111;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.7px;
}

.tpp-academy-dashboard-header p {
  max-width: 650px;
  margin: 0 auto;
  color: #666666;
  font-size: 14px;
  line-height: 1.65;
}

.tpp-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.tpp-dashboard-card {
  min-width: 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.045);
}

.tpp-dashboard-card-wide,
.tpp-dashboard-card-quiz {
  grid-column: 1 / -1;
  width: 100%;
}

.tpp-dashboard-card,
.tpp-dashboard-card:hover,
.tpp-dashboard-card-wide,
.tpp-dashboard-card-wide:hover,
.tpp-dashboard-card-quiz,
.tpp-dashboard-card-quiz:hover {
  transform: none !important;
}

.tpp-dashboard-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.tpp-dashboard-card-icon img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.tpp-dashboard-card-label {
  display: block;
  margin-bottom: 4px;
  color: #ff3333;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.tpp-dashboard-card h3 {
  margin: 0;
  color: #111111;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.25px;
}

.tpp-dashboard-main-stat {
  margin: 0 0 5px;
  color: #111111;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.tpp-dashboard-main-button,
.tpp-quiz-dashboard-main-link,
.tpp-account-dashboard-main-link,
.tpp-quiz-active-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 20px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff3333 0%, #d62828 52%, #111111 100%);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tpp-dashboard-main-button:hover,
.tpp-quiz-dashboard-main-link:hover,
.tpp-account-dashboard-main-link:hover,
.tpp-quiz-active-link:hover {
  color: #ffffff !important;
  opacity: 0.94;
  transform: translateY(-1px);
}

.tpp-dashboard-main-button {
  margin: 0 auto;
}

/* Quiz progress */

.tpp-quiz-dashboard-heading,
.tpp-account-dashboard-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.tpp-quiz-dashboard-heading > div:last-child,
.tpp-account-dashboard-heading > div:last-child {
  min-width: 0;
}

.tpp-quiz-dashboard-intro,
.tpp-account-dashboard-intro {
  margin: 5px 0 0;
  color: #666666;
  font-size: 13px;
  line-height: 1.55;
}

.tpp-quiz-summary-grid,
.tpp-account-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.tpp-quiz-summary-item,
.tpp-account-summary-item {
  min-width: 0;
  padding: 15px;
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
}

.tpp-account-summary-item.primary {
  background: #fff5f5;
  border-color: #ffd2d2;
  box-shadow: inset 0 3px 0 #ff3333;
}

.tpp-quiz-summary-item span,
.tpp-account-summary-item span {
  display: block;
  margin-bottom: 5px;
  color: #777777;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.tpp-quiz-summary-item strong,
.tpp-account-summary-item strong {
  display: block;
  color: #111111;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.tpp-account-summary-item.primary strong {
  font-size: 27px;
}

.tpp-account-summary-item strong.compact {
  font-size: 16px;
  line-height: 1.35;
}

.tpp-account-summary-item strong.positive,
.tpp-bankroll-detail-row strong.positive {
  color: #0f6e56;
}

.tpp-account-summary-item strong.negative,
.tpp-bankroll-detail-row strong.negative {
  color: #a32d2d;
}

.tpp-quiz-active-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 17px 18px;
  background: #fff6f6;
  border: 1px solid #ffd3d3;
  border-left: 4px solid #ff3333;
  border-radius: 13px;
}

.tpp-quiz-active-content {
  min-width: 0;
}

.tpp-quiz-active-status {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 5px 8px;
  color: #a32d2d;
  background: #ffe4e4;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.tpp-quiz-active-content h4 {
  margin: 0 0 4px;
  color: #111111;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
}

.tpp-quiz-active-content p {
  margin: 0;
  color: #666666;
  font-size: 12px;
  line-height: 1.5;
}

.tpp-quiz-active-link {
  flex-shrink: 0;
}

.tpp-quiz-history-heading,
.tpp-account-history-heading {
  margin-bottom: 12px;
}

.tpp-quiz-history-heading h4,
.tpp-account-history-heading h4 {
  margin: 0 0 4px;
  color: #111111;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.tpp-quiz-history-heading p,
.tpp-account-history-heading p {
  margin: 0;
  color: #777777;
  font-size: 12px;
  line-height: 1.5;
}

.tpp-quiz-table-wrap,
.tpp-account-table-wrap {
  width: 100%;
  margin-bottom: 20px;
  overflow-x: auto;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.tpp-quiz-progress-table,
.tpp-account-session-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #ffffff;
}

.tpp-quiz-progress-table th,
.tpp-quiz-progress-table td,
.tpp-account-session-table th,
.tpp-account-session-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #eeeeee;
  text-align: left;
  vertical-align: middle;
}

.tpp-quiz-progress-table th,
.tpp-account-session-table th {
  color: #666666;
  background: #f4f4f4;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tpp-quiz-progress-table td,
.tpp-account-session-table td {
  color: #444444;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.tpp-quiz-progress-table td strong,
.tpp-account-session-table td strong {
  color: #111111;
  font-weight: 900;
}

.tpp-quiz-progress-table tbody tr:last-child td,
.tpp-account-session-table tbody tr:last-child td {
  border-bottom: 0;
}

.tpp-quiz-progress-table tbody tr:hover,
.tpp-account-session-table tbody tr:hover {
  background: #fafafa;
}

.tpp-quiz-status,
.tpp-account-result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.tpp-quiz-status.passed,
.tpp-account-result-pill.positive {
  color: #0f6e56;
  background: #eafaf1;
}

.tpp-quiz-status.not-passed,
.tpp-account-result-pill.negative {
  color: #a32d2d;
  background: #fff0f0;
}

.tpp-account-result-pill.even {
  color: #666666;
  background: #f1f1f1;
}

/* Best Test tooltip */

@media (min-width: 768px) {
  .tpp-dashboard-card-quiz,
  .tpp-quiz-table-wrap,
  .tpp-quiz-progress-table,
  .tpp-quiz-progress-table thead,
  .tpp-quiz-progress-table th {
    overflow: visible !important;
  }

  .tpp-quiz-table-wrap {
    overflow-x: visible !important;
  }
}

.tpp-quiz-th-with-tip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  overflow: visible;
}

.tpp-quiz-info-tip {
  appearance: none;
  position: relative;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  min-width: 17px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #222222;
  color: #ffffff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 900;
  line-height: 17px;
  cursor: help;
  overflow: visible !important;
  box-shadow: none;
}

.tpp-quiz-info-tip:hover,
.tpp-quiz-info-tip:focus,
.tpp-quiz-info-tip:focus-visible {
  background: #ff3333;
  color: #ffffff;
  outline: none;
}

.tpp-quiz-info-tip-text {
  position: absolute;
  left: calc(100% + 11px);
  top: 50%;
  z-index: 9999;
  width: 240px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #22272b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(-4px);
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease,
    transform 0.15s ease;
}

.tpp-quiz-info-tip-text::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  border: 6px solid transparent;
  border-right-color: #22272b;
  transform: translateY(-50%);
}

.tpp-quiz-info-tip:hover .tpp-quiz-info-tip-text,
.tpp-quiz-info-tip:focus .tpp-quiz-info-tip-text,
.tpp-quiz-info-tip:focus-visible .tpp-quiz-info-tip-text {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 767px) {
  .tpp-quiz-info-tip {
    display: none;
  }
}

.tpp-quiz-empty-state,
.tpp-account-empty-state {
  margin-bottom: 18px;
  padding: 17px 18px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
}

.tpp-quiz-empty-state p:last-child,
.tpp-account-empty-state p:last-child {
  margin: 0;
  color: #666666;
  font-size: 13px;
  line-height: 1.55;
}

/* Bankroll details */

.tpp-bankroll-detail-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px 16px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
}

.tpp-bankroll-detail-row > div {
  min-width: 0;
}

.tpp-bankroll-detail-row span {
  display: block;
  margin-bottom: 4px;
  color: #777777;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.tpp-bankroll-detail-row strong {
  display: block;
  color: #111111;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .tpp-quiz-summary-grid,
  .tpp-account-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tpp-academy-dashboard {
    margin: 22px auto;
    padding: 0 10px;
  }

  .tpp-academy-dashboard-inner {
    padding: 22px 15px;
    border-radius: 17px;
  }

  .tpp-academy-dashboard-header {
    margin-bottom: 22px;
  }

  .tpp-academy-logo-mark {
    width: 48px;
    height: 48px;
  }

  .tpp-academy-dashboard-header h2 {
    font-size: 29px;
  }

  .tpp-dashboard-card {
    padding: 18px 14px;
    border-radius: 15px;
  }

  .tpp-quiz-dashboard-heading,
  .tpp-account-dashboard-heading {
    gap: 12px;
  }

  .tpp-dashboard-card-icon {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
  }

  .tpp-dashboard-card-icon img {
    width: 42px;
    height: 42px;
  }

  .tpp-dashboard-card h3 {
    font-size: 20px;
  }

  .tpp-quiz-summary-grid,
  .tpp-account-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tpp-quiz-summary-item,
  .tpp-account-summary-item {
    padding: 13px;
  }

  .tpp-quiz-summary-item strong,
  .tpp-account-summary-item strong {
    font-size: 19px;
  }

  .tpp-account-summary-item.primary strong {
    font-size: 22px;
  }

  .tpp-quiz-active-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .tpp-quiz-active-link,
  .tpp-quiz-dashboard-main-link,
  .tpp-account-dashboard-main-link,
  .tpp-dashboard-main-button {
    width: 100%;
  }

  .tpp-bankroll-detail-row {
    grid-template-columns: 1fr;
  }

  .tpp-quiz-table-wrap,
  .tpp-account-table-wrap {
    overflow: visible;
    border: 0;
  }

  .tpp-quiz-progress-table,
  .tpp-account-session-table {
    min-width: 0;
  }

  .tpp-quiz-progress-table thead,
  .tpp-account-session-table thead {
    display: none;
  }

  .tpp-quiz-progress-table,
  .tpp-quiz-progress-table tbody,
  .tpp-quiz-progress-table tr,
  .tpp-quiz-progress-table td,
  .tpp-account-session-table,
  .tpp-account-session-table tbody,
  .tpp-account-session-table tr,
  .tpp-account-session-table td {
    display: block;
    width: 100%;
  }

  .tpp-quiz-progress-table tr,
  .tpp-account-session-table tr {
    margin-bottom: 12px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
  }

  .tpp-quiz-progress-table tr:last-child,
  .tpp-account-session-table tr:last-child {
    margin-bottom: 0;
  }

  .tpp-quiz-progress-table td,
  .tpp-account-session-table td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eeeeee;
    overflow-wrap: anywhere;
  }

  .tpp-quiz-progress-table td:last-child,
  .tpp-account-session-table td:last-child {
    border-bottom: 0;
  }

  .tpp-quiz-progress-table td::before,
  .tpp-account-session-table td::before {
    content: attr(data-label);
    color: #777777;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0.35px;
    text-transform: uppercase;
  }
}

@media (max-width: 480px) {
  .tpp-quiz-dashboard-heading,
  .tpp-account-dashboard-heading {
    flex-direction: column;
  }

  .tpp-quiz-summary-grid,
  .tpp-account-summary-grid {
    grid-template-columns: 1fr;
  }

  .tpp-quiz-progress-table td,
  .tpp-account-session-table td {
    grid-template-columns: 100px minmax(0, 1fr);
  }

}
