/* This css serves the content inside the home_content stuff. */

.section_app {
    display:grid;
    height:98%;
    width: 98%;
    grid-template-columns: 1.5fr 5fr;
    grid-template-rows: 1fr;
    grid-template-areas:
      "content1 content2"
      ;
    grid-gap: 0.2rem;
    font-size: 1rem;
  }

text.cell-text {
    user-select: text;
    vertical-align: middle;
}

  #content1{
    /* background:grey; */
    min-width: 300px;
    grid-area:content1;
    /* font-size : 0.85rem; */
  
  }
  #content2{
    /* background:rgb(122, 146, 94); */
    /* display: inline-flex; */
    grid-area:content2;
    width:100%;
    /* height:80vh; */
    display: flex;
    flex-direction: column;
  }
  /* CONTENT GENERAL TABLE */
  /* #content_general_tab{

    display: grid;

    width: 98%;

    grid-template-rows: 1.5fr 1fr;
    grid-template-areas:
      "cont_gen_table"
      "cont_gen_pic"
      ;
    grid-gap: 0.2rem;
    font-size: 1rem;
  } */

  #content_general_tab{
    display:flex;
    flex-direction: column;

  }

  #data_table_content{
    /* background:rgb(62, 108, 145); */
    grid-area:data_table_content;
    display: flex;
  }

  #cont_gen_table{
    grid-column: 1 / -1;
    grid-row : 1;
    /* overflow-x: hidden; */
  }

  #cont_gen_table .offline_plot {
    width : 90%;
    min-height: 400px;
    height : 100%;
    border : none;
  }

#cont_gen_pic {
  display: flex;            /* enable flexbox */
  justify-content: center;  /* horizontal center */
  align-items: flex-start;      /* vertical center (optional) */
  /* overflow: hidden;  */
  margin-top: -4%;
  z-index: 1000
}

#cont_gen_pic img {
  width: 80%;
  height: auto;
  display: block;
}

/* CONTENT KINEMATIC FIGURES */
#content_kinematic_flow{
    /* background:rgb(62, 108, 145); */
    display: grid;
    /* height:98%; */
    width: 98%;
    grid-template-columns: minmax(450px, 0.8fr) minmax(100px, 0.2fr);
    /* grid-template-rows: auto auto; */
    /* grid-template-areas:
      "plot-container"
      "cont_gen_pic"
      
      ; */
    grid-gap: 0.2rem;
    font-size: 1rem;
  }

#plot-container {
  width:95%; 
  /* height:80vh; */
}


#pump_flow_img {
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center;     /* center vertically */
}

#pump_flow_img img {
  max-width: 100%;   /* Keep image within container */
  height: auto;      /* Preserve aspect ratio */
  display: block;
  /* margin: auto;      Center both vertically and horizontally if possible */
  margin-left:-40%;
}

.tab-pane.container {
    width: 100%;              
    margin-top:5px;
    max-height: 80vh; 
    flex:1;
    overflow-y: auto;     /* vertical scroll */
    overflow-x: hidden;
    min-height: 0;        /* important for grid/flex children */
    /* max-height: 30vh;   cap at 80% of viewport height */
    

}

