<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>Cleans GSC Obfuscator</title>
  <style>
    /* Make body fill the screen */
    html, body {
      margin: 0;
      padding: 0;
      height: 100%;
    }
    body {
      display: flex;
      justify-content: center;
      align-items: center;
      background: linear-gradient(135deg, #000000, #494e57);
      font-family: Arial, sans-serif;
      color: #fff;
      overflow: hidden; /* Remove scrollbars, optional */
    }
    /* Container with flashy border */
    #appContainer {
      border: 5px solid transparent;
      border-image: linear-gradient(
        45deg,
        red,
        yellow,
        green,
        cyan,
        blue,
        magenta,
        red
      );
      border-image-slice: 1;
      animation: borderColors 3s linear infinite;
      padding: 20px;
      border-radius: 15px;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
      background: rgba(0, 0, 0, 0.8);
      width: 600px;
      text-align: center;
    }
    @keyframes borderColors {
      0% {
        border-image-source: linear-gradient(
          45deg,
          red,
          yellow,
          green,
          cyan,
          blue,
          magenta,
          red
        );
      }
      100% {
        border-image-source: linear-gradient(
          405deg,
          red,
          yellow,
          green,
          cyan,
          blue,
          magenta,
          red
        );
      }
    }
    /* Flashing title */
    #appTitle {
      font-size: 2.5em;
      font-weight: bold;
      animation: flashingText 2s infinite;
      margin-bottom: 20px;
    }
    @keyframes flashingText {
      0%, 100% {
        color: #ff4d4d;
      }
      25% {
        color: #4dff4d;
      }
      50% {
        color: #4d4dff;
      }
      75% {
        color: #ffff4d;
      }
    }
    /* Inputs and Buttons */
    #fileInput {
      padding: 10px;
      margin: 15px 0;
      border: 2px solid #fff;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      font-size: 1em;
    }
    /* Darker dropdown background */
    #profileSelect {
      padding: 10px;
      margin: 15px 0;
      border: 2px solid #fff;
      border-radius: 8px;
      background: #333; /* Darker background */
      color: #fff;
      font-size: 1em;
    }
    button {
      padding: 10px 20px;
      margin: 10px;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      font-size: 1em;
      transition: background-color 0.3s ease, transform 0.2s ease;
    }
    #obfuscateButton {
      background-color: #28a745;
      color: #fff;
    }
    #obfuscateButton:hover {
      background-color: #218838;
      transform: scale(1.1);
    }
    #clearButton {
      background-color: #dc3545;
      color: #fff;
    }
    #clearButton:hover {
      background-color: #c82333;
      transform: scale(1.1);
    }
    /* Progress bar */
    #progressBar {
      width: 100%;
      height: 25px;
      border-radius: 12px;
      background-color: #444;
      display: none;
      margin: 20px 0;
    }
    /* Log container */
    #logContainer {
      background-color: #222;
      padding: 15px;
      margin: 20px 0;
      border-radius: 8px;
      overflow-y: auto;
      height: 150px;
      display: none;
      text-align: left;
    }
    /* Log message colors */
    .info-message {
      color: #17a2b8;
    }
    .success-message {
      color: #28a745;
    }
    .error-message {
      color: #dc3545;
    }
  </style>
</head>
<body>
  <div id="appContainer">
    <div id="appTitle">Cleans GSC Obfuscator</div>
    <!-- File Input -->
    <input type="file" id="fileInput" accept=".gsc" />
    <!-- Dropdown Selection -->
    <select id="profileSelect">
      <option value="basic">Basic</option>
      <option value="medium">Medium</option>
      <option value="hardcore">Hardcore</option>
    </select>
    <!-- Buttons -->
    <button id="obfuscateButton">Obfuscate</button>
    <button id="clearButton">Clear</button>
    <!-- Progress bar & Logs -->
    <progress id="progressBar" value="0" max="100"></progress>
    <div id="logContainer"></div>
  </div>
  <script src="renderer.js"></script>
</body>
</html>
