/* Resetando estilos padrão */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
  }
  
  .container {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
  }
  
  h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
  }
  
  label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
  }
  
  input[type="text"],
  input[type="file"],
  select,
  button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
  }
  
  input[type="text"]:focus,
  input[type="file"]:focus,
  select:focus,
  button:focus {
    outline: none;
    border-color: #6c63ff;
  }
  
  button {
    background-color: #6c63ff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  button:hover {
    background-color: #5a52e0;
  }
  
  button:active {
    background-color: #4b44c9;
  }
  
  #progressBar {
    display: none;
    margin-top: 20px;
  }
  
  progress {
    width: 100%;
    height: 10px;
    border-radius: 5px;
  }
  
  #textResult {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    color: #333;
    font-family: 'Courier New', Courier, monospace;
  }
  
  #errorMessage {
    color: red;
    margin-top: 15px;
    font-weight: bold;
  }
  
  #imagePreview {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 400px;
    overflow: hidden;
  }
  
  #imagePreview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
  }
  
  /* Responsividade para dispositivos móveis */
  @media (max-width: 768px) {
    .container {
      padding: 15px;
    }
  
    h1 {
      font-size: 1.8rem;
    }
  
    input[type="text"],
    input[type="file"],
    select,
    button {
      padding: 10px;
      font-size: 0.9rem;
    }
  
    #textResult {
      font-size: 0.9rem;
    }
  }
  