/**
 * Optimized CSS for public-specific functionality with overlay for modal.
 */

.gamplify-journey-frontend {
  padding: 20px;
}

.gamplify-journey-frontend .tabs {
  display: flex;
  gap: 30px;
 
  /* smooth scrolling on mobile */
}

.gamplify-journey-tabs-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
     -webkit-overflow-scrolling: touch;
}


/* Optional: style scrollbar for better UX */
.gamplify-journey-frontend .gamplify-journey-tabs-container::-webkit-scrollbar {
  height: 8px;
}

.gamplify-journey-frontend .gamplify-journey-tabs-container::-webkit-scrollbar-thumb {
  background: #000000;
  border-radius: 4px;
}

 
.gamplify-journey-frontend .tab {
  position: relative;
  text-align: center;
  cursor: pointer;
  padding: 10px;
  color: #444;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.gamplify-journey-frontend .tab.active {
  font-weight: bold;
  color: #000;
      border: 1px solid;
    border-radius: 10px;
}

.gamplify-journey-frontend .tab i {
  display: block;
  font-size: 22px;
  margin-bottom: 5px;
}


.gamplify-journey-frontend .tab-content {
  display: none;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.gamplify-journey-frontend .tab-content.active {
  display: block;
}

.gamplify-journey-frontend .action-item {
  margin: 15px 0;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background 0.2s, border-color 0.2s;
}

.gamplify-journey-frontend .action-item:hover {
  border-color: #ccc;
  background: #fafafa;
}

.gamplify-journey-frontend .action-item-left-content input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.gamplify-journey-frontend .action-item-right-content {
  flex: 1;
}

.gamplify-journey-frontend .action-item-right-content label {
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 4px;
}

.gamplify-journey-frontend .action-item-right-content p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* ✅ Checked state style */
.gamplify-journey-frontend .action-item-left-content input[type="checkbox"]:checked+label,
.gamplify-journey-frontend .action-item-right-content label:has(+ p input:checked) {
  text-decoration: line-through;
  color: #999;
}

/* Optional: whole card looks dimmed when checked */
.gamplify-journey-frontend .action-item input[type="checkbox"]:checked~.action-item-right-content {
  opacity: 0.6;
}

.gamplify-journey-frontend .status {
  float: right;
  background: #f0f2f5;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: #444;
}


 
.gamplify-journey-frontend .gamplify-journey-frontend-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
  border: 2px solid;
  border-radius: 50%;
  padding: 5px;
}

 

.gamplify-journey-frontend .tab::after {
    content: attr(data-label);
    position: absolute;
    top: -50px; /* adjust depending on placement */
    left: 50%; /* center horizontally */
    transform: translateX(-50%);
    background: #ffffff;
    color: #000000;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    width: 250px;        /* fixed width */
    max-width: 250px;    /* prevent growing larger */
    white-space: normal; /* allow wrapping */
    word-wrap: break-word;
    text-align: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
    border: 1px solid #e2e8f0;
    font-weight: normal;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gamplify-journey-frontend .tab:hover::after {
    opacity: 1;
}
.gamplify-journey-frontend .tab:first-child::after {
    left: 1%;
    transform: translateX(0);
    text-align: left;
}

/* Last tab → align tooltip to the left side */
.gamplify-journey-frontend .tab:last-child::after {
    left: auto;
    right: 10%;
    transform: translateX(0);
    text-align: right;
}


.gamplify-journey-frontend .tab.active img.gamplify-journey-frontend-icon {
  border: 4px solid;
  width: 45px;
  height: 45px;
}

.gamplify-journey-frontend .card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}

.gamplify-journey-frontend .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gamplify-journey-frontend .card-icon img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* circle */
  background: #f3f4f6;
  padding: 6px;
}

.gamplify-journey-frontend .card-body {
  flex: 1;
  margin-left: 12px;
}

.gamplify-journey-frontend .card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}

.gamplify-journey-frontend .card-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}
 
.gamplify-journey-frontend .action-item label.checked {
  text-decoration: line-through;
  color: #64748b;
}

.gamplify-journey-frontend .card-status {
    padding: 0px 7px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid;
}

.gamplify-journey-frontend .card-status.completed {
  background: #2ecc71;
  color: #fff;
}


.gamplify-journey-frontend .action-check {
    appearance: none;         /* remove default browser style */
    -webkit-appearance: none; /* Safari */
    -moz-appearance: none;    /* Firefox */
    width: 18px;
    height: 18px;
    border: 2px solid #000;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    background: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

/* When checked → black background */
.gamplify-journey-frontend .action-check:checked {
    background: #000;
    border-color: #000;
}

/* Optional: add a white checkmark inside */
.gamplify-journey-frontend .action-check:checked::after {
    content: "✔";
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.gamplify-journey-frontend .tab.completed {
    background: yellow;
    border-radius: 10px;
}