:root {
  --main-primary-color: #1f4bea;
  --main-secondary-color: #00cfff;
  --main-primary-darker-color: #0F2E9F;

  --completed-color: #01d0a3;
  --current-color: var(--main-primary-color);
  --remaining-color: #fff;
  --text-color: #333;
  --background-color: #f8f9fa;
  --icon-color: var(--main-primary-color);
  --line-color: #e9ecef;
  --rejected-color: #dc3545;
  --on-hold-color: #fd7e14;
}

[data-bs-theme=dark] {
  --remaining-color: #1B1B29;
  --text-color: #CDCDDE;
  --background-color: #131320;
  --line-color: #2B2B40;
}
[data-bs-theme=dark] .circle {
  box-shadow: 0 0 10px rgba(31, 75, 234, 0.5);
}
[data-bs-theme=dark] .step:not(.completed):not(.current):not(.rejected):not(.on-hold) .icon {
  color: #6E7BFF;
}
[data-bs-theme=dark] .step-text {
  background-color: rgba(27, 27, 41, 0.95);
  color: #CDCDDE;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Custom-card-header (the "9/11 Underwriting" pill bar) */
[data-bs-theme=dark] .custom-card-header {
  background-color: #1B1B29 !important;
  border-color: #2B2B40 !important;
}
[data-bs-theme=dark] .progress-ring__text { color: #CDCDDE; }
[data-bs-theme=dark] .custom-card-header .card-title h3,
[data-bs-theme=dark] .custom-card-header .card-title { color: #FFFFFF; }

/* Phase headers under the bar */
[data-bs-theme=dark] .phase-title { color: #6E7BFF; }
[data-bs-theme=dark] .phase-main-title { color: #FFFFFF; }
[data-bs-theme=dark] .phase-instruction { color: #9A9CB5; }

/* Separator line under the phase header — gradient is hardcoded black */
[data-bs-theme=dark] .separator-line {
  background-image: linear-gradient(
    to right,
    rgba(205, 205, 222, 0.4),
    rgba(205, 205, 222, 0.4),
    rgba(205, 205, 222, 0)
  );
}

/* Generic card containers used by tab content */
[data-bs-theme=dark] .custom-container {
  background-color: #1B1B29;
  color: #CDCDDE;
}
[data-bs-theme=dark] .custom-label { color: #FFFFFF; }
[data-bs-theme=dark] .custom-value { color: #CDCDDE; }
[data-bs-theme=dark] .custom-container .row_info,
[data-bs-theme=dark] .custom-container .custom-row { border-bottom-color: #2B2B40; }

.timeline-container {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 10px 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  z-index: 2;
}

.circle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: var(--remaining-color);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(31, 75, 234, 0.3);
}

.step.completed .circle {
  background-color: var(--completed-color);
  box-shadow: 0 0 10px rgba(1, 208, 163, 0.5);
}

.step.rejected .circle {
  background-color: var(--rejected-color);
  box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.step.on-hold .circle {
  background-color: var(--on-hold-color);
  box-shadow: 0 0 10px rgba(253, 126, 20, 0.5);
}

.step.current .circle {
  background-color: var(--current-color);
  box-shadow: 0 0 15px rgba(31, 75, 234, 0.7);
  transform: scale(1.15);
}

.icon {
  font-size: 1.5em !important;
  transition: all 0.3s ease;
}

.step.completed .icon,
.step.current .icon,
.step.rejected .icon,
.step.on-hold .icon {
  color: #fff;
}

.step:not(.completed):not(.current):not(.rejected):not(.on-hold) .icon {
  color: var(--icon-color);
}

.step-text {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 13px;
  font-weight: 510;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
}

.step:hover .step-text {
  opacity: 1;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 45px;
  right: 45px;
  height: 2px;
  background-color: var(--line-color);
  z-index: 1;
}

.line,
.line-incomplete {
  display: none;
}

/* HHHHHHHHHHHHHHHHH */

.custom-card-header {
  background-color: #fcfcfc !important;
  border: 1px solid #f1f4fd !important;
  border-radius: 30px !important;
  padding: 15px !important;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align items to the start (left) of the container */
  gap: 15px; /* Add some space between the progress ring and the title */
}

.custom-card-header .card-title {
  margin: 0 !important;
  display: flex;
  align-items: center;
  font-size: 1.5rem;
}

.custom-container {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
}

.custom-label {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  text-transform: uppercase;
}

.custom-value {
  font-weight: 500;
  font-size: 1.1rem;
  color: #555;
}

.custom-container .btn {
  border-radius: 5px;
}

.custom-container .row_info {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.custom-container .custom-row {
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.icon-dark {
  color: var(--main-primary-color) !important;
  margin-right: 8px !important;
}

.progress-ring {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  margin-left: 0;
}

.progress-ring__circle {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.progress-ring__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bolder;
  color: black;
  text-anchor: middle; /* Center the text horizontally */
  dominant-baseline: middle; /* Center the text vertically */
}

.nav-item {
  margin-left: 15px; /* Additional space between tabs */
}

.spacer {
  margin-bottom: 20px;
}

/* Header Information */

.phase-info {
  margin-bottom: 20px;
  text-align: left;
}

.phase-title {
  font-size: 1.1rem;
  color: var(--main-primary-color);
  margin: 0;
  text-transform: uppercase;
  font-weight: bold;
}

.phase-main-title {
  font-size: 1.8rem;
  color: #333;
  margin: 5px 0;
  font-weight: bold;
}

.phase-instruction {
  font-size: 1rem;
  color: #33333397;
  margin: 5px 0 20px;
}

.separator-line {
  border: 0;
  height: 1px;
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0)
  );
  margin: 20px 0;
}

/* Custom styling for report containers */
.custom-report-container {
  border: 2px dashed #cccccc;
  border-radius: 50px;
  padding: 15px;
  background-color: #fefefe;
  width: 65%;
  margin-top: 30px;
}

.custom-report-header {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
}

.custom-report-header .icon-dark {
  margin-right: 10px;
  color: var(--main-primary-color);
}

/* Styling for the custom file input */
.custom-file-upload {
  position: relative;
  display: inline-block;
  width: 100%;
}

.custom-file-input {
  position: relative;
  display: inline-block;
  width: 100%;
  cursor: pointer;
}

.custom-file-input::before {
  content: "Choose File";
  display: inline-block;
  background: var(--main-primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  margin-right: 10px;
  cursor: pointer;
}

.custom-file-input:hover::before {
  background-color: #1a3cc4;
}

.custom-file-input::after {
  content: attr(data-label);
  display: inline-block;
  font-size: 0.9rem;
  color: #555;
}

.custom-file-input input[type="file"] {
  display: none;
}

.btn-secondary,
.btn-primary {
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1rem;
}

/* User information Tenant contacted */

.contact-card {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 10px 20px;
  border: 1px solid #f1f4fd !important;
  font-family: "Arial", sans-serif;
  font-weight: bolder;
  width: auto;
  max-width: 400px;
  margin-left: 0;
  transition: box-shadow 0.3s ease;
}

.phase-container {
  display: flex;
  justify-content: space-between; /* Space between components */
  align-items: flex-start; /* Align items vertically centered */
  width: 100%;
  gap: 20px; /* Add gap between phase-info and container-flex-custom */
}

.contact-card i {
  font-size: 4rem;
  color: var(--main-primary-color);
  margin-right: 15px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #333;
}

.name {
  font-size: 1.2rem;
  font-weight: bolder;
  margin-bottom: 5px;
  color: #555;
}

.phone {
  display: flex;
  align-items: center;
  color: var(--main-primary-color);
}

.phone-icon {
  margin-right: 2px;
}

.fas.fa-phone.phone-icon {
  color: var(--main-primary-color) !important;
  font-size: 1.5rem !important;
}

.phone span {
  font-size: 1.2rem;
  color: var(--main-primary-color);
  font-weight: bold;
}

.far.fa-user-circle {
  font-size: 3rem !important;
  color: #555 !important;
  margin-right: 20px;
}

/* Tenant contacted user information alignment */

.container-flex-custom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px; /* Add gap between contact card and actions dropdown */
  flex-shrink: 0;
  width: auto; /* Allow width to be determined by content */
}

.header-agent {
  border: 1px solid #d1e0e0 !important; /* Light bluish-gray border */
  border-radius: 30px !important; /* Rounded corners */
  background-color: #ffffff !important; /* White background */
}

.header-edit {
  border-radius: 30px !important; /* Rounded corners */
}

.waiting-response {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px; /* Adjust padding as needed */
}

.waiting-response h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.waiting-response p {
  font-size: 14px;
  color: #666;
}

.confirm-card {
  border: 1px solid #d1e0e0 !important; /* Light bluish-gray border */
  border-radius: 40px;
}

.circle-score {
  position: relative;
  width: 100px; /* Adjust as needed */
  height: 100px; /* Adjust as needed */
  border-radius: 50%;
  border: 3px solid #ddd;
}

.progress-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  clip: rect(0, 50px, 100px, 0); /* Clip half of the circle */
}

.score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px; /* Adjust as needed */
}

.custom-progress-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(closest-side, white 79%, transparent 80% 100%),
    conic-gradient(rgb(69, 88, 0) 10%, rgb(252, 255, 232) 0);
}

.feedback-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.feedback-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.feedback-label {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  min-width: 120px;
}

.feedback-value {
  font-weight: 500;
  font-size: 1.1rem;
  color: #555;
  margin: 0;
}

.star-rating {
  display: inline-flex;
  font-size: 1.5rem;
}

.star {
  color: #e0e0e0;
  transition: color 0.2s ease-in-out;
}

.star.filled {
  color: #ffc107;
}

.comment-box {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 10px;
  margin-top: 5px;
  width: 100%;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent; /* default fallback */
  /* vertical-align: middle; aligns with surrounding text */
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-text {
  padding-top: 3px;
}

/* --- Status Variants --- */
.status-requested {
  background: #fff5ef;
  color: #ff6f1e;
  border-color: rgba(255, 111, 30, 0.2);
}
.status-requested .status-dot {
  background: #ff6f1e;
}

.status-in-contact {
  background: #eafff1;
  color: #17c653;
  border-color: rgba(23, 198, 83, 0.2);
}
.status-in-contact .status-dot {
  background: #17c653;
}

.status-in-review {
  background: #fff8dd;
  color: #f6b100;
  border-color: rgba(246, 177, 0, 0.2);
}
.status-in-review .status-dot {
  background: #f6b100;
}

.status-approved {
  background: #eff6ff;
  color: #1b84ff;
  border-color: rgba(27, 132, 255, 0.2);
}
.status-approved .status-dot {
  background: #1b84ff;
}

.status-not-renewed {
  background: #ffeef3;
  color: #f8285a;
  border-color: rgba(248, 40, 90, 0.2);
}
.status-not-renewed .status-dot {
  background: #f8285a;
}

.status-credit-rejected {
  background: #ffeef3;
  color: #f8285a;
  border-color: rgba(248, 40, 90, 0.2);
}
.status-credit-rejected .status-dot {
  background: #f8285a;
}

#renewalModal .btn-group-style .btn {
  flex: 1;
  border: 1px solid #dbdfe9;
  border-radius: 8px;
  background-color: #fcfcfc;
  color: #252f4a;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

/* Active button */
#renewalModal .btn-group-style .btn.active {
  background-color: #ffffff;
  border: 1.5px solid var(--main-primary-color);
  color: #252f4a;
  box-shadow: 0 0 0 2px rgba(var(--main-primary-color), 0.25);
}

/* On hover (only for inactive buttons) */
#renewalModal .btn-group-style .btn:not(.active):hover {
  background-color: #e9ecef;
}

/* Confirm button full width */
#renewalModal .modal-footer .btn-primary {
  min-width: 220px;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px;
}

.btn-primary,
.btn.btn-primary,
button.btn-primary {
  background-color: var(--main-primary-color) !important;
  border-color: var(--main-primary-color) !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--main-primary-darker-color) !important;
  border-color: var(--main-primary-darker-color) !important;
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(31, 75, 234, 0.3);
}

.btn-primary:focus {
  background-color: var(--main-primary-darker-color) !important;
  border-color: var(--main-primary-darker-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(31, 75, 234, 0.25);
}

.btn-primary:active {
  background-color: var(--main-primary-darker-color) !important;
  border-color: var(--main-primary-darker-color) !important;
}

/* Custom primary color for all text elements with bottom borders */
.border-bottom {
  border-color: var(--main-primary-color) !important;
}

.border-bottom.border-1 {
  border-color: var(--main-primary-color) !important;
}

.border-bottom.border-2 {
  border-color: var(--main-primary-color) !important;
}

.border-bottom.border-3 {
  border-color: var(--main-primary-color) !important;
}

.border-bottom.border-4 {
  border-color: var(--main-primary-color) !important;
}

.border-bottom.border-5 {
  border-color: var(--main-primary-color) !important;
}

.fa-bell.text-success {
  color: var(--main-primary-color) !important;
}

.bg-info,
.bg-info.rounded-2,
div.bg-info {
  background-color: var(--main-primary-color) !important;
}

.page-item.active .page-link {
  background-color: var(--main-primary-color) !important;
  border-color: var(--main-primary-color) !important;
}

.page-item.active .page-link:hover {
  background-color: var(--main-primary-darker-color) !important;
  border-color: var(--main-primary-darker-color) !important;
}

.pagination-button.active {
  background-color: var(--main-primary-color) !important;
  border-color: var(--main-primary-color) !important;
  color: #ffffff !important;
}

.pagination-button.active:hover {
  background-color: var(--main-primary-darker-color) !important;
  border-color: var(--main-primary-darker-color) !important;
  opacity: 0.9;
}
