body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  background: #131418;
  color: #babdc4;
  font-family: monospace;
}

pre {
  font-size: 1.5rem;
  margin: 0;
}

p {
  margin: 1rem;
}

footer {
  position: fixed;
  bottom: 1rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

#files {
  display: grid;
  grid-template-columns: repeat(auto-fit, 100px);
  grid-template-rows: repeat(2, 100px);
  gap: 1rem;
  width: 90%;
  max-width: 500px;
  justify-content: center;
}

.card {
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #1e1f26;
  border-radius: 8px;
  box-sizing: border-box;
}

.card a, .card label {
  color: #babdc4;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
}

.card a:hover, .card label:hover {
  opacity: 0.7;
}

.card svg {
  width: 48px;
  height: 48px;
}

.card span {
  font-size: 0.75rem;
  word-break: break-word;
  text-align: center;
}

.card.file span {
  word-break: break-all;
}

.card .success {
  color: #4ade80;
}

.card .error {
  color: #f87171;
}

input[type="file"] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}

.file {
  animation: fadeIn 0.3s ease-in;
  padding: 0.5rem;
  text-align: center;
}
