body {
  background-color: #F9FAFF;
}

/* Guided Assistant Styles */
.guided-progress {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

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

.step:not(:last-child) {
    margin-right: 1rem;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #283897;
    color: white;
    border-color: #283897;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: #283897;
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.progress {
    height: 100%;
    background: #283897;
    width: 0;
    transition: width 0.3s ease;
}

.guided-step {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.guided-step h3 {
    color: #283897;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.btn-next, .btn-prev {
    min-width: 100px;
    padding: 0.5rem 1.5rem;
}

#generateProposal {
    min-width: 180px;
    padding: 0.5rem 1.5rem;
}

.proposal-response {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid #283897;
}

.proposal-response h3 {
    color: #283897;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.proposal-content {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.proposal-actions {
    display: flex;
    gap: 0.75rem;
}

.proposal-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .step-label {
        font-size: 0.7rem;
    }
    
    .guided-step h3 {
        font-size: 1.1rem;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .step-actions .btn {
        width: 100%;
    }
}

.card-group {
    border-radius: 10px 10px 0px 0px;
}

.fa-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#citationContainer {
  width: 0%; 
  position: absolute; 
  right: 0; 
  height: 100%; 
  overflow-y: auto;
  padding-bottom: 220px;
}

input[type="checkbox"]:checked {
  background-color: #283897!important;
  border-color: #283897!important;
}

.btn-primary {
  background-color: #2A295C;
  border-color: #2A295C;
  color: white;
  transition: all 0.2s linear; /* Optional: smooth transition */
}

/* Hover effect */
.btn-primary:hover {
  background-color: #2A295C;
  border-color: #2A295C;
  color: white;
  box-shadow: 0px 0px 15px 7px rgba(126,138,204,0.52); /* Add hover shadow */
}

/* Focus effect */
.btn-primary:focus {
  background-color: #2A295C;
  color: white;
  outline: none; /* Optional: removes default focus outline */
}

/* Disabled button */
.btn-primary.disabled,
.btn-primary:disabled {
  background-color: grey;
  border-color: grey;
  color: white;
  cursor: not-allowed;
}


 /* Style for the label of the checked radio button */
 .btn-check:checked + .btn-outline-primary {
  background-color: #2A295C !important;
  border-color: #2A295C !important;
  color: white !important; /* Optional: Change text color for better visibility */
}

  /* Style for the label of the unchecked radio button */
  .btn-check:not(:checked) + .btn-outline-primary {
    border-color: #2A295C !important;
    color: #2A295C !important;
  }


.search_input_wrapper {
  display: flex;
  float: inline-end;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  width: 30%;
  background-color: white;
  color: #000000;
  /* position: relative; */
  border-radius: 8px;
  box-shadow: inset 0px 0px 10px 5px rgba(0, 0, 0, 0.15);
  padding: 12px;
}

.sod_menu {
  background-color: #283897;
  padding: 12px;
  color: white;
  display: flex; 
  align-items: flex-start; 
  justify-content: space-between;
}

.search_input_wrapper .search_input {
  border: none;
  height: 100%;
  box-sizing: border-box;
  width: 100%;
  /* position: absolute; */
  background: none;
  outline-width: 0;
  color: #000000;
  border-radius: 8px;
}

.sod_button {
    background-color: #2A295C; 
    padding: 10px 16px; 
    display: inline-block; 
    color: white; 
    float: right;
    border-radius: 0px 0px 16px 0px;
    cursor: pointer;
    transition: all 0.2s linear;
}

.line_button {
  padding: 10px 16px; 
  border: white;
  border-style: solid;
  border-width: 1px;
  display: inline-block; 
  color: white; 
  cursor: pointer;
  transition: all 0.2s linear;
}

.line_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.end_corner {
  border-radius: 0px 0px 16px 0px;
}

.sod_button:hover, .line_button:hover {
  b-webkit-box-shadow: 0px 0px 15px 7px rgba(126,138,204,0.52);
  -moz-box-shadow: 0px 0px 15px 7px rgba(126,138,204,0.52);
  box-shadow: 0px 0px 15px 7px rgba(126,138,204,0.52);
}

.sod_button:focus {
  background-color: #343434;
  color: white;
}

.sod_button.disabled {
  background-color: grey;
  cursor: not-allowed;
}



.paper {
    margin: 5%; 
    box-shadow: 0px 10px 40px rgba(126, 138, 204, 0.1); 
    padding: 5%; 
    background-color: white;
  }

.sod_input {
  border-color: #7E8ACC;
  border-width: 1.5px;
  margin-bottom: 10px;
}

/* for the toggle switch */
  .toggleContainer {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: fit-content;
    justify-items: center;
    align-items: center;
    border: 3px solid #7E8ACC;
    border-radius: 30px;
    background: #7E8ACC;
    font-weight: 900;
    color: #283897;
    padding-top: 5px;
    cursor: pointer;
    transition: all 0.3s;
  }
  .toggleContainer::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    left: 0%;
    border-radius:30px;
    background: white;
    transition: all 0.3s ease-in-out;
  }
  .toggleCheckbox:checked + .toggleContainer::before {
    left: 50%;
  }
  .toggleContainer div {
    padding: 6px;
    text-align: center;
    z-index: 1;
  }
  .toggleCheckbox {
    display: none;
  }
  .toggleCheckbox:checked + .toggleContainer div:first-child{
    color: #283897;
    font-weight: 900;
    transition: color 0.3s;
  }
  .toggleCheckbox:checked + .toggleContainer div:last-child{
    color: #283897;
    font-weight: 900;
    transition: color 0.3s;
  }
  .toggleCheckbox + .toggleContainer div:first-child{
    color: #283897;
    font-weight: 900;
    transition: color 0.3s;
  }
  .toggleCheckbox + .toggleContainer div:last-child{
    /* color: #7E8ACC; */
    font-weight: 900;
    transition: color 0.3s;
  }
  .toggleCheckbox:checked + .toggleContainer {
    background: rgba(40, 56, 151, 0.7);;
    border: 3px solid #283897;
  }
  
