.stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 1000px;
  margin: auto;
}

.step {
  position: relative;
  text-align: center;
  flex: 1;
  color: #999;
}

/* Connecting line */
.step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 2px;
  background-color: #ddd;
  z-index: 0;
}

/* Remove line from first step */
.step:first-child::before {
  display: none;
}

.step.completed::before {
  background-color: #0d6efd;
}

.circle {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: #ddd;
  margin: 0 auto 8px;
  line-height: 28px;
  color: white;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.circle i {
  color: white;
  font-size: 14px;
  line-height: 28px;
  display: inline-block;
  vertical-align: middle;
}

.step .circle::after {
  content: "";
}

.step.completed .circle {
  border: 2px solid #0d6efd;
  background-color: #fff;
  color: #0d6efd;
}

.step.completed .circle i {
  color: #0d6efd;
  font-weight: bold;
}

.step a {
  text-decoration: none;
  color: inherit;
}

.step.completed a,
.step.active a {
  color: #0d6efd;
  font-weight: 500;
}

/* ------ Progress Bar ------ */
.progress-container {
  background-color: #edf0fc;
  border-radius: 999px;
  height: 16px;
  position: relative;
  width: 100%;
  max-width: 600px;
}

.progress-bar-fill {
  background-color: #1a5fff;
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.step-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #1a5fff;
  z-index: 2;
}

.step-dot.completed {
  background-color: white;
  box-shadow: 0 0 0 4px #1a5fff;
}

/* Place each dot at evenly spaced intervals (0%, 25%, 50%, 75%) */
.step-dot.step-1 {
  left: 0%;
}
.step-dot.step-2 {
  left: 20%;
}
.step-dot.step-3 {
  left: 40%;
}
.step-dot.step-4 {
  left: 60%;
}
.step-dot.step-5 {
  left: 80%;
}

/* ------- Progress Bar END -------- */

/* Custom badge */
.custom-badge {
  display: inline-flex;
  align-items: center;
  background-color: #fff8e1;
  color: #e68a00;
  font-weight: 500;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 10px;
}

.custom-badge i {
  margin-right: 8px;
  font-size: 16px;
}
/* Custom badge END */

/* Custom circle icon */
.custom-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f0f2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #3546b0;
}

.custom-icon-circle.big {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

.custom-upload-btn-sm {
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  min-width: auto !important;
  border-radius: 50% !important;
  background-color: #adb5bd !important;
  border-color: #adb5bd !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.custom-upload-btn-sm:hover {
  background-color: #969ca3 !important;
  border-color: #969ca3 !important;
}

.custom-upload-btn-sm i {
  color: #1a5fff !important;
  font-size: 14px !important;
}

.custom-badge-success {
  background-color: #d1f5e0;
  color: #1a9c58;
  font-size: 12px;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.custom-badge-warning {
  background-color: #fff8e1;
  color: #e68a00;
  font-size: 12px;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.custom-badge-primary {
  background-color: #0d6efd;
  color: #fff;
  font-size: 12px;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.custom-badge-alert {
  background-color: #dc3545;
  color: #fff;
  font-size: 10px;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.custom-card {
  border: none;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 0 0 1px #f0f2f5;
  height: 100%;
}
/* Custom circle icon END */

.bg-grey {
  background-color: #d1d5db !important;
}

.bg-secondary-600 {
  background-color: #6c757d !important;
}

.bg-secondary-400 {
  background-color: #adb5bd !important;
}

.bg-secondary-100 {
  background-color: #f8f9fa !important;
}

.fc-daygrid-day-number,
.fc-col-header-cell-cushion {
  text-decoration: none !important;
  color: black;
  font-weight: bolder;
}

.w-36 {
  width: 36px !important;
}

.h-36 {
  height: 36px !important;
}

/* Custom Timeline */
.custom-timeline {
  position: relative;
  margin-left: 2rem;
}

.custom-timeline::before {
  content: "";
  position: absolute;
  top: 1.6rem; /* Start line just below first dot */
  bottom: 1.6rem; /* End line just above last dot */
  left: 0;
  width: 2px;
  background-color: #dee2e6;
}

.custom-timeline-item {
  position: relative;
  padding: 1rem 0 1rem 1.5rem;
}

.custom-timeline-dot {
  position: absolute;
  left: -0.5rem;
  top: 1.2rem; /* Perfect vertical alignment with text */
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #0d6efd;
  background-color: #fff;
}

.custom-status-green {
  color: #28a745;
}

.custom-status-orange {
  color: #ffc107;
}

.custom-status-red {
  color: #dc3545;
}

.custom-status-blue {
  color: #0d6efd;
}

.custom-timeline-time {
  font-size: 0.75rem;
  color: #6c757d;
}
/* Custom Timeline END */

/* Custom Progress Timeline */
.custom-progress-timeline {
  position: relative;
  margin-left: 2rem;
}

.custom-progress-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8.5rem;
  width: 2px;
  background-color: #0d6efd;
}

.custom-progress-timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 1.25rem 0;
}

.custom-progress-timeline-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #0d6efd;
  background-color: #fff;
  z-index: 1;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.custom-progress-timeline-date {
  width: 100px;
  text-align: right;
  font-weight: 500;
  font-size: 0.875rem;
  color: #343a40;
  margin-right: 1rem;
  flex-shrink: 0;
}

.custom-progress-timeline-content {
  flex-grow: 1;
}

.custom-progress-timeline-title {
  font-weight: 600;
  color: #1a1a2d;
  margin-bottom: 0.25rem;
}

.custom-progress-timeline-desc {
  font-size: 0.875rem;
  color: #555;
}

.custom-progress-timeline-link {
  font-size: 0.875rem;
  color: #0d6efd;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.25rem;
}

.custom-progress-timeline-status {
  width: 8px;
  height: 8px;
  background-color: #28a745;
  border-radius: 50%;
  display: inline-block;
  margin-left: 0.5rem;
}
.custom-progress-timeline-item:first-child
  .custom-progress-timeline-dot::before,
.custom-progress-timeline-item:last-child .custom-progress-timeline-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background-color: white; /* match background to "erase" line ends */
}

.custom-progress-timeline-item:first-child .custom-progress-timeline-dot::before {
  content: '';
  position: absolute;
  top: -95px;
  bottom: 110%;
  left: 40%;
  transform: translateX(-50%);
  width: 4px;
  background-color: #fff; /* or match background */
  z-index: 2;
}

/* Remove bottom of line for last item */
.custom-progress-timeline-item:last-child .custom-progress-timeline-dot::after {
  content: '';
  position: absolute;
  top: 110%;
  bottom: -100px;
  left: 45%;
  transform: translateX(-50%);
  width: 4px;
  background-color: #fff;
  z-index: 2;
}

/* Custom Progress Timeline END */

/* Custom Radio Square */
.custom-radio-square input[type="radio"] {
  opacity: 0;
  position: absolute;
}

.custom-radio-square {
  position: relative;
  width: 24px;
  height: 24px;
}

.custom-radio-square .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  border-radius: 0.5rem;
  border: 2px solid #cfd8dc;
  background-color: #fff;
  transition: all 0.2s ease;
}

.custom-radio-square input[type="radio"]:checked + .checkmark {
  background-color: #f1f4ff;
  border-color: #233a91;
}

.custom-radio-square .checkmark::after {
  content: "";
  position: absolute;
  display: none;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #233a91;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.custom-radio-square input[type="radio"]:checked + .checkmark::after {
  display: block;
}
/* Custom Radio Square END */

button:disabled,
button[disabled] {
  cursor: not-allowed !important;
  opacity: 0.5 !important;
  pointer-events: none;
}

button:disabled:hover,
button[disabled]:hover {
  opacity: 0.5 !important;
}

/* Disabled button with primary theme */
.d-btn.d-btn-theme:disabled,
.d-btn.d-btn-theme[disabled],
.d-btn.primary-btn:disabled,
.d-btn.primary-btn[disabled] {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Custom Chat Room */
.custom-chat-room {
  max-height: 500px;
  overflow-y: auto;
}

#chatRoom {
  height: 400px;
  overflow-y: auto;
}

.custom-chat-avatar {
  width: 36px;
  height: 36px;
  font-size: 0.75rem;
  font-weight: 600;
}

.custom-chat-bubble {
  max-width: 40%;
  border-radius: 0.75rem;
  position: relative;
  background-color: #ffffff;
}

.custom-chat-incoming {
  background-color: #f8f9fc;
}

.custom-chat-incoming::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 12px;
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-color: transparent #f8f9fc transparent transparent;
}

