
body{
  font-family: system-ui, sans-serif;
  background: #fafafa;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

a{
  text-decoration: none;
}
a:visited {
  color: black;
}

#absContainer {
  flex: 0.5;
}

#imgContainer {
  flex: 0.5;
  align-content: center;
}

#mainWrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}


.index-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: justify;

}


.index-box img {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  max-width: 100%;
  height: auto;
}

.index-boxp {
  text-align: left
}

/* ---------- TOP MENU ---------- */
#topMenu {
  min-height: 60px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 5;
}

#topMenu h1 {
  font-size: 1.2rem;
  color: #333;
  margin: 0;
}

#menuButtons {
  display: flex;
  gap: 1rem;
}

#menuButtons button {
  background:transparent;
  border: none;
  color: black;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

#menuButtons button:hover {
  background: #2c7ed1;
}

#topMenu a:visited {
  color: black;
}

#dynamicBox {
  flex: 1;
  padding: 12px;
  background-color: #f0f0f0;
  border-radius: 8px;
  min-width: 200px;
  height: 50px;
  display: flex;
  align-items: center;
}
/* ---------- MAIN AREA ---------- */
#mainContainer {
  flex: 1;
  display: flex;
  overflow: hidden;
}

#infoPanel {
  width: 250px;
  background: #ffffff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 2;
  overflow-y: auto;
}

#infoPanel h2 {
  font-size: 1.3rem;
  margin: 0 0 1rem 0;
  color: #333;
}

#infoPanel p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #555;
}

.legend {
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.3rem;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 0.5rem;
}

#pcaContainer {
  flex: 1 ;
  position: relative;
}

svg {
  width: 100%;
  height: 100%;
  cursor: grab;
  background: #fff;
}

#pcaPlot{
    padding-top: 0;
}

text.axis-label {
  font-size: 14px;
  font-weight: 600;
  fill: #333;
}

#########

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.site-title{
  margin: 0;
}

.site-title a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo {
  height: 45px;
  width: auto;
}


h1 {
  color: #333;
  margin-bottom: 20px;
}


.img-block img:hover {
  transform: scale(1.5) translateX(-200px);;
}


#dashboard {
  display: flex;
  width: 98%;
  max-width: 100vw;
  gap: 20px;
  height: 80vh;
}
#dashboard2 {
  display: flex;
  width: 97%;
  max-width: 100vw;
  gap: 20px;
  height: 80vh;
  padding-top: 30px;
}

#dashboard3 {
  display: flex;
  width: 95%;
  max-width: 100vw;
  gap: 20px;
  height: 80vh;
  padding-top: 40px;
}
#dashboard4 {
  display: flex;
  width: 95%;
  max-width: 100vw;
  gap: 20px;
  height: 10vh;
  padding-top: 10px;
  padding-left: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 10px;
  border: 1px solid #aaa;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}

.tag.selected {
  font-weight: bold;
  border-color: #000;
  background-color: #fff;
}


.chart-box {
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex: 1;
  overflow: auto;
  position: relative;
}

canvas {
  width: 100% !important;
  height: 100% !important;
}

#barContainer {
  flex: 0.3;
}

#scatterContainer {
  flex: 0.7;
}

/* Popup background overlay */
.popup {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}


.popup-content {
  background: white;
  width: 500px;
  margin: 15% auto;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #888;
  font-size: 24px;
  cursor: pointer;
}

.close:hover {
  color: black;
}

button {
  margin-top: 10px;
  padding: 8px 16px;
  background:red;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #0056b3;
}

.side-panel {
  width: 260px;
  background-color: #f8f8f8;
  border-right: 1px solid #ccc;
  padding: 15px;
  display: none;
  flex-shrink: 0;
  overflow-y: auto;
  height: auto;
}
.side-panel h2 {
    padding-top: 10px;
  font-size: 1.1em;
  margin-top: 0;
}
.side-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.side-panel li {
  background: white;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  font-size: 0.8rem;
}
.content-area {
  flex-grow: 1;
  padding: 8px;
}

#dlCSV, #dlPNG  {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Modal background */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  justify-content: center;
  align-items: center;
   z-index: 999999;
   flex-shrink: 0;
}

/* Modal box */
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 360px;
  text-align: center;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Upload button */
.upload-btn {
  display: inline-block;
  background: #4CAF50;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
  font-size: 15px;
  transition: background 0.2s;
}

.upload-btn:hover {
  background: #3e8e41;
}

.close-modal-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: red;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
}
.upload-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}


.close-modal-btn:hover {
  color: #c00;
}

.table-responsive {
  border-radius: 20px;
  overflow: hidden;
}
.table-responsive table {
  border-collapse: separate;
}

.table-responsive thead tr {
  background-color: #F2F4F5;
  color: #000;
}

.table-responsive thead th {
  padding: 22px 16px !important;
}

.table-responsive tbody tr:nth-child(even) {
  background-color: #F2F4F5;
}
.table-responsive tbody tr:nth-child(odd) {
  background-color: #F5FDFF;
}
.table-responsive tbody th {
  font-weight: normal;
}

.table>:not(caption)>*>* {
  padding: 5px 5px;
}

.table-responsive .bi-check-circle-fill .bi-x-circle-fill {
  color: #C7F7FC;
}
