/**
 * Botho Seed Node Status - Custom Styles
 *
 * Most styling is handled by Tailwind CSS via CDN.
 * This file contains minimal custom styles for specific needs.
 */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0b0f;
}

::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

/* Focus ring styles */
button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3);
}

/* Button hover effect */
button:not(:disabled):hover {
  background-size: 150% 150%;
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #1f2937;
  border-top-color: #06b6d4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Pulse animation for status indicators */
@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2s ease-in-out infinite;
}

/* Code/monospace styling */
code, .font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Truncate long text with ellipsis */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .max-w-2xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Stack metrics vertically on very small screens */
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Card hover effect */
.bg-botho-card {
  transition: border-color 0.2s ease;
}

.bg-botho-card:hover {
  border-color: #374151;
}

/* Link hover transitions */
a {
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* Tooltip for hash display */
[title] {
  cursor: help;
}
