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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* 🔒 LOCKED WIDTH */
.container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.logo {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;  /* horizontal centering */
  margin-top: 10px;
  margin-bottom: 30px;
}

.logo img {
  max-width: 200px;
  height: auto;
}

/* Search bar */
.search {
  width: 100%;
  display: flex;
  align-items: center;
  border: none;
  border-radius: 25px;
  padding: 6px 10px;
  margin-bottom: 30px;
  max-width: 400px;
  margin-bottom: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 8px;
  border-radius: 25px;
  font-size: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.search button,
.search label {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #333;
}

/* File list */
#dir_list {
  width: 100%;
}

#dir_list p {
  padding: 6px 4px;
}

#dir_list a {
  color: black;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin: 0 auto;
}

#dir_list a:hover {
  text-decoration: underline; 
}

#dir_list {
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  margin-top: 12px; /*small, consistent gap */
}

/* For devices with width 600px or less (phones) */
@media (max-width: 600px) {
  .search input {
    width: 90%;        /* almost full width on phones */
    max-width: 300px;  /* optional: limit max size */
  }
}

.logo img {
  max-width: 200px;
  height: 130px;
}
/* Deletar dessa parte para baixo!*/

.search {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    /*border: 1px solid #ccc;*/
    border-radius: 25px;
    padding: 5px 10px;
    margin-bottom: 0;

  }

  .search input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px;
    border-radius: 25px;
    font-size: 16px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

  }

  .search button, .search label {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-left: px;
    margin-right: 8px;
    color: #333;
  }

  .search button:hover, .search label:hover {
    color: #007BFF;
  }

  /* Hide actual file input */
  .file-input {
    display: none;
  }

p {
    font-size: 16px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial,;
    text-align: left;
    padding: 5px;
    max-width: 400px;
   
  }

  p a {
    color: #333;

  }

  /* Full-page overlay */
#uploadOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6); /* darken the page */
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999; /* on top of everything */
}

/* Centered box */
#uploadBox {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  min-width: 250px;
}

/* Progress bar */
#progressBar {
  width: 100%;
  height: 20px;
  border-radius: 10px;
  margin-top: 10px;
}


