body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Calibri, sans-serif;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 0 0 0 20px;
  color: white;
  height: 40px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 5px 0;
}

.logo {
  width: 97px;
  height: 30px;
}
.image {
  width: 100%;
  height: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 5px;
  padding: 5px;
  border: 1px solid #ccc;
  height: 20px;
}

.search-box input {
  border: none;
  outline: none;
  padding: 5px;
  min-width: 200px;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #2c7a7b;
}
.header-right {
  display: flex;
  align-items: center;
  background: #2c7a7b;
  padding: 0 20px 0 0;
}
.header-right button {
  position: relative; /* for the dot */

  background: transparent;
  border: none;
  margin-left: 1px;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #2c7a7b;
  width: 40px;
  height: 40px;
}
/* Active button dot */
.header-right button.active::after {
  content: "•";
  position: absolute;
  bottom: -6px; /* dot position */
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 20px;
}

.map-container {
  height: calc(100% - 40px);
  width: 100%;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}
/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 40px;
  right: -350px;
  width: 350px;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 15px;
  border-bottom: 1px solid #ccc;
  color: #000;
  font-weight: bold;
}

.sidebar-header .close-btn {
  background: transparent;
  border: none;
  color: #000;
  font-size: 20px;
  cursor: pointer;
}

.sidebar-body {
  padding: 15px;
  flex: 1;
  overflow-y: auto;
}
/* card */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.card {
  /* background: #f9f9f9; */
  /* border: 1px solid #ddd; */
  /* border-radius: 8px; */
  text-align: center;
  /* padding: 10px; */
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}

/* .card:hover {
  transform: translateY(-5px);
} */

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

.card p {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* tree */
.tree {
  list-style-type: none; /* remove bullets */
  padding-left: 0;
  color: #7d7d7d;
  margin: 0;
}

.tree li {
  /* padding-left: 10px; */
  margin: 2px 0;
  line-height: 22px;
}
/* .tree li:hover {
  background-color: #ccc;
} */

/* .tree .toggle {
  cursor: pointer;
  margin-right: 6px;
  font-weight: bold;
  color: #2c7a7b;
} */

.tree .toggle {
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #2c7a7b;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  margin-right: 6px;
  transition: background 0.2s ease;
}
.tree .nested {
  display: none;
  padding-left: 20px;
  list-style-type: none;
}

.tree .nested.active {
  display: block;
}

.tree label {
  display: flex;
  align-items: center;
  gap: 6px; /* spacing between checkbox and text */
  cursor: pointer;
  list-style-type: none;
}

.tree .nested.active {
  display: block;
}

.tree label {
  display: flex;
  align-items: center;
  cursor: pointer;
}
/* Query Description */
.query-description {
  padding: 10px 0px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

/* Query List Sidebar */
.query-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.query-list li {
  display: flex;
  justify-content: space-between; /* left text, right arrow */
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.query-list li:hover {
  background-color: #f0f0f0;
}

.query-item {
  font-size: 14px;
  color: #333;
}

.arrow {
  font-size: 16px;
  color: #2c7a7b;
}
/* plot */
.plot-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plot-section {
  border: 1px solid #7d7d9c;
  border-radius: 6px;
  padding: 10px;
  position: relative;
  color: #919191;
}

.plot-title {
  font-weight: bold;
  color: #2d7b7b;
  margin-bottom: 8px;
  border: 1px solid #7d7d9c;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  position: absolute;
  top: -11px;
  background: white;
  font-size: 11px;
}

.plot-input {
  display: flex;
  flex-direction: column;
  margin: 6px 0;
}

.plot-input label {
  font-size: 13px;
  margin-bottom: 2px;
  color: #333;
}

.plot-input select {
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 13px;
}

/* ward */
.selected-label {
  margin-top: 4px;
  font-size: 0.9rem;
  color: #333;
}
