:root {
  --primary-color: #006d77;
  --secondary-color: #83c5be;
  --accent-color: #ffddd2;
  --dark-color: #1d3557;
  --light-color: #f1faee;
  --success-color: #2a9d8f;
  --danger-color: #e63946;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Roboto", sans-serif;
}

.container-fluid {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 0;
}

#header {
  background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
  color: white;
  padding: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-stats {
  display: flex;
  gap: 20px;
  margin-left: auto; /* Pushes everything else to the right */
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1.2rem;
}

.stat-label {
  color: #adb5bd;
}

.stat-value {
  font-weight: bold;
  color: white;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-title i {
  font-size: 1.8rem;
}
.row.full-height {
  flex: 1;
  display: flex;
  /* overflow: hidden; */
  height: calc(100vh - 60px);
  flex-direction: row;
  /* Prevent internal scroll */
}

.col-8,
.col-4 {
  height: 100%;
  /* overflow: hidden; */
}

#viewDiv {
  height: 100%;
  width: 100%;
}
.col-8 {
  flex-grow: 1;
  height: 100%; /* Ensures the map fills the column */
}

#controls {
  flex: 1;
  overflow-y: auto;
  /* If you ever want scroll inside just this */
  padding: 1rem;
  background-color: whitesmoke;
}

#buttonGroup {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-action {
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-clear {
  background-color: var(--danger-color);
  color: white;
  border: none;
}

.btn-clear:hover {
  background-color: #c1121f;
}

.btn-polygon {
  background-color: var(--success-color);
  color: white;
  border: none;
}

.btn-polygon:hover {
  background-color: #21867a;
}

.btn-toggle:hover {
  background-color: #21867a;
}

.btn-toggle {
  background-color: var(--success-color);
  color: white;
  border: none;
}

#searchWidget {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

#featureCount {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-color);
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

#updateBtn {
  width: 100%;
  padding: 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin: 15px 0 0 0;
}

#updateBtn:hover {
  background-color: var(--dark-color);
  transform: translateY(-1px);
}

#updateBtn i {
  margin-right: 8px;
}

.download-btn {
  width: 100%;
  padding: 10px;
  background-color: var(--success-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.download-btn:hover {
  background-color: #21867a;
  transform: translateY(-1px);
}
#featureTable {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 15px;
}

#featureTable td,
#featureTable th {
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
}

#featureTable tr:nth-child(even) {
  background-color: #f9f9f9;
}

#featureTable tr:hover {
  background-color: #f0f0f0;
}

#featureTable td.label {
  font-weight: 500;
  font-weight: bold;
  color: var(--dark-color);
  width: 25%;
}

#debrisImage {
  max-height: 200px;
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: none;
  margin-top: 10px;
}

.toggle-btn {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 10;
  background-color: white;
  border: none;
  border-radius: 0 50% 50% 0;
  width: 30px;
  height: 50px;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  background-color: var(--light-color);
  width: 32px;
}

#searchWidget {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

@media (max-width: 768px) {
  #sidebar {
    width: 300px;
    position: absolute;
    height: 100%;
    overflow: auto;
  }

  .sidebar-collapsed {
    transform: translateX(-270px);
  }

  .control-section {
    padding: 12px;
  }
}
img {
  page-break-inside: avoid;
  break-inside: avoid;
}

.avoid-break {
  page-break-inside: avoid;
  break-inside: avoid;
}

.esri-widget--button {
  background-color: #085d6e !important;
}

.esri-icon-layer-list {
  color: white !important;
}

.esri-icon-search {
  color: white !important;
}

.esri-icon-plus:before {
  color: white !important;
}
.esri-icon-minus:before {
  color: white !important;
}
.esri-icon-legend:before {
  color: white !important;
}
.esri-ui-corner {
  box-shadow: none !important;
}
.esri-component {
  box-shadow: none !important;
}
.esri-icon-basemap:before {
  color:white !important;
}
#sidebar,
#mapCol {
  transition: all 0.3s ease;
}

.feature-details-wrapper {
  padding: 10px;
}

.section-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary-color);
}

.area-header {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.features-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 10px;
}

.features-table td {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
}

.features-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.features-table .label {
  font-weight: 500;
  color: var(--dark-color);
  width: 25%;
}

.feature-image {
  max-height: 200px;
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
}
#notesText {
  width: 100%;
  height: 55px;
  box-sizing: border-box;
  padding: 8px;
  font-size: 14px;
  resize: vertical;
  border: 1px solid #199ca7;
  border-radius: 4px;
  margin-top: 9px;
}

#notesPanel{
  background-color: whitesmoke;
  margin-top: 10px;
}
.notesTitle{
  display: ruby;
  font-weight: bold;
  font-size: 15px;
}

#refreshBtn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.location-info {
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;
  font-size: 15px;
}
.image-with-location {
  margin-bottom: 15px;
}

.dropdown-menu {
  max-height: 300px;
  overflow-y: auto;
}

.dropdown-zindex {
  z-index: 1050 !important; /* Bootstrap modal is 1050+, so this ensures visibility */
  /* position: absolute !important; */
}

#impactDropdownContainer {
  /* position: absolute; or absolute if you want it within a parent */
  top: 100px;       /* adjust to position it where you want */
  left: 20px;       /* adjust based on sidebar or screen */
  z-index: 9999;    /* ensure it's on top */
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
}

.dropdown-toggle{
  background-color: var(--primary-color);
  color: white;
  border-color:#21867a;
  width:100%
}
.dropdown-toggle:hover{
  background-color: #21867a;
}
.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active{
  background-color: #21867a;
}

.form-check{
  margin-bottom: 10px;
}

.takeScreenshot{
  /* color: black; */
  font-weight: bold;
}



 
