@import url('./base.css');
@import url('./nav.css');
@import url('./components.css');
@import url('./pages/home.css');
@import url('./pages/github.css');
@import url('./pages/docker.css');
@import url('./pages/search.css');
@import url('./pages/usage.css');

.main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  text-align: center;
  color: var(--text-secondary);
  transition: background-color 0.3s, border-color 0.3s;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-links {
  margin-top: 8px;
}

.footer-links .divider {
  margin: 0 12px;
}

.loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  color: var(--text-secondary);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--text-color);
  color: var(--bg-color);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  animation: slideIn 0.3s ease;
  z-index: 1000;
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
