* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1 {
  text-align: center;
}

form {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 600px;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

input[type="file"] {
  display: block;
  margin-bottom: 20px;
}

button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #0056b3;
}

table {
  border-collapse: collapse;
  margin: auto;
  margin-top: 20px;
  margin-bottom: 20px;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  max-width: 100%;
}

table,
th,
td {
  border: 1px solid #ddd;
}

th,
td {
  padding: 12px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #f1f1f1;
}

select {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

/* Oculta o input original */
input[type="file"] {
  display: none;
}

/* Container personalizado para o input file */
.file-upload-wrapper {
  position: relative;
  display: inline-block;
  width: 250px;
  height: 50px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  transition: border-color 0.3s;
  cursor: pointer;
  margin-bottom: 20px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Estilo do botão de upload */
.file-upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #666;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s, background-color 0.3s;
}

/* Estilo para hover e foco */
.file-upload-wrapper:hover,
.file-upload-wrapper:focus-within {
  border-color: #0066cc;
}

.file-upload-wrapper:hover .file-upload-button,
.file-upload-wrapper:focus-within .file-upload-button {
  color: #0066cc;
}

/* Mostra o nome do arquivo selecionado */
.file-upload-wrapper.has-file .file-upload-button::after {
  content: attr(data-file-name);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
  padding: 0 10px;
  color: #000;
}
