/* NLNL.io Styles */

/* Base Styles */
body {
  background: url("../img/bj.png") center center / cover no-repeat fixed;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.main-wrapper {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* Gradient Border Effect */
.gradient-border {
  background: linear-gradient(135deg, #007fe9, #00d4ff, #007fe9);
  padding: 2px;
  border-radius: 12px;
  position: relative;
}

.gradient-border > div {
  background: #0f1419;
  border-radius: 10px;
  position: relative;
}

/* Light Sweep Animation */
.light-sweep-blue {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 127, 233, 0.3), transparent);
  animation: sweep 3s infinite;
  border-radius: 10px;
}

@keyframes sweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Button Styles */
.btn {
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.btn:hover {
  color: #007fe9 !important;
}

.slider {
  background: linear-gradient(90deg, #007fe9, #00d4ff);
  border-radius: 2px;
}

/* Purchase Button */
.purchase-energy-btn {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #007fe9, #00d4ff);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.purchase-energy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 127, 233, 0.3);
}

.purchase-energy-btn:active {
  transform: translateY(0);
}

/* Input Styles */
input[type="text"], input[type="number"] {
  background: #000000;
  border: 1px solid #374151;
  color: #ffffff;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="number"]:focus {
  outline: none;
  border-color: #007fe9;
  box-shadow: 0 0 0 3px rgba(0, 127, 233, 0.1);
}

/* Token Selector */
.ant-select-selector {
  background: transparent;
  border: none;
  color: #ffffff;
}

.token-item:hover {
  background-color: #374151 !important;
}

/* Wallet Modal */
.wallet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.wallet-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  width: 90%;
  max-width: 400px;
}

.wallet-modal-content {
  background: #1a1f2e;
  padding: 24px;
  border-radius: 12px;
  color: #ffffff;
}

.wallet-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #2d3748;
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  cursor: pointer;
}

.wallet-item:hover {
  background: #4a5568;
  transform: translateX(4px);
}

.wallet-item img {
  width: 32px;
  height: 32px;
  margin-right: 12px;
}

.wallet-close-btn {
  width: 100%;
  padding: 12px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.wallet-close-btn:hover {
  background: #b91c1c;
}

/* Switch Currency Button */
.switch-currency-button {
  background: #2d3748;
  border: 2px solid #4a5568;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.switch-currency-button:hover {
  border-color: #007fe9;
  background: #374151;
  transform: rotate(180deg);
}

/* Purchase Buttons */
.purchase-btn {
  transition: all 0.3s ease;
}

.purchase-btn:hover {
  background: #374151 !important;
  border-color: #007fe9 !important;
  color: #007fe9 !important;
}

.purchase-btn.active {
  background: #007fe9 !important;
  border-color: #007fe9 !important;
  color: white !important;
}

/* Language Switcher */
#language-switcher {
  z-index: 100;
}

#language-options {
  background: #1a1f2e;
  border: 1px solid #374151;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 480px) {
  .main-wrapper {
    padding: 16px;
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hidden Class */
.hidden {
  display: none !important;
}

/* Text Colors */
.text-orange {
  color: #f59e0b;
}

/* Loading Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner {
  border: 2px solid #374151;
  border-top: 2px solid #007fe9;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

/* Success/Error Messages */
.message-success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.message-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.message-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

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

/* Smooth Transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #1a1f2e;
}

::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a5568;
}

