/* Shared layout for main panel so footer aligns with sidebar */
.main-panel {
  position: relative;
  margin-left: 280px;
  width: calc(100% - 280px);
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  /* Ensure content never hides behind fixed footer */
  padding-bottom: 72px;
}

.content-wrapper {
  padding: 5rem 1.75rem 2rem;
  width: 100%;
  flex-grow: 1;
  margin: 0 auto;
}

/* Modern fixed footer inside main content area */
.main-panel .footer {
  position: fixed;
  left: 280px;
  right: 0;
  bottom: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.75rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(240, 242, 245, 0.4)) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #566a7f;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 -8px 32px 0 rgba(31, 38, 135, 0.1), inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
  z-index: 50;
}

/* Standalone footer (pages without .main-panel, e.g. login) */
.footer-standalone {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.75rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(240, 242, 245, 0.4)) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #566a7f;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 -8px 32px 0 rgba(31, 38, 135, 0.1), inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
  z-index: 50;
}

.footer-standalone .footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1280px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-standalone .footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer-standalone .footer-pill {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.85);
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0.06em;
}

@media (max-width: 991px) {
  .main-panel {
    margin-left: 0;
    width: 100%;
    padding-bottom: 68px;
  }

  .main-panel .footer {
    left: 0;
    padding: 0 1.25rem;
  }

  .main-panel .footer .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
  }
}