
body {
  padding-top: 130px;           /* Increased to fit taller header (top bar + navbar) */
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.no-header {
  padding-top: 0;
}

/* Larger fixed-height top bar */
.navbar-top-bar {
  background-color: white;
  
  border-bottom: 1px solid #e67e22;
  padding: 5px 5px;
  font-size: 15px;
  text-align: center;
  min-height: 80px;     
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-top-bar .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

/* Optional: center content vertically if you add tall elements */
.navbar-top-bar p,
.navbar-top-bar strong {
  margin: 0;
  line-height: 1.5;
}

/* Sidebar starts below the taller header */
.sidebar {
  position: fixed;
  top: 130px;                   /* Matches body padding-top */
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: block;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #f5f5f5;
  border-right: 1px solid #eee;
  width: 250px;
  transition: all 0.3s ease;
}


    .sidebar.hidden {
      left: -250px;                 /* Slide out of view */
    }

    .sidebar .nav > li > a {
      padding: 10px 15px;
      color: #555;
    }

    .sidebar .nav > li > a:hover,
    .sidebar .nav > li > a:focus {
      background-color: #eee;
    }

    .sidebar .nav > .active > a,
    .sidebar .nav > .active > a:hover,
    .sidebar .nav > .active > a:focus {
      color: #fff;
      background-color: #428bca;
    }

    /* Main content - transitions smoothly */
    .main-content {
      margin-left: 250px;
      padding: 20px 40px;
      transition: margin-left 0.3s ease;
    }

    .main-content.full-width {
      margin-left: 0;
    }

    /* Context header */
    .context-header {
      margin-bottom: 30px;
      border-bottom: 1px solid #eee;
      padding-bottom: 15px;
    }

    .context-header h2 {
      margin: 0 0 10px;
    }

    /* Toggle button styling */
    #sidebarToggle {
      margin-right: 15px;
    }

    .icon-cell {
      width: 20px; /* icons are wider than 20, but this makes a snug fit */
    }

    @media (max-width: 991px) {
      .sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #eee;
        left: 0 !important;           /* Override slide on mobile */
      }
      .sidebar.hidden {
        display: none;                /* Just hide on mobile instead of slide */
      }
      .main-content,
      .main-content.full-width {
        margin-left: 0;
      }

      body {
        padding-top: 160px;
      }

      body.no-header {
        padding-top: 0;
      }      
      
      .sidebar {
        top: 0;
      }
    }

    @media (max-width: 768px) {
      .nav-pills > li {
        float: none;
        display: block;
      }
      .nav-pills > li + li {
        margin-left: 0;
      }
      .navbar-top-bar {
        font-size: 13px;
        padding: 6px 0;
      }
    }