/* tooltip using the alt attr */
  span[alt]::after {
    content: attr(alt);
    position: absolute;
    transform: translateX(12px) translateY(-20px);
    border-radius: 5px 5px 5px 0;
    padding: 5px 10px;
    background-color: #283897;
    max-width: 40vw;
    overflow: auto;
    color: white;
    opacity: 0;
    transition: all .15s ease-in-out;
    z-index: 100;
  }

  span[alt]::before {
    content: "";
    position: absolute;
    margin-left: -5px;
    border-width: 4px;
    border-style: solid;
    border-color: transparent #283897 #283897 transparent;
    transform: translateX(21px) translateY(6px);
    opacity: 0;
    transition: all .15s ease-in-out;
  }

  span.left[alt]::after {
    content: attr(alt);
    position: absolute;
    top: 20px;
    border-radius: 5px 5px 5px 0;
    padding: 5px 10px;
    background-color: #283897;
    max-width: 30vw;
    overflow: auto;
    color: white;
    opacity: 0;
    transition: all .15s ease-in-out;
    z-index: 100;
  }

  span[alt]:hover::after, span[alt]:hover::before {
    opacity: 1;
  }
  

  .tooltip-text {
    visibility: hidden;
    position: absolute;
    z-index: 1;
    max-width: 100vw;
    color: white;
    background-color: #283897;
    border-radius: 5px;
    padding: 5px 10px;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.15);
  }

  .tooltip-text::before {
    content: "";
    position: absolute;
    transform: rotate(45deg);
    background-color: #283897;
    padding: 5px;
    z-index: 1;
  }
  
  .hover-text:hover .tooltip-text {
    visibility: visible;
  }
  
  #top {
    top: -40px;
    left: -50%;
  }
  
  #bottom {
    top: 25px;
    left: -50%;
  }
  
  #left {
    top: -8px;
    right: 140%;
  }

  #left::before {
    top: 15px;
    left: 94%;
  }
  
  #right {
    top: -8px;
    left: 120%;
  }
  
  .hover-text {
    position: relative;
  }


/* Hide the default jstree icons */
#tree .jstree-ocl {
  visibility: hidden; /* Hide the old icons */
}

/* Replace the open/close icons with FontAwesome plus/minus */
#tree .jstree-ocl:before {
  font-family: "Font Awesome 6 Free";  /* Set the FontAwesome font family */
  font-weight: 900;                    /* Set the correct weight for solid icons */
  font-size: 18px;                     /* Adjust the icon size */
  visibility: visible;                 /* Make sure the new icon is visible */
}

/* When the node is opened, show the minus icon */
#tree .jstree-open > .jstree-ocl:before {
  content: "\f068"; /* FontAwesome minus icon */
}

#tree .jstree-closed > .jstree-ocl:before {
  content: "\f0fe"; /* FontAwesome plus square icon */
}

  /* Ensure image inside modal stretches to fit modal width */
  #modalImage {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures image does not inherit line-height */
    margin: 0 auto; /* Centers the image horizontally */
  }

  /* Optional: Set max-height for the modal body to limit overall height */
  .modal-body {
    max-height: calc(100vh - 200px); /* Adjust as needed to fit your content */
    overflow-y: auto; /* Enable scrolling if content exceeds modal height */
  }