/* * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
} */

/* 1. Main Trigger Button */
.view-report-btn {
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  border: none;
  background-color: transparent;
  text-decoration: underline;
}

.btn-arrow {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.view-report-btn:hover .btn-arrow {
  max-width: 40px;
  opacity: 1;
  margin-left: 10px;
}

/* 2. Modal Layout */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 15px;
}

.hidden {
  display: none;
}

.modal-container {
  background: white;
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
}

.header-title-desktop {
  color: #7d46a4;
  font-size: 24px;
}
.header-title-mobile {
  display: none;
}

.close-btn {
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  font-size: 18px;
}

.divider {
  border-bottom: 1px solid #ddd;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
  padding-top: 60px;
}

/* 3. Cards Section */
.compat-section {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  border-radius: 12px;
  padding: 25px;
  width: 100%;
}
.card-purple-bg {
  background-color: #ecedf5;
}
.lg-card {
  flex: 2;
  position: relative;
}
.sm-card {
  flex: 1;
}

.subtitle {
  color: #666;
  font-size: 14px;
  margin-top: 8px;
}

/* 4. Progress Card Inside Section */
.progress-card {
  background: white;
  border-radius: 100px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 15px;
  margin: 25px 0;
  max-width: 350px;
}

.score-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.progress-info {
  flex: 1;
}
.progress-info h4 {
  font-size: 14px;
}
.progress-info p {
  font-size: 11px;
  color: #666;
}

.progress-bar-container {
  background: #e0e0e0;
  height: 8px;
  border-radius: 10px;
  margin-top: 4px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
}

/* Colors mapping */
.score-moderate {
  background-color: #dd9999;
  color: white;
}
.border-red {
  border-left: 4px solid #ff0000;
}
.border-pink {
  border-left: 4px solid #dd9999;
}
.border-orange {
  border-left: 4px solid #f5b640;
}
.border-yellow {
  border-left: 4px solid #dddd00;
}
.border-green {
  border-left: 4px solid #71c271;
}

.legend-grid {
  display: flex;
  /* flex-direction: column; */
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}
.legend-item {
  background: white;
  padding: 8px 20px;
  font-size: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  min-width: 170px;
}
.legend-item span {
  font-weight: bold;
  margin-right: 5px;
}

/* 6. Motivation Scale */
.center-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.neutral-emoji {
  font-size: 80px;
  color: #666;
  margin: 20px 0;
}
.motivation-scale {
  position: relative;
  width: 240px;
  margin-top: 20px;
}
.scale-line {
  height: 1px;
  background: #605d5d;
  width: 94%;
  position: absolute;
  top: 8px;
}
.scale-points {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.scale-points .active {
  color: #71c271;
  background: white;
  border-radius: 50%;
}

.scale-labels {
  display: flex;
  width: 100%;
  justify-content: space-between;
  font-size: 10px;
  color: #6f6f6f;
  margin-top: 5px;
}

/* 7. Table Styling */
.section-title {
  margin-bottom: 20px;
  font-size: 22px;
}
.table-wrapper {
  border: 1px solid #ddd;
  border-radius: 12px;
  /* overflow: hidden; */
}
.career-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.career-table thead tr {
  background: #ecedf5;
  color: black;
}

.career-table th,
.career-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
}
/* ================================================ */
.head-tooltip-container {
  position: relative;
  display: inline-block;
}

.head1-tooltip-text {
  cursor: pointer;
  visibility: hidden;
  width: 280px;
  background-color: white;
  color: #333;
  padding: 10px;
  border-radius: 8px;
  position: absolute;
  z-index: 99999;
  font-size: 12px;
  top: 125%;
  left: -110%;
  transform: translateX(-50%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid #ddd;
  pointer-events: none;
}
.head2-tooltip-text {
  cursor: pointer;
  visibility: hidden;
  width: 280px;
  background-color: white;
  color: #333;
  padding: 10px;
  border-radius: 8px;
  position: absolute;
  z-index: 99999;
  font-size: 12px;
  top: 125%;
  left: -200%;
  transform: translateX(-50%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid #ddd;
  pointer-events: none;
}

.head1-tooltip-text::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 60%;
  rotate: 180deg;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}
.head2-tooltip-text::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 65%;
  rotate: 180deg;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

.head-tooltip-container:hover .head1-tooltip-text .head2-tooltip-text {
  visibility: visible;
}
.head-tooltip-container:hover .head2-tooltip-text {
  visibility: visible;
}

.alt-row {
  background: #f9f9fb;
}

/* .tooltip-container {
  position: relative;
  display: inline-block;
} */

.badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}
.eligible {
  color: #71c271;
  border-color: #71c271;
  background: #ebf9f1;
}

