/* style.css - Updated with black & #4343ff design */
* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background: #000000;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  margin: 0;
}

.container {
  width: 100%;
  max-width: 480px;
  background: #111111;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #333333;
  box-shadow: 0 10px 40px rgba(67, 67, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #4343ff;
  border-radius: 16px 16px 0 0;
}

h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: #4343ff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wallet-section {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid #333333;
}

.wallet-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.wallet-buttons button {
  flex: 1;
  margin-top: 0;
}

.wallet-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#wallet {
  background: rgba(67, 67, 255, 0.1);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(67, 67, 255, 0.3);
  font-size: 0.9rem;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 8px;
}

#wallet i {
  color: #4343ff;
  font-size: 1rem;
}

.network-badge {
  background: rgba(67, 67, 255, 0.15);
  color: #4343ff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(67, 67, 255, 0.3);
}

.network-badge i {
  font-size: 0.9rem;
}

.divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #333333;
  z-index: 1;
}

.divider span {
  background: #111111;
  padding: 0 15px;
  position: relative;
  z-index: 2;
  color: #4343ff;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-section {
  margin-bottom: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cccccc;
}

label i {
  color: #4343ff;
  font-size: 0.9rem;
}

select, input, textarea {
  width: 100%;
  padding: 14px;
  margin-top: 0;
  background: #1a1a1a;
  border: 2px solid #333333;
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: #4343ff;
  box-shadow: 0 0 0 3px rgba(67, 67, 255, 0.1);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888888;
  cursor: pointer;
  transition: color 0.3s;
}

.input-with-icon i:hover {
  color: #4343ff;
}

button {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  background: #4343ff;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

button:hover {
  background: #3535cc;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(67, 67, 255, 0.2);
}

.btn-primary {
  background: #4343ff;
}

.btn-secondary {
  background: #333333;
  border: 2px solid #4343ff;
  color: #ffffff;
}

.btn-secondary:hover {
  background: #444444;
}

.btn-send {
  background: #4343ff;
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(67, 67, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(67, 67, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 67, 255, 0); }
}

.action-section {
  margin-top: 30px;
}

.status-container {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 25px;
  border: 1px solid #333333;
}

.status-header {
  background: rgba(67, 67, 255, 0.1);
  padding: 12px 16px;
  font-weight: 600;
  color: #4343ff;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #333333;
}

.status-content {
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 60px;
  word-break: break-word;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

#status.success {
  color: #00ff00;
}

#status.error {
  color: #ff4444;
}

.footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #333333;
}

#poweredBySend {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.85rem;
  opacity: 0.8;
  text-align: center;
  color: #888888;
}

#poweredBySend strong {
  color: #4343ff;
  font-weight: 700;
}

#poweredBySend i {
  margin: 0 4px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .container {
    padding: 20px;
    max-width: 100%;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .wallet-buttons {
    flex-direction: column;
  }
  
  select, input, textarea {
    padding: 12px;
  }
  
  button {
    padding: 14px;
  }
}

/* Dark mode scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #4343ff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3535cc;
}
html, body {
  touch-action: manipulation;
}
