/* Custom styles for KYC Proxy Server */

/* Additional transitions */
.transition {
  transition: all 0.2s ease-in-out;
}

/* Color definitions not included in Tailwind base */
.bg-gray-750 {
  background-color: #283040;
}

.bg-gray-650 {
  background-color: #2d3748;
}

.bg-red-950 {
  background-color: #5b0505;
}

/* Animations */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Responsive tables */
@media (max-width: 768px) {
  .table-responsive thead {
    display: none;
  }
  
  .table-responsive tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #4a5568;
    border-radius: 0.375rem;
  }
  
  .table-responsive tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 1px solid #4a5568;
  }
  
  .table-responsive tbody td:last-child {
    border-bottom: none;
  }
  
  .table-responsive tbody td:before {
    content: attr(data-label);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #a0aec0;
  }
}

/* Better form focus styles */
input:focus, select:focus, textarea:focus, button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #1a202c;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #4a5568;
  border-radius: 5px;
}

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

/* Alert animations */
.alert-dismissible {
  transition: opacity 0.5s ease-in-out;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* More readable mono font for keys */
.font-mono {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  letter-spacing: -0.5px;
}

/* Code blocks */
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Status indicators */
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-active {
  background-color: #48bb78;
}

.status-blocked {
  background-color: #f56565;
}

.status-expired {
  background-color: #ed8936;
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a202c;
    z-index: 50;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }
  
  .mobile-nav.open {
    transform: translateX(0);
  }
  
  .mobile-nav-item {
    padding: 1rem 0;
    border-bottom: 1px solid #2d3748;
  }
}

/* Cryptocurrency animation styles */
.crypto-coin {
  position: absolute;
  opacity: 0;
  animation-duration: 15s;
  animation-iteration-count: infinite;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
  transition: all 0.3s ease;
}

.crypto-animation-left .crypto-coin {
  animation-name: floatLeft;
  left: 0;
}

.crypto-animation-right .crypto-coin {
  animation-name: floatRight;
  right: 0;
}

.animate-float {
  animation-play-state: running !important;
  opacity: 0.8 !important;
}

.bitcoin {
  top: 10%;
  animation-delay: 0s;
}

.ethereum {
  top: 30%;
  animation-delay: 3s;
}

.litecoin {
  top: 50%;
  animation-delay: 6s;
}

.ripple {
  top: 70%;
  animation-delay: 9s;
}

.dogecoin {
  top: 15%;
  animation-delay: 2s;
}

.binance {
  top: 35%;
  animation-delay: 5s;
}

.cardano {
  top: 55%;
  animation-delay: 8s;
}

.polkadot {
  top: 75%;
  animation-delay: 11s;
}

@keyframes floatLeft {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes floatRight {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px) rotate(-360deg);
    opacity: 0;
  }
}

/* Enhanced Anime Crypto Animation Styles */
.crypto-anime-left, .crypto-anime-right {
  position: relative;
  height: 100%;
  z-index: 50 !important;
}

.anime-character {
  position: absolute;
  opacity: 1 !important; /* Force visibility */
  animation-duration: 10s;
  animation-iteration-count: infinite;
  transition: all 0.5s ease;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.7));
  z-index: 50 !important;
}

.crypto-anime-left .anime-character {
  animation-name: animeFloatLeft;
  left: 0;
}

.crypto-anime-right .anime-character {
  animation-name: animeFloatRight;
  right: 0;
}

.animate-float {
  animation-play-state: running !important;
}

.bitcoin-chan {
  top: 10%;
  animation-delay: 0s;
}

.ethereum-chan {
  top: 45%;
  animation-delay: 5s;
}

.doge-chan {
  top: 15%;
  animation-delay: 2s;
}

.ada-chan {
  top: 50%;
  animation-delay: 7s;
}

/* Anime character backgrounds and effects */
.anime-character > div {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  transition: all 0.3s ease;
}

@keyframes animeFloatLeft {
  0% {
    transform: translateY(0) rotate(-5deg);
  }
  25% {
    transform: translateY(-15px) rotate(0deg);
  }
  50% {
    transform: translateY(0) rotate(5deg);
  }
  75% {
    transform: translateY(-15px) rotate(0deg);
  }
  100% {
    transform: translateY(0) rotate(-5deg);
  }
}

@keyframes animeFloatRight {
  0% {
    transform: translateY(0) rotate(5deg);
  }
  25% {
    transform: translateY(-15px) rotate(0deg);
  }
  50% {
    transform: translateY(0) rotate(-5deg);
  }
  75% {
    transform: translateY(-15px) rotate(0deg);
  }
  100% {
    transform: translateY(0) rotate(5deg);
  }
}

/* Speech bubble for anime characters */
.speech-bubble {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(22, 30, 46, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.5);
  z-index: 100;
  animation: bubblePop 0.3s ease-out;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(22, 30, 46, 0.9);
}

/* Glowing effect for anime characters */
.hover-glow > div {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
  transform: scale(1.1);
}

/* Anime fallback styles */
.anime-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: radial-gradient(circle, rgba(78, 159, 255, 0.2) 0%, rgba(78, 159, 255, 0) 70%);
  animation: pulse 2s infinite;
}

.anime-character {
  cursor: pointer;
} 