/* Basic, clean styling for the UI */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #4f46e5;
  --accent-2: #3b82f6;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Arial, sans-serif; background: var(--bg); color: var(--text); height: 100%; }
.container { max-width: 720px; margin: 40px auto; padding: 16px; }

.upload-area {
  border: 2px dashed #cbd5e1; border-radius: 12px; padding: 28px; text-align: center; background: #fff;
}
.upload-area .btn { margin-top: 12px; }

.file-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.file-list li {
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.file-list li:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.file-info img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.file-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.file-name {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  margin-bottom: 4px;
}

.file-size {
  font-size: 0.85rem;
  color: #666;
}

.button {
  padding: 8px 16px;
  background-color: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 8px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #4338ca;
}

.toolbar { display: flex; gap: 12px; margin-top: 14px; }
.btn { padding: 10px 14px; border: none; border-radius: 6px; cursor: pointer; background: #e5e7eb; color: #111; }
.btn.primary { background: var(--accent); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.status { padding: 8px 12px; border-radius: 6px; margin-top: 8px; background: #f1f5f9; color: #374151; }

.privacy-note { font-size: 0.9em; color: var(--muted); margin-top: 18px; }

@media (max-width: 600px) {
  .file-list li {
    padding: 6px 10px;
    gap: 6px;
  }
  .file-list img {
    width: 50px; {
  .file-list { grid-template-columns: 1fr 1fr; }
}
