
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;
	grid-area: main;
	overflow-y: auto;
	display: grid;

	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows:  50px .5fr .7fr;
	grid-template-areas:

	"tabs floorplan floorplan" 
	"summary floorplan floorplan"
	"sessions sessions sessions";
	 gap: 10px;
}



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

#summary-container{
	background-color: #f6f7f9;
	border-radius: 5px;
	grid-area: summary;
}
#sessions-container {
  background-color: #f6f7f9;
  border-radius: 5px;
  grid-area: sessions;
  max-height: calc(100vh - 60px - 40px); /* Adjust based on your header and padding */
  overflow-y: auto;
  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; /* Make it a flex container */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    
    /* If you also want to ensure the container itself is fully centered or has specific sizing, you might add: */
    width: 100%; /* Take up 100% of the grid area's width */
    height: 100%; /* Adjust based on your design's needs */
    overflow: hidden; /* Optional, in case the image is larger than the container */
}


#floorplan-container img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

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 */
  }
}