/* Core Page Settings */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 44px;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: #e7e3da;
  font-family: Roboto-Light;
}

/* Sidebar & Menu Navigation */
#menu-toggle {
  position: absolute;
  left: -9999px;
}

#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#menu-toggle:checked ~ #menu-overlay {
  visibility: visible;
  opacity: 1;
}

#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 265px;
  background: #323949;
  color: #eee;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  z-index: 200;
  transform: translateX(-265px);
  -webkit-transform: translateX(-265px);
  transition: transform 0.3s ease;
}

#menu-toggle:checked ~ #sidebar {
  transform: translateX(0);
  -webkit-transform: translateX(0);
}

#sidebar h4 {
  padding: 15px;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-bottom: 0;
  font-family: arial;
  font-weight: 400;
  font-size: 18px;
  color: #eee;
}

#sidebar ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

#sidebar li > a {
  display: block;
  border-bottom: 1px solid rgba(0,0,0,.1);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 15px;
  text-shadow: 0 1px 0 #000;
  text-decoration: none;
  color: #ccc;
  text-indent: 10px;
  font-family: arial;
  font-size: 16px;
}

.demo-social {
  padding: 0 15px;
}

.menu-icon {
  vertical-align: middle;
  margin-right: 6px;
  border: none;
}

/* Toolbar & Header */
#toolbar {
  background: #ef265d;
  border-bottom: 1px solid #111b32;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 100;
}

#toolbar h1 {
  color: #fff;
  font-size: 18px;
  font-family: Roboto-Light, sans-serif;
  font-weight: 400;
  line-height: 44px;
  text-align: center;
  margin: 0 44px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#open-left {
  background: url(../images/menu_bt.png) center center no-repeat; /* Updated path */
  display: block;
  position: absolute;
  top: 0;
  left: 11px;
  width: 59px;
  height: 44px;
  margin-top: 1px;
  cursor: pointer;
}

/* Main Container */
#touch-capture {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  z-index: 99;
}

#page {
  padding-top: 44px;
  background: #e7e3da;
  min-height: 100vh;
}
/* Prevent the background page from scrolling when the menu is open */
html:has(#menu-toggle:checked) {
  overflow: hidden;
}