/* ENLARGE BUTTON */
.enlarge-btn-container {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0 15px 0;
}

.enlarge-btn {
  background: #ffffff;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.3);
}

.enlarge-btn:hover {
  background: #f5f4ff;
  transform: scale(1.1);
}

/* ENLARGE MODAL - SAME STYLE AS MAIN GRAPH */
.enlarge-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.enlarge-modal.active {
  display: flex;
}

.modal-card {
  background: white;
  width: 95%;
  height: 90%;
  max-width: 1000px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  background: white;
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: #333;
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}

.close-modal-btn {
background: transparent;
  color: red;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-modal-btn:hover {
    background-color: transparent;
  color: rgb(198, 1, 1);
  transform: scale(1.05);
}

.modal-body {
  flex: 1;
  padding: 20px;
  background: #f8f9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#enlargedGraph {
  width: 100% !important;
  height: 100% !important;
  background: white;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Make the enlarged graph match your existing graph style */
#enlargedGraph + div {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 768px) {
  .modal-card {
    width: 98%;
    height: 85%;
  }
  
  .modal-header {
    padding: 15px;
  }
  
  .modal-body {
    padding: 15px;
  }
}


.modal-footer{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    
}

.modal-footer-btn{
    display: inline;
    justify-content: center;
    align-items: center;

    width: 100px;
    position: relative;
    bottom: 20px;
    
}


/* BIS LOGO STYLES */

.BIS{
  background-color: transparent;
  padding-inline: 10px;
  width: 100%;
  height: 0px;
  position: relative;
  bottom: 170px;
  left: 0px;
  
}

.BIS img {
  width: 100px;
  height: auto;
  zoom: 130%;
  float: right;
  cursor: help;
}

.BIS p{
  width: auto;
  padding: 5px;
  border-radius: 5px;
  font-size: 16px;
  float: right;
  color: white;
  background-color: black;
  text-align: center;
  position: relative;
  top: 10px;
  right: 10px;

  display: none;
}

.BIS:hover p {
  display: block;
  animation: fadeInSlide 0.6s ease-in-out;

}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}