/* ========================================
   TOGEL GENERATOR - BOLAPELANGI
   Style terpisah dari HTML
   ======================================== */

* {
  font-family: 'Poppins', 'Inter', sans-serif;
}

body {
  background: linear-gradient(135deg, #0a0f2a 0%, #0f172a 100%);
  min-height: 100vh;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1e293b;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #60a5fa;
}

/* Animasi fade in */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card {
  animation: fadeInUp 0.3s ease-out forwards;
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
}

/* Glow effect */
.glow-text {
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Number input spinner */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 0.5;
}

/* Focus effect */
input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Button transitions */
button {
  transition: all 0.2s ease;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Format button active state */
.format-btn {
  cursor: pointer;
}

.format-btn.active {
  background-color: rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.8);
}

/* Stat icon */
.stat-icon {
  transition: all 0.3s ease;
}

.result-card:hover .stat-icon {
  transform: scale(1.05);
}

/* Result textarea */
.result-textarea {
  scroll-behavior: smooth;
}

.result-textarea::-webkit-scrollbar {
  width: 6px;
}

.result-textarea::-webkit-scrollbar-track {
  background: #0f172a;
  border-radius: 10px;
}

.result-textarea::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 10px;
}

/* ========== FLOATING SOCIAL ICONS ========== */
.whatsapp-float {
  animation: bounceSlow 2s ease-in-out infinite;
}

.telegram-float {
  animation: floatSlow 2.5s ease-in-out infinite;
}

@keyframes bounceSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.whatsapp-float:hover,
.telegram-float:hover {
  transform: scale(1.1);
}

/* Tooltip effect */
.whatsapp-float span,
.telegram-float span {
  transition: all 0.3s ease;
  transform: translateX(10px);
}

.whatsapp-float:hover span,
.telegram-float:hover span {
  transform: translateX(0);
}

/* Ripple effect on hover */
.whatsapp-float::before,
.telegram-float::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s ease-out;
}

.whatsapp-float:hover::before,
.telegram-float:hover::before {
  transform: translate(-50%, -50%) scale(1.5);
  opacity: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .result-card p.text-2xl {
    font-size: 1.25rem;
  }
  
  .glow-text {
    font-size: 1.5rem;
  }
  
  .format-btn {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
  }
  
  .result-textarea {
    height: 250px;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Footer links */
footer a {
  transition: color 0.2s ease;
}

footer a:hover {
  color: #60a5fa;
}