/* ===============================
   FILEUP FRONTEND STYLE (TABELLARE)
   =============================== */

.fileup-table-wrapper {
  margin: 30px 0;
  overflow-x: auto;
}

.fileup-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  overflow: hidden;
}

.fileup-table thead {
  background: #f5f7fa;
}

.fileup-table th,
.fileup-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #e6e6e6;
}

.fileup-table th {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.fileup-table td {
  font-size: 14px;
  color: #444;
}

.fileup-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fileup-icon {
  font-size: 18px;
}

.fileup-btn {
  background: #0073aa;
  color: #fff;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  display: inline-block;
}

.fileup-btn:hover {
  background: #005f8d;
  transform: translateY(-1px);
}

.fileup-empty {
  background: #fafafa;
  border: 1px dashed #ccc;
  border-radius: 8px;
  text-align: center;
  padding: 25px;
  color: #555;
  font-size: 14px;
  margin: 20px 0;
}

/* Hover effects per righe */
.fileup-table tbody tr:hover {
  background: #f9fbfd;
}

/* Mobile responsiveness */
@media (max-width: 700px) {
  .fileup-table th,
  .fileup-table td {
    padding: 10px;
    font-size: 13px;
  }
  .fileup-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* Dark mode automatico */
@media (prefers-color-scheme: dark) {
  .fileup-table {
    background: #242526;
    border-color: #3a3b3c;
    box-shadow: none;
  }
  .fileup-table th {
    background: #303133;
    color: #e8e8e8;
  }
  .fileup-table td {
    color: #ddd;
    border-color: #3a3b3c;
  }
  .fileup-btn {
    background: #4e9ed6;
  }
  .fileup-btn:hover {
    background: #3586bd;
  }
  .fileup-empty {
    background: #2a2b2d;
    border-color: #444;
    color: #bbb;
  }
}
