* {
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #eef2f3, #dfe6e9);
      margin: 0;
      position: relative;
      overflow-x: hidden;
      min-height: 100vh;
    }

    .background-img {
      position: absolute;
      bottom: 0;
      left: 0;
      height: 100vh;
      width: auto;
      z-index: 0;
      opacity: 0.2;
    }

    header {
      background-color: #0f172a;
      color: white;
      padding: 16px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      border-bottom: 3px solid #0ff;
      box-shadow: 0 2px 10px rgba(0, 255, 255, 0.2);
      z-index: 10;
      position: relative;
    }

    .center-logo {
      max-height: 60px;
      margin: 0;
      padding: 0;
      margin-top: -50px;
    }

    .logo {
      height: 40px;
      background: white;
      border-radius: 6px;
      padding: 0px 10px;
    }

    .nav-links {
      display: flex;
      gap: 20px;
    }

    .nav-links a {
      color: white;
      text-decoration: none;
      font-weight: 500;
      font-size: 16px;
      transition: color 0.3s ease;
      position: relative;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -4px;
      width: 0%;
      height: 2px;
      background: #0ff;
      transition: width 0.3s ease;
    }

    .nav-links a:hover {
      color: #0ff;
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    .hamburger {
      display: none;
      font-size: 24px;
      cursor: pointer;
      color: #0ff;
    }

    @media (max-width: 600px) {
      .hamburger {
        display: block;
      }

      .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
      }

      .nav-links.active {
        display: flex;
      }
    }

    .main-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 40px 20px;
      min-height: calc(100vh - 80px); 
    }

    .container {
      background: #fff;
      padding: 80px 40px;
      border-radius: 14px;
      box-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 30px #0ff;
      max-width: 700px;
      min-height: 450px;
      width: 100%;
      position: relative;
      text-align: center;
      z-index: 1;
      border: 2px solid #0ff;
      transition: all 0.4s ease;
    }

    h1 {
      color: #2c3e50;
      margin-bottom: 40px;
      font-size: 26px;
      text-transform: uppercase;
      font-weight: 700;
      letter-spacing: 1px;
    }

    .cancel-btn {
      position: absolute;
      top: 5px;
      right: 5px;
      background: transparent;
      border: 2px solid #eee;
      color: #333;
      font-size: 15px;
      padding: 3px 7px;
      border-radius: 6px;
      cursor: pointer;
      transition: 0.3s ease;
      z-index: 2;
    }

    .cancel-btn:hover {
      background-color: #E30613;
      color: white;
      border-color: #E30613;
    }

    .search-box {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 20px;
      flex-wrap: wrap;
    }

    .prefix-select {
      background-color: #0ff;
      color: #000;
      font-weight: bold;
      padding: 14px;
      border-radius: 10px 0 0 10px;
      font-size: 16px;
      border: 2px solid #ccc;
      border-right: none;
      outline: none;
      cursor: pointer;
    }

    .search-box input {
      padding: 14px;
      font-size: 18px;
      border: 2px solid #ccc;
      border-radius: 0 10px 10px 0;
      outline: none;
      width: 220px;
      text-align: center;
    }

    .search-box input::placeholder {
      font-size: 14px;
      color: #999;
    }

    .search-box input:focus {
      border-color: #0ff;
      box-shadow: 0 0 8px #0ff;
    }

    .result-box {
      margin-top: 35px;
      font-size: 20px;
      font-weight: bold;
      padding: 25px;
      border-radius: 10px;
      display: none;
      white-space: pre-line;
      transition: all 0.4s ease;
    }

    .result-hold {
      background-color: #B20410;
      color: white;
    }

    .result-release {
      background-color: #28A745;
      color: white;
    }

    .result-error {
      background-color: #E30613;
      color: white;
    }

    .input-wrapper {
      position: relative;
      display: inline-block;
    }

    .clear-icon {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: #aaa;
      font-size: 18px;
      cursor: pointer;
      display: none;
      transition: color 0.2s ease;
      z-index: 2;
    }

    .clear-icon:hover {
      color: #E30613;
    }

    .input-wrapper input {
      padding-right: 30px; 
    }

    .info-button, .history-button {
      position: fixed;
      right: 15px;
      font-size: 20px;
      background: transparent;
      border-radius: 50%;
      padding: 8px 10px;
      cursor: pointer;
      border: 2px solid #0ff;
      transition: background 0.3s, color 0.3s;
      z-index: 100;
    }

    .info-button {
      top: 100px;
    }

    .history-button {
      top: 150px;
    }

    .info-button:hover, .history-button:hover {
      background-color: #0ff;
      color: #000;
    }

    .info-modal, .history-modal {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.5);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 999;
    }

    .info-modal.active, .history-modal.active {
      display: flex;
    }

    .modal-content {
      background: white;
      padding: 30px;
      max-width: 500px;
      border-radius: 12px;
      position: relative;
      text-align: center;
      box-shadow: 0 0 15px #0ff;
    }

    .history-modal .modal-content {
      max-width: 700px;
    }

    .modal-close {
      position: absolute;
      top: 10px;
      right: 14px;
      font-size: 24px;
      background: transparent;
      border: none;
      cursor: pointer;
      color: #aaa;
    }

    .modal-close:hover {
      color: #E30613;
    }

    .rules-list {
      list-style: none;
      padding-left: 0;
      margin: 20px 0;
    }

    .rules-list li {
      margin: 10px 0;
      font-size: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .table-container {
      overflow-x: auto;
      margin: 20px 0;
    }

    .rules-table, .history-table {
      width: 100%;
      border-collapse: collapse;
      text-align: center;
      font-size: 15px;
      box-shadow: 0 0 10px rgba(0,255,255,0.2);
    }

    .rules-table th,
    .rules-table td,
    .history-table th,
    .history-table td {
      padding: 10px 8px;
      border: 1px solid #ccc;
    }

    .rules-table th,
    .history-table th {
      background-color: #0ff;
      color: #000;
      font-weight: bold;
      font-size: 14px;
      white-space: nowrap;
    }

    .rules-table mark {
      background-color: #B20410;
      color: white;
      padding: 3px 6px;
      border-radius: 4px;
    }

    .history-table tbody tr:hover {
      background-color: #f0f0f0;
      cursor: pointer;
    }

    .history-table .result-hold {
      color: white;
      font-weight: bold;
    }

    .history-table .result-normal {
      color: green;
      font-weight: bold;
    }

    .history-table .result-error {
      color: white;
      font-weight: bold;
    }

    .history-table .result-not-found {
      color: green;
      font-weight: bold;
    }

    .reset-button {
      background: transparent;
      border: 2px solid #E30613;
      color: #E30613;
      font-size: 14px;
      padding: 8px 16px;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.3s, color 0.3s;
      margin-top: 20px;
    }

    .reset-button:hover {
      background-color: #E30613;
      color: white;
    }

    @media (max-width: 600px) {
      .container {
        padding: 40px 20px;
      }

      .search-box {
        flex-direction: column;
        align-items: stretch;
      }

      .prefix-select,
      .search-box input {
        border-radius: 10px;
        width: 100%;
        margin-bottom: 10px;
      }

      .search-box input {
        border-radius: 10px;
      }

      .cancel-btn {
        top: 15px;
        right: 15px;
      }

      .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        margin-top: 10px;
      }

      .nav-links.active {
        display: flex;
      }

      .input-wrapper {
        width: 100%;
      }

      .input-wrapper input {
        width: 100%;
      }

      .clear-icon {
        right: 14px;
      }
    }
