.gamplify-journey-frontend {
  padding: 20px;
}
.gamplify-journey-frontend .swal2-popup {
  background: transparent !important;
  box-shadow: none !important;
}

.gamplify-journey-frontend .swal2-loader {
  border-top-color: #f6ff88 !important;
  border-right-color: #f6ff88 !important;
}

.gamplify-journey-frontend .tabs {
  display: flex;
  gap: 20px;
}
.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;
}
.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;
  font-size: 10px;
}
.action-item-desc p{
 font-size: 11.2px!important;
}
.action-item-desc p a{
  font-size: 11.2px!important;
  /* text-decoration: underline; */
 }
.action-item-desc li{
  font-size: 11.2px!important;
  list-style-type: disc;
}
.action-item-desc ul{
 
  margin-left: 15px;
 
}

.action-item-desc li a{
  font-size: 11.2px!important;
  text-decoration: underline;
}
.gamplify-journey-frontend .tab.active {
  font-weight: bold;
  color: #000;
  border: 1px solid #000;
  border-radius: 10px;
  background: #f6ff88;
}

.gamplify-journey-frontend .tab.completed {
  background: yellow;
  border-radius: 10px;
}

.gamplify-journey-frontend .tab i {
  display: block;
  font-size: 22px;
  margin-bottom: 5px;
}
.gamplify-journey-frontend .tab::after {
  content: attr(data-label);
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: #000000;
  color: #f4ff76;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  width: 250px;
  max-width: 250px;
  white-space: normal;
  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.slick-slide::after {
  top: -25px !important;
}
.gamplify-journey-frontend .tab:hover::after {
  opacity: 1;
}
.gamplify-journey-frontend .tab:first-child::after {
  left: 1%;
  transform: translateX(0);
}
.gamplify-journey-frontend .tab:last-child::after {
  left: auto;
  right: 10%;
  transform: translateX(0);
}
.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 .gamplify_journey_title {
  margin-top: 20px;
}
.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;
  line-height: 20px;
}
.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 states */
.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;
}
.gamplify-journey-frontend .action-item input[type="checkbox"]:checked~.action-item-right-content {
  opacity: 0.6;
}

.gamplify-journey-frontend .action-item label.checked {
  text-decoration: line-through;
  color: #64748b;
}

.gamplify-journey-frontend .action-check {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  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;
}
.gamplify-journey-frontend .action-check:checked {
  background: #000;
  border-color: #000;
}
.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 .status {
  float: right;
  background: #f0f2f5;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: #444;
}
.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%;
  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;
}

/* Card status */
.gamplify-journey-frontend .card-status {
  padding: 0px 7px;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid;
  background: #000000;
  color: #ffffff;
}
.gamplify-journey-frontend .card-status.completed {
  background: #f6ff88;
  color: #000000;
}
.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;
  margin: auto !important;
}

.gamplify-journey-frontend .card-header-content {
    display: flex;
    align-items: center;
        gap: 5px;
}



.gamplify-journey-frontend .tabs{padding: 0 40px; position: relative;}
.gamplify-journey-frontend .slick-arrow{
  width: 30px;
    height: 30px;
    padding: 0;
  font-size:0;
  background: transparent;
    border-color: #000;
}
 
.gamplify-journey-frontend .slick-next.slick-arrow {
    right: 0;
    left: inherit;
    background-image: url(/wp-content/plugins/gamplify-application-journey-addon/images/right-arrow.png);
    background-size: 15px;
    background-repeat: no-repeat;
    background-position: center;
}
.gamplify-journey-frontend .slick-prev.slick-arrow{left:0; background-image: url(/wp-content/plugins/gamplify-application-journey-addon/images/right-arrow.png);
    background-size: 15px;
    background-repeat: no-repeat;
    background-position: center; 
    transform: rotate(180deg); }

.gamplify-journey-frontend .slick-track{display: flex;}
.gamplify-journey-frontend .slick-list{ padding-top: 30px; padding-bottom:30px; }



@media (max-width: 768px) {
  .gamplify-journey-frontend .card-header {
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Align left */
    gap: 10px;
  }

  .gamplify-journey-frontend .card-header-content {
    gap: 10px;
  }

  .gamplify-journey-frontend .card-body {
    margin-left: 0; /* Remove left margin so it fits under the icon */
    margin-top: 8px;
  }

  .gamplify-journey-frontend .card-icon img {
    width: 32px;
    height: 32px;
  }

  .gamplify-journey-frontend .card-title {
    font-size: 14px; /* Slightly smaller on mobile */
  }

  .gamplify-journey-frontend .card-desc {
    font-size: 13px;
  }

  .gamplify-journey-frontend .card-status {
    align-self: flex-end; /* Keep status aligned to the right */
    font-size: 12px;
    padding: 2px 6px;
  }
}


/* Extra small devices (phones under 480px) */
@media (max-width: 480px) {
  .gamplify-journey-frontend {
    padding: 10px; /* Reduce padding for small screens */
  }

  .gamplify-journey-frontend .card-title {
    font-size: 13px;
  }

  .gamplify-journey-frontend .card-desc {
    font-size: 12px;
            line-height: 15px;
  }

  .gamplify-journey-frontend .card-status {
    font-size: 11px;
    padding: 2px 5px;
  }
  .gamplify-journey-frontend .action-item-right-content p{
    line-height: 15px;
  }
}