.custom-chat-outgoing {
  background-color: #ffffff;
}

.custom-chat-outgoing::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 12px;
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}
/* Custom Chat Room END */

/* Disabled Input Styling */
input:disabled,
input[disabled],
textarea:disabled,
textarea[disabled],
select:disabled,
select[disabled] {
  background-color: #e9ecef !important;
  color: #495057 !important;
  opacity: 1 !important;
}

.input-group input:disabled,
.input-group input[disabled] {
  background-color: #e9ecef !important;
  color: #495057 !important;
  opacity: 1 !important;
}
/* Disabled Input Styling END */

/* Accordion Header - Prevent Color Change */
.accordion-button,
.accordion-button:not(.collapsed),
.accordion-button:hover,
.accordion-button:active,
.accordion-button:focus {
  background-color: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
}

.accordion-button::after {
  filter: brightness(0) !important;
}
/* Accordion Header END */

.note-toolbar {
  z-index: 100 !important;
}

.auth-btn {
  background-color: #0d85bc !important;
  color: #fff !important;
}

.auth-btn-invert {
  background-color: #fff !important;
  color: #0d85bc !important;
  border: 2px solid #0d85bc !important;
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.bg-info {
  background-color: #EDF9FF !important;
}

.border-info {
  border: 1px solid;
  border-color: #4F72DC !important;
}
/* Periksa Status Registrasi */
#periksa-status-registrasi-wp .btn-lihat-klu,
#lihat-klu-side-content .btn-lihat-klu,
#info-penyedia-side-content .btn-tutup-outline {
    border: 2px solid #0d85bc;
    color: #0d85bc;
    background-color: transparent;
}

#lihat-klu-side-content,
#info-penyedia-side-content {
    width: 536px;
}

/* Aktivasi */
#aktivasi-wp .aktivasi-left-col {
    background-color: #F1F5F9;
    flex: 0 0 47%;
    max-width: 47%;
}

#aktivasi-wp .aktivasi-left-col .card {
    background-color: #ffffff;
    border-radius: 5px !important;
}

#aktivasi-right-col {
    background-color: #2058D5;
    color: #ffffff;
    flex: 0 0 53%;
    max-width: 53%;
    padding-left: 70px;
    padding-right: 50px;
}
