.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 3px dashed #0F2BC9; 
  border-radius: 12px;
  margin: 2rem auto;
  text-align: center;
  max-width: 850px;
  width: 100%;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  background-color: #eef2ff;
}

.upload-icon {
  font-size: 4rem;
  color: #0F2BC9;
  margin-bottom: 1rem;
}

.upload-area .upload-text {
  font-size: 1.5rem;
  font-weight: 500;
  font-family: "Roboto Slab", serif;
  color: #0F2BC9;
  margin-bottom: 0.5rem;
}

.upload-area .upload-info {
  font-size: 0.9rem;
  font-family: "Roboto Slab", serif;
  color: #555;
  margin-bottom: 1rem;
}

.files-table-container,
.compressed-table-container {
  max-width: 800px;
  width: 100%;
  margin: 1.5rem auto;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Roboto Slab", serif;
}

th, td {
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  text-align: center;
}

th {
  background-color: #0F2BC9;
  color: #fff;
}

td {
  color: #333;
}

button.download-btn {
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  background: linear-gradient(135deg, #0F2BC9 0%, #667eea 100%);
  color: #fff;
  font-family: "Roboto Slab", serif;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button.download-btn:hover {
  transform: translateY(1px);
}

#download-all {
  display: block;
  margin: 1rem auto 0 auto; 
  padding: 1rem 1.5rem;
  font-size: 1rem;
  background: linear-gradient(135deg, #0F2BC9 0%, #667eea 100%);
  color: #fff;
  font-family: "Roboto Slab", serif;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.5s ease;
}

#download-all:hover {
  transform: translateY(1px);
}


/***** Media Query *****/
/***** Standard tablets & landscape phones (≤768px) ******/
@media (max-width: 768px) {
 .upload-area {
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 650px;
  width: 100%;
}

.upload-icon {
  font-size: 3.5rem;
}

.upload-area .upload-text {
  font-size: 1.3rem;
}
}

/***** Large smartphones & phablets (≤617px) ******/
@media (max-width: 617px) {
 .upload-area {
  padding: 1.3rem;
  margin: 2rem auto;
  max-width: 550px;
  width: 100%;
}

.upload-icon {
  font-size: 3rem;
}

.upload-area .upload-text {
  font-size: 1.3rem;
}

th, td {
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
}

#download-all {
  margin: 1rem auto 0 auto; 
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
}
}

/***** Small smartphones (≤450px) ******/
@media (max-width: 450px) {
 .upload-area {
  padding: 1rem;
  margin: 2rem auto;
  max-width: 450px;
  width: 100%;
}

.upload-icon {
  font-size: 2.5rem;
}

.upload-area .upload-text {
  font-size: 1rem;
}

.upload-area .upload-info {
  font-size: 0.8rem;
}

th, td {
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
}

#download-all {
  margin: 1rem auto 0 auto; 
  padding: 0.8rem 1.5rem;
  font-size: 0.8rem;
}

.compressed-table-container table,
  .compressed-table-container thead,
  .compressed-table-container tbody,
  .compressed-table-container th,
  .compressed-table-container td,
  .compressed-table-container tr {
    display: block;
    width: 100%;
  }

  .compressed-table-container thead {
    display: none;
  }

  .compressed-table-container tr {
    margin-bottom: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding: 0.5rem;
    background: #f9f9f9;
  }

.compressed-table-container td {
  display: flex;
  flex-direction: column;
  align-items: stretch;   
  text-align: center;
  padding: 0.5rem 0;
  border: none;
}

.compressed-table-container td:last-child {
  border-bottom: none;
}

.compressed-table-container td::before {
  content: attr(data-label);
  display: block;
  width: 100%;            
  font-weight: 600;
  color: #fff;
  background-color: #0F2BC9;
  padding: 0.5rem;         
  margin-bottom: 0.3rem;
  box-sizing: border-box;
}

}

/***** Extra small phones & older devices (≤365px) ******/
@media (max-width: 365px) {
 .upload-area {
  padding: 0.8rem;
  margin: 0.7rem auto;
  max-width: 320px;
  width: 100%;
}

.upload-icon {
  font-size: 1.8rem;
}

.upload-area .upload-text {
  font-size: 0.8rem;
}

.upload-area .upload-info {
  font-size: 0.6rem;
}

th, td {
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
}

#download-all {
  margin: 1rem auto 0 auto; 
  padding: 0.8rem 1.5rem;
  font-size: 0.8rem;
}

.compressed-table-container table,
  .compressed-table-container thead,
  .compressed-table-container tbody,
  .compressed-table-container th,
  .compressed-table-container td,
  .compressed-table-container tr {
    display: block;
    width: 100%;
  }

  .compressed-table-container thead {
    display: none;
  }

  .compressed-table-container tr {
    margin-bottom: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding: 0.5rem;
    background: #f9f9f9;
  }

.compressed-table-container td {
  display: flex;
  flex-direction: column;
  align-items: stretch;   
  text-align: center;
  padding: 0.5rem 0;
  border: none;
}

.compressed-table-container td:last-child {
  border-bottom: none;
}

.compressed-table-container td::before {
  content: attr(data-label);
  display: block;
  width: 100%;            
  font-weight: 600;
  color: #fff;
  background-color: #0F2BC9;
  padding: 0.5rem;         
  margin-bottom: 0.3rem;
  box-sizing: border-box;
}
}