/* 8. Tooltips */
.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-container1 {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  cursor: pointer;
  visibility: hidden;
  width: 280px;
  background-color: white;
  color: #333;
  padding: 12px;
  border-radius: 8px;
  position: absolute;
  z-index: 9999;
  font-size: 12px;
  top: 125%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid #ddd;
  pointer-events: none;
}

.tooltip-text1 {
  cursor: pointer;
  visibility: hidden;
  width: 280px;
  background-color: white;
  color: #333;
  padding: 10px;
  border-radius: 8px;
  position: absolute;
  z-index: 9999;
  font-size: 12px;
  top: 125%;
  left: -110%;
  transform: translateX(-50%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid #ddd;
  pointer-events: none;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  rotate: 180deg;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}
.tooltip-text1::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 60%;
  rotate: 180deg;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}
.tooltip-container:hover .tooltip-text {
  visibility: visible;
}
.tooltip-container1:hover .tooltip-text1 {
  visibility: visible;
}
.motivation-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Container for the bottom section */
.choices-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  padding-top: 20px;
}

.section-subtitle {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.44;
  text-align: left;
  margin-bottom: 20px;
}

/* Pills / Buttons */
.career-pills {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  margin-bottom: 30px;
  overflow-x: auto; /* Allows scrolling on mobile */
}

.pill {
  width: 128px; /* w-32 */
  height: 40px; /* h-10 */
  background-color: #edf0f3;
  border-radius: 9999px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  text-transform: capitalize;
  cursor: pointer;
  flex-shrink: 0;
}

/* Active State for the Pill */
.active-pill {
  background-color: #7d46a4; /* Matches your brand Purple */
  color: white;
  border-color: #7d46a4;
}

/* Content List */
.choices-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.choice-item {
  display: flex;
  flex-direction: column;
}

.choice-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.6;
  color: #7d46a4; /* primary-Mcd-Purple */
}

.choice-desc {
  font-size: 18px;
  color: black;
  margin-top: 4px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .section-subtitle {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .choice-title {
    font-size: 18px;
  }
  .career-pills {
    margin-bottom: 15px;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .compat-section {
    flex-direction: column;
  }
  .header-title-desktop {
    display: none;
  }
  .header-title-mobile {
    display: block;
    color: #7d46a4;
    font-size: 18px;
  }
}

/* Refined Table Wrapper */
.table-wrapper {
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow-x: auto; /* Essential for mobile */
  -webkit-overflow-scrolling: touch;
}

.career-table {
  min-width: 600px; /* Forces scroll instead of squashing columns */
  width: 100%;
}

@media (max-width: 640px) {
  .career-table th,
  .career-table td {
    padding: 10px;
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .compat-section {
    flex-direction: column;
    gap: 24px;
  }

  .lg-card,
  .sm-card {
    flex: none;
    width: 100%;
  }

  .progress-card {
    max-width: 100%; /* Allow progress bars to breathe on mobile */
  }
}

@media (max-width: 600px) {
  .tooltip-text,
  .tooltip-text1,
  .head1-tooltip-text,
  .head2-tooltip-text {
    width: 240px;
    left: 50% !important; /* Force center alignment */
    transform: translateX(-50%) !important;
    font-size: 11px;
  }

  /* Hide the tooltip arrows on mobile to prevent alignment bugs */
  .tooltip-text::after,
  .tooltip-text1::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .modal-body {
    padding: 20px; /* Less padding on mobile to save space */
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-header img {
    width: 120px; /* Scale down logo */
    height: auto;
  }

  .choice-title {
    font-size: 1.25rem;
    line-height: 1.2;
  }

  .choice-desc {
    font-size: 15px;
  }

  .legend-grid {
    gap: 8px;
  }

  .legend-item {
    min-width: 45%; /* Two items per row on mobile */
    padding: 8px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .progress-card {
    padding: 15px;
    gap: 10px;
  }

  .score-badge {
    width: 35px;
    height: 35px;
    font-size: 11px;
  }
}
