body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%; 
    overflow-x: hidden;
    overflow-y: hidden;
}


.page {
  display: grid;
  height: 100vh;
  grid-template-columns: 250px 1fr 1fr;
  grid-template-rows: auto 4fr 4fr;
  grid-template-areas:
    "nav nav nav"
    "left-sidebar main main"
    "left-sidebar main main"
    "left-sidebar main main";
  /* grid-gap: 0.2rem; */
}

  /* Adjusted for when sidebar is hidden */
.page.indicatorSelector {
  grid-template-columns: 250px 1fr 1fr; /* Remove the sidebar's column */
  grid-template-areas:
    "nav nav nav"
    "left-sidebar main main"
    "left-sidebar main main"
    "left-sidebar main main";
}

.page.about {
  display: grid;
  height: 100vh;
  grid-template-columns: 1fr; /* Single column layout to use the full width */
  grid-template-rows: auto 1fr; /* Navbar height auto, main content taking the rest */
  grid-template-areas:
    "nav"
    "main"; /* Assigns the 'nav' to the top row and 'main' to the full width of the second row */
}
  
nav {
  grid-area: nav;
  background-color: #e3f2fd;
}


main {
  grid-area: main;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 5px;
  padding-top: 0px;
}

#left-sidebar{
  background-color: #f8f9fa;
  grid-area: left-sidebar;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px;
}

footer {
  background-color: #e3f2fd;
  grid-area: footer;
}

.clickable-row {
  cursor: pointer; /* Changes cursor to pointer to indicate clickability */
}

.clickable-row:hover {
  background-color: rgba(211, 211, 211, 0.5); /* Changes background color to grey on hover */
}


/* #gemeenten {
    height: calc(100vh - 250px);
}
  */


/* Default styles - button is hidden */
#toggleSidebar {
    display: none;
}

/* Initially hide the sdg_number_select_sidebar on all screens */
#sdgNumberSelectSidebar {
    display: none;
}


/* Base table styles */
.custom-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
margin-top: 20px; /* Add some space above the table */
box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow for depth */
border-radius: 8px; /* Rounded corners */
overflow: hidden; /* Ensures the border-radius applies by clipping the child elements */
background-color: #ffffff; /* Light background for the table */
}

.custom-table th, .custom-table td {
padding: 4px 5px; /* Adequate padding for content */
text-align: left; /* Align text to the left */
border-bottom: 1px solid #eaeaea; /* Light border for separation */
}

/* Remove bottom border for the last row */
.custom-table tr:last-child th, .custom-table tr:last-child td {
border-bottom: none;
}

/* Header styles */
.custom-table th {
background-color: #e3f2fd;
color: black; /* White text for contrast */
font-weight: 600; /* Make header font slightly bolder */
}

/* Striped rows for better readability */
.custom-table tr:nth-child(odd) {
background-color: #f8f9fa; /* Light grey for every other row */
}

/* Hover effect for rows */
.custom-table tr:hover {
background-color: #f1f3f5; /* Slightly darker on hover */
cursor: pointer; /* Change cursor to pointer to indicate interactivity */
}

@media only screen and (max-width: 550px) {
  .page {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 8fr 1fr;
    grid-template-areas:
      "nav"
      "main"
      "footer";
  }

  .page.indicatorSelector {
    grid-template-columns: 1fr; /* Use a single column layout */
    grid-template-areas:
      "nav"
      "main"; /* Only display the navigation and main area, hide the sidebar */
  }

  /* Hide the left sidebar */
  .page .left-sidebar {
    display: none;
  }

  .sidebar {
    display: block;
    position: fixed;
    bottom: -70%; /* Start off-screen */
    left: 0;
    width: 100%;
    height: 70vh; /* Set the height */
    transition: bottom 0.3s ease-in-out; /* Smooth transition for sliding */
    overflow-y: auto; /* Enable scrolling within the sidebar */
    z-index: 100; /* Ensure it's above the overlay */
    /* Other styling */
  }
  /* Ensure the overlay is correctly layered */
  .overlay {
      display: none; /* Initially hidden */
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent */
      z-index: 99; /* Below the sidebar */
  }

  #toggleSidebar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    background-color: #e3f2fd;
    color: black;
    padding: 10px 0;
    cursor: pointer;
    z-index: 101; /* Above the sidebar */
  }  
}


  /* CSS to hide the sidebar */
.hidden {
    display: none; /* This will hide the sidebar */
}


  /* @media only screen and (max-width: 550px) {
    .page, .page.page2 {
      grid-template-columns: 1fr;
      grid-template-rows: 1fr 8fr 1fr;
      grid-template-areas:
        "nav"
        "main"
        "footer";
    }
  } */