
body {
  font-family: 'Inter', sans-serif;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 150px 1fr;
  grid-template-rows: 60px 1fr;
  grid-template-areas: 
    "side header" 
    "side main";
}

.header {
	background-color: #fff;
	grid-area: header;
}



#sidebarListWrapper {
  background: #646464;
  overflow-y: auto; /* Enables vertical scrolling */
  max-height: 80vh; /* Set this to the desired height or use vh for viewport height */
}

.sidebar-header {
  border-bottom: 1px solid black;
}

#sidebarListWrapper {
  /* No top border here to avoid double borders with the header */
  flex-grow: 1; /* Allow content to grow and fill available space */
  overflow-y: auto; /* Enable vertical scrolling for content */
  padding: 10px;
  border-bottom: 1px solid black;
}


#mySidebar::-webkit-scrollbar {
  width: 10px;
}

#mySidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#mySidebar::-webkit-scrollbar-thumb {
  background: #888;
}

#mySidebar::-webkit-scrollbar-thumb:hover {
  background: #555;
}


#mySidebar > div { /* Targeting the first and last child divs specifically */
  padding: 10px;
  background-color: #f0f0f0; /* Example styling */
}

/* If you have added class or id you can target them specifically instead of using div */
.sidebar-header, .sidebar-footer {
  flex-shrink: 0; /* Prevents them from shrinking */
}

.sidebar-footer{
	margin-top: auto;
}

#mySidebar li {
  padding: 10px;
  /*border-bottom: 3px solid #fff; /* Adjust border color to match the design */
}

#mySidebar li a {
  font-weight: bold;
  font-size: 1.1em; /* Slightly larger font size */
  color: #000000;
  text-decoration: none; /* Removes underline from links */
}

#mySidebar li a:hover {
    background-color: #eaeaea; /* Light grey for hover effect */
    color: blue; /* Ensure text color remains black on hover */
}

#mySidebar li a.active {
  color: white;
  background-color: #1e90ff; /* A different shade for the active link */
}

#mySidebar {
	background: #646464;
  box-shadow: 2px 0px 5px rgba(0,0,0,0.2);
	grid-area: side;
	display: flex;
	flex-direction: column;
  height: 100vh; /* Full viewport height */
  overflow: hidden; /* Prevent sidebar from scrolling */

}

/* Assuming "Production Schedule" is wrapped in a <div> with class "schedule-link" */
.schedule-link a {
  display: block; /* Ensures the link fills the entire space of its container for easier clicking */
  padding: 10px; /* Matches your #mySidebar li padding */
  /*border-bottom: 3px solid #fff; /* Matches your #mySidebar li border */
  font-weight: bold; /* Matches your #mySidebar li a font-weight */
  font-size: 1.1em; /* Matches your #mySidebar li a font-size */
  color: #333; /* Matches your #mySidebar li a color */
  text-decoration: none; /* Matches your #mySidebar li a text-decoration */
}

.schedule-link a:hover {
  background-color: #eaeaea; /* Matches your #mySidebar li a:hover background */
  color: blue; /* Adjusted to match your intended hover color; was '#blue' which is incorrect */
}





/* styling for the roomies containers */
#main-content {
    grid-area: main;
    background-color: #c3c5ca;
    padding: 10px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "tabs tabs"
        "summary floorplan"
        "sessions sessions";
    gap: 10px;
    height: 100%;
}

#tabs-container {
    background-color: #f6f7f9;
    border-radius: 5px;
    grid-area: tabs;
}


#floorplan-container,
#summary-container,
#sessions-container {
    transition: flex 0.3s ease;
}

#summary-container {
    grid-area: summary;
    background-color: #f6f7f9;
}


#sessions-container {
  grid-area: sessions;
  max-height: 30vh;
  overflow-y: auto;
  align-self: end;
  background-color: #f6f7f9;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: relative;
}


#sessions-container::-webkit-scrollbar {
    width: 8px;
}

#sessions-container::-webkit-scrollbar-track {
    background: #f0f0f0;
}

#sessions-container::-webkit-scrollbar-thumb {
    background-color: #cccccc;
    border-radius: 4px;
}

#floorplan-container {
    background-color: #f6f7f9;
    border-radius: 5px;
    grid-area: floorplan;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 10px;
    box-sizing: border-box;
}

#floorplan-container img {
    max-width: 100%;
    max-height: calc(100% - 50px); /* Adjust based on h2 height */
    object-fit: contain;
}

#floorplan-container h2 {
    margin: 0 0 10px 0;
    width: 100%;
    text-align: center;
}
pre {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #333;
}

.sidebar-footer {
    margin-top: auto;
    padding: 10px;
    border-top: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.change-role-button {
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.change-role-button:hover {
    background-color: #0056b3;
}

.user-role {
    font-size: 0.9em;
    color: #666;
}


/* Add styles to ensure the sidebar overlays content and the hamburger menu icon appears on small screens */
@media (max-width: 768px) {
  .sidebar {
      position: fixed; /* Keep sidebar fixed on small screens */
      height: 100vh; /* Extend full height */
      z-index: 1000; /* Ensure it's above other content */
  }

  #main-content {
      padding-top: 50px; /* Push down content to show header */
  }
}