
:root {
    --sidebar-width:   240px;
    --header-height:    60px; /* adjust to match your header’s height */
    --footer-height:    60px; /* adjust to match your footer’s height */
  }
  
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html,
  body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: #fafbfc;
    color: #333;
    overflow: hidden; /* prevent body scrolling */
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* --------------------------------------------------------------------------
     Sidebar
     ----------------------------------------------------------------------- */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: #1f2029;
    color: #c1c2c7;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  sidebar-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
  }
  
  .sidebar-brand {
    background: transparent;
    padding: 1.5rem 0;
    text-align: center;
  }
  
  .sidebar-logo {
    width: 200px;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
  }
  
  /* ===== Sidebar Navigation ===== */
  .sidebar-menu {
    padding-left: 0;
    list-style: none;
    margin: 0;
  }
  
  .sidebar-section-title {
    padding: 10px 20px 5px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #9aa0ac;
  }
  
  @media (max-width: 992px) {
    .sidebar {
      transform: translateX(-100%);
    }
    .sidebar.show {
      transform: translateX(0);
    }
  }
  
  /* Sidebar header */
  .sidebar .sidebar-header {
    padding: 1.25rem 1rem;
    text-align: center;
    background: #292a38;
  }
  .sidebar .sidebar-header img {
    max-width: 100px;
    margin-bottom: .5rem;
  }
  .sidebar .sidebar-header h5 {
    margin-bottom: .25rem;
    color: #fff;
    font-size: 1.25rem;
  }
  .sidebar .sidebar-header small {
    color: #8a8c98;
    font-size: .85rem;
  }
  
  /* Sidebar navigation */
  .sidebar .nav {
    margin-top: 1rem;
  }
  .sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: .65rem 1rem;
    font-size: .9rem;
    color: #c1c2c7;
    transition: background .2s, color .2s;
  }
  .sidebar .nav-link i {
    margin-right: .75rem;
    min-width: 1.25rem;
    text-align: center;
  }
  .sidebar .nav-link:hover,
  .sidebar .nav-link.active {
    background: #353549;
    color: #fff;
  }
  .sidebar .nav-link:hover i,
  .sidebar .nav-link.active i {
    color: #4e9eff;
  }
  
  /* --------------------------------------------------------------------------
     Header
     ----------------------------------------------------------------------- */
  header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid #e3e6ea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1.5rem;
    z-index: 900;
  }
  @media (max-width: 992px) {
    header {
      left: 0;
      right: 0;
    }
  }
  header .btn {
    background: transparent;
    border: none;
    color: #555;
    font-size: 1.1rem;
  }

.sidebar .sidebar-header img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
  }
  
  .sidebar .sidebar-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f5f5f5;
    text-transform: uppercase;
    line-height: 1.4;
    margin: 0;
    padding: 0 0.5rem;
  }
  
  .page-body {
    position: fixed;
    top: var(--header-height);
    bottom: var(--footer-height);
    left: var(--sidebar-width);
    right: 0;
    overflow-y: auto;
    padding: 1rem;
    background: #fafbfc;
  }
  @media (max-width: 992px) {
    .page-body {
      left: 0;
      right: 0;
    }
  }
  
  /* --------------------------------------------------------------------------
     Footer
     ----------------------------------------------------------------------- */
  .footer-bar {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--footer-height);
    background-color: #f8f9fc;
    border-top: 1px solid #e2e2e2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 .75rem;
    font-size: .85rem;
    color: #555;
    z-index: 900;
  }
  @media (max-width: 992px) {
    .footer-bar {
      left: 0;
      right: 0;
    }
  }
  
  /* Footer link helpers */
  .footer-link {
    text-decoration: none;
    font-weight: 500;
  }
  .footer-link-email {
    color: #007bff;
  }
  .footer-link-phone {
    color: #007bff;
  }
  
  /* --------------------------------------------------------------------------
     Mobile Overlay for Sidebar
     ----------------------------------------------------------------------- */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(0,0,0,0.3);
    z-index: 850;
  }
  .sidebar-overlay.show {
    display: block;
  }
  
  /* --------------------------------------------------------------------------
     Responsive Tweaks
     ----------------------------------------------------------------------- */
  @media (max-width: 576px) {
    /* Hide some header icons */
    header .fa-search,
    header .fa-language,
    header h5 {
      display: none;
    }
  
    /* Stack footer content */
    .footer-bar {
      flex-direction: column;
      text-align: center;
      gap: 6px;
      padding-bottom: 1rem;
    }
  }
  
  