<!DOCTYPE html>
<html>
<head>
  <title>Seniorpicchi.online</title>
  <link rel="stylesheet" href="styles.css">
  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
</head>
<body>
  <div class="container">
    <header>
      <h1>Seniorpicchi.online</h1>
      <div class="header-buttons">
        <button id="reloadButton" class="icon-button" title="Reload">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.65 6.35A7.958 7.958 0 0012 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0112 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/></svg>
        </button>
        <button id="logoutButton" class="icon-button" title="Logout">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"/></svg>
        </button>
      </div>
    </header>

    <div id="loginSection">
      <h2 class="section-title">Login</h2>
      <input type="text" id="apiKey" placeholder="Enter API Key" />
      <button id="loginButton" class="primary-button">Login</button>
      <div id="errorMessage"></div>
    </div>

    <div id="welcomeMessage">
      <h2>Welcome, <span id="username"></span>!</h2>
      <p class="expiry-info">API Key expires on: <span id="expireDate"></span></p>
    </div>

    <div id="cookieButtons" class="options">
      <h2 class="section-title">Available Products</h2>
      <!-- Product buttons will be inserted here -->
    </div>

    <div class="action-buttons">
      <button id="logoutButton" class="secondary-button">Logout</button>
    </div>

    <footer>
      <p>About Seniorpicchi.online</p>
    </footer>
  </div>

  <script src="popup.js"></script>
</body>
</html>
