/* ===================== Base ===================== */
html, body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
  background-color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;  /* Ensure full height for sticky footer */
}

/* Sticky Footer */
footer {
  margin-top: auto;           /* Push footer to bottom */
  text-align: center;
  background-color: #212529;  /* Bootstrap dark */
  color: #fff;
  padding: 10px 5px;
  font-size: 0.9rem;
}

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: linear-gradient(to right, #e6f5f0, #ffffff);
  padding: 15px 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #63a874;
}
.site-header img {
  max-height: 60px;
}
.site-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #2f5f3f;
  text-align: center;
}
.site-subtitle {
  font-size: 1rem;
  color: #444;
  text-align: center;
}
.img-fluid {
  height: auto;
  max-width: 100%;
}

/* ===================== Main Content ===================== */
.main-content {
  margin-left: 230px;
  padding: 20px;
  transition: margin-left 0.3s ease;
  flex: 1;   /* ✅ Make content take remaining height */
}
.sidebar.collapsed ~ .main-content {
  margin-left: 60px;
}

/* ===================== Mobile View ===================== */
@media (max-width: 768px) {
  .site-header .row > div {
    text-align: center !important;
    margin-bottom: 10px;
  }
  .main-content {
    margin-left: 0 !important;
  }
}