.btn.btn-secondary.btn-sm {
  /* position : fixed; */
  /* bottom : 5vh; */
  margin-left: 1rem;
  align-items: center;
  appearance: none;
  background-image: radial-gradient(100% 100% at 100% 0, #44b2d1 0, #06bcc1 100%);
  border: 0;
  border-radius: 6px;
  box-shadow: rgba(45, 35, 66, .4) 0 2px 4px,rgba(45, 35, 66, .3) 0 7px 13px -3px,rgba(58, 65, 111, .5) 0 -3px 0 inset;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  /* font-family: "JetBrains Mono",monospace; */
  height: 2.5rem;
  justify-content: center;
  line-height: 1;
  list-style: none;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
  text-align: left;
  text-decoration: none;
  transition: box-shadow .15s,transform .15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow,transform;
  font-size: 1rem;
  z-index: 1;
}
.btn.btn-secondary.btn-sm:focus {
  box-shadow: #2ecddb 0 0 0 1.5px inset, rgba(80, 97, 175, 0.4) 0 2px 4px,rgba(75, 115, 175, 0.3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset;
}

.btn.btn-secondary.btn-sm:hover {
  box-shadow: rgba(45, 35, 66, .4) 0 4px 8px, rgba(57, 118, 133, 0.3) 0 7px 13px -3px, #5693e4 0 -3px 0 inset;
  transform: translateY(-2px);
}

.btn.btn-secondary.btn-sm:active {
  box-shadow: #3c4fe0 0 3px 7px inset;
  transform: translateY(2px);
}

.btn.btn-secondary.btn-contact {
  align-items: center;
  appearance: none;
  background-image: radial-gradient(100% 100% at 100% 0, #44b2d1 0, #06bcc1 100%);
  border: 0;
  border-radius: 6px;
  box-shadow: rgba(45, 35, 66, .4) 0 2px 4px,rgba(45, 35, 66, .3) 0 7px 13px -3px,rgba(58, 65, 111, .5) 0 -3px 0 inset;
  box-sizing: border-box;
  color: #fff;
}

.form-control{
  font-size: 0.9rem !important;
  padding: .2rem .2rem !important;
}

.input-group-text {
  font-size: 0.7rem !important;
  padding: 0.1rem 0.1rem !important;
  min-width: 30px !important;
  align-items: center;
  justify-content: center;
}

.tab-content {
  max-height:70vh;
}

.tab-content.card-body {
  display: flex; /* Or use display: grid; */
  flex-direction: row; /* Adjust as needed */
  /* height: 60vh;  */
  min-height: 100px; /* Ensure a minimum height */
  overflow: auto;
}

.data_table_style {
    border-radius: 5px;
    font-size: 14px;
    font-weight: normal;
    border: none;
    border-collapse: collapse;
    width: 100%;
    height: 50%;
    max-width: 100%;
    white-space: nowrap;
    background-color: white;
    table-layout: fixed;

}

.data_table_style td, th {
    text-align: center;
    padding: 5px;
    overflow: clip;
}

.data_table_style td {
    border-right: 1px solid #f8f8f8;
    font-size: 14px;
}

.data_table_style thead th {
    color: #ffffff;
    background: #12263a;
}

.data_table_style thead th:nth-child(odd) {
    color: #ffffff;
    background: #06bcc1;
}

.data_table_style tr:nth-child(even) {
    background: #baccd1;
}


.data_table_style tr:hover {
    background: silver;
    cursor: pointer;
}



.copy {
  display: flex;
  background-color: #06bcc1;
  color:azure;
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  outline: none;
  border: none;
  padding: 3px;
  /* margin-top: 5px; */
  margin-bottom: 5px;
  margin-left : 5px;
  max-width: 2rem;
  max-height: 2rem;

}

.copy:active {
  background-color:#1e294d
}


.equation {
    margin: 24px 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
  }
.equation_doc{
    margin: 24px 0;
    text-align: center;
    font-size: 1rem;
}


/* width of form */
/* ############### */
/* For screens larger than 768px (tablets) */
@media (min-width: 768px) {
  .content1 {
    min-width: 200px; /* Adjust min-width for tablets */
  }
}

/* For screens larger than 1200px (large desktops) */
@media (min-width: 1200px) {
  .content1 {
    min-width: 350px; /* Adjust min-width for large desktops */
  }
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background-color: #06bcc1 !important;
    border-color: #dee2e6 #dee2e6 #fff;
}

.nav-tabs {
  position: sticky;
  top: 0; /* Distance from top of viewport */
  z-index: 1000; /* Keep above content */
  background-color: white; /* Avoid overlapping transparency */
}


.nav-tabs .nav-link {
  color :#dee2e6 !important;
  background-color: #12263a !important;
  border-color: #dee2e6 #dee2e6 #fff;
}


/* ############################################################################### */
/* ############################################################################### */
/* Mobile Version */
/* Mobile layout (stacked) */
@media (max-width: 768px) {
    .section_app {
      grid-template-columns: 1fr;
      grid-template-rows: 1fr 1fr;
      grid-template-areas:
        "content1"
        "content2"
        ;
    }
    

}