/* Footer Styles */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 0.5rem 2rem;
  font-size: 10px;
  height: 64px;
  display: flex;
  align-items: center;
}

.footer-content {
  display: grid;
  grid-template-columns: 5fr 2fr 5fr;
  gap: 1rem;
  width: 100%;
  align-items: center;
}

.footer-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  margin: 0;
  color: #374151;
  white-space: nowrap;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #10b981;
}

.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-version {
  margin: 0;
  color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .site-footer {
    padding: 1rem;
    height: auto;
    min-height: 64px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-logo {
    border: 0;
  }
}

@media (max-width: 768px) {
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  #main-content {
    padding-bottom: 12px !important;
  }

  .container-fluid {
    padding-bottom: 12px !important;
  }

  /* Show right column on mobile (version) */
  .footer-right {
    display: flex;
    order: 3;
  }
}

body {
  padding-bottom: 64px;
}

#main-content {
  margin-bottom: 0 !important;
}

.container-fluid {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.sidebar {
  bottom: 64px !important;
}

.sidebar .search-container {
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  border-bottom: 1px solid #e5e7eb;
}
