html, body {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  display: flex;
  flex-direction: column;
  background-color: #fafafa;
  transition: background-color 0.3s ease;
}
main {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
}
.doc-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}
.doc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(161, 0, 255, 0.2);
}
.doc-card:hover::before {
  opacity: 1;
}
.bg-gradient {
  background: linear-gradient(135deg, #a100ff 0%, #eed4fd 100%);
}
.text-gradient {
  background: linear-gradient(135deg, #a100ff 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.hero-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
}
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(161, 0, 255, 0.2);
  border-radius: 50%;
  border-top-color: #a100ff;
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  opacity: 0.4;
}
.blob-1 {
  top: 10%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.2);
  animation: float 8s ease-in-out infinite;
}
.blob-2 {
  bottom: 10%;
  left: 10%;
  width: 250px;
  height: 250px;
  background: rgba(14, 165, 233, 0.2);
  animation: float 10s ease-in-out infinite;
}
.type-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.type-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}
.doc-card:hover .type-badge {
  transform: translateY(-2px);
}
.card-icon {
  transition: all 0.3s ease;
}
.doc-card:hover .card-icon {
  transform: scale(1.1);
}
.filter-btn {
  transition: all 0.2s ease;
}
.filter-btn:hover {
  transform: translateY(-2px);
}
.filter-btn.active {
  background-color: #a100ff;
  color: white;
}
/* Keyboard focus styles */
.keyboard-focus:focus {
  outline: 2px solid #a100ff;
  outline-offset: 2px;
}