:root {
    --primary-color: #007bff;
    --border-color: #6c757d;
    --hover-bg: #e3f2fd;
  }
  
  body {
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    padding: 1rem;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    display: flex;
    justify-content: center;
    align-items: center; 
    height: 100vh;
    
    
  }
  
  .container {
    width: 50vw;
    max-width: 400px;
    min-width: 200px;
    height: 60vh;
    max-height: 900px;
    min-height: 700px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; 
    overflow: hidden;

  }
  
  h1 {
    text-align: center;
    color: #343a40;
    margin-bottom: 2rem;
    font-size: 2rem;
  }
  
  .upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--border-color);
    transition: background 0.3s, border-color 0.3s;
    cursor: pointer;
    box-sizing: border-box;
  }
  
  .upload-area.dragover {
    background-color: var(--hover-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
  }
  
  input[type="file"] {
    display: none;
  }
  
  button {
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  button:hover {
    background-color: #0056b3;
  }
  
  .result {
    margin-top: 2rem;
    background: #f1f3f5;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    word-break: break-word;
  }
  
  #qrcode {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
  }
  
  .loading {
    margin-top: 1rem;
    color: #6c757d;
    font-style: italic;
  }
  
  /* Responsive */
  @media (max-width: 600px) {
    .container {
      padding: 1rem;
    }
    .upload-area {
      padding: 1.2rem;
      font-size: 0.95rem;
    }
    button {
      width: 100%;
    }
  }