/* Dashboard-specific styles with beautiful gradient background */

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 25%, #7c2d92 50%, #db2777 75%, #be185d 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

/* Glassmorphism cards */
.bg-slate-900\/50 {
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.bg-slate-800 {
  background: rgba(30, 41, 59, 0.8) !important;
}

/* Platform button styling */
.platform-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #9ca3af;
}

.platform-btn:hover {
  background: rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.platform-btn.active {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(236, 72, 153, 0.3));
  border-color: #9333ea;
  color: #fff;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
}

/* Custom range slider */
.slider {
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #9333ea 0%, #ec4899 100%);
  outline: none;
  border-radius: 10px;
  height: 6px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #9333ea, #ec4899);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
  transition: all 0.3s;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.8);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #9333ea, #ec4899);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
  border: none;
  transition: all 0.3s;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.8);
}

/* Checkbox styling */
.checkbox-wrapper input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(147, 51, 234, 0.5);
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.6);
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.checkbox-wrapper input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  border-color: #9333ea;
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

/* Launch button styling */
.launch-btn {
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
  width: 100%;
}

.launch-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(147, 51, 234, 0.6);
}

.launch-btn:active {
  transform: translateY(-1px);
}

.launch-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 24px;
  padding: 32px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* QR Code styling */
.qr-code {
  background: white;
  padding: 16px;
  border-radius: 12px;
  display: inline-block;
}

/* Copy button */
.copy-btn {
  background: rgba(147, 51, 234, 0.2);
  border: 1px solid rgba(147, 51, 234, 0.5);
  padding: 8px 16px;
  border-radius: 8px;
  color: #a855f7;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.copy-btn:hover {
  background: rgba(147, 51, 234, 0.3);
  border-color: #9333ea;
}

/* Spinner animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Wallet connection screen */
#walletConnectScreen {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    padding: 24px;
  }

  body::before {
    background-size: 30px 30px;
  }
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}
