body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .scanner-container {
    width: 100%;
    max-width: 400px;
    margin-top: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
  }

  .scanner-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
  }

  #reader {
    width: 100%;
    height: 300px;
    border: 2px dashed #ccc;
    position: relative;
  }

  .tooltip {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5pt;
    border: 1px solid #171717;
    font-size: 10pt;
    background: rgba(0, 0, 0, 0.69);
    border-radius: 5px;
    text-align: center;
    font-weight: 400;
    color: white;
    display: none;
  }

  #qr_scanner_result {
    margin-top: 60px;
    font-size: 1rem;
    color: #2c3e50;
    word-break: break-word;
  }

  #history {
    margin-top: 20px;
    text-align: left;
  }

  #history h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #555;
  }

  #history ul {
    list-style: none;
    padding: 0;
    max-height: 150px;
    overflow-y: auto;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
  }

  #history ul li {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
  }

  #clear-history {
    margin-top: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
  }

  footer {
    margin-top: auto;
    padding: 10px;
    font-size: 12px;
    color: #888;
  }
  .html5-qrcode-element{
    margin-bottom:10px;
    padding: 15px;
    font-size: 15px;
  }

  .buttons{
    margin-top:10px;
  }

  .hide{
    display: none;
  }

  .show{
    display: block;
  }