/* Main Styles */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.animate-pulse-slow {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.blockchain-node {
  transition: all 0.3s ease;
}

.blockchain-node:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.transaction-line {
  stroke-dasharray: 10;
  animation: dash 1.5s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -20;
  }
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover: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);
}

.dashboard-card {
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.three-canvas {
  width: 100%;
  height: 400px;
  border-radius: 0.5rem;
}

.feature-icon {
  transition: all 0.3s ease;
}

.feature-icon:hover {
  transform: scale(1.1);
}

/* Responsive table styles */
@media (max-width: 640px) {
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
  
  th, td {
    white-space: nowrap;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  .overflow-x-auto {
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  /* Better mobile spacing in the demo page */
  .py-4 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  /* Better table display on mobile */
  .min-w-full {
    width: max-content !important;
  }

  /* Better layout for stat cards in QuarryScan */
  .grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
}
