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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 480px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.subtitle {
  font-size: .9rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Drop zone */
#drop-zone {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}

#drop-zone.drag-over {
  border-color: #4a90e2;
  background: #f0f6ff;
}

#drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-icon {
  font-size: 2.5rem;
  margin-bottom: .75rem;
  display: block;
  color: #aaa;
}

.drop-label {
  font-size: .95rem;
  color: #555;
}

.drop-label span {
  color: #4a90e2;
  font-weight: 600;
  text-decoration: underline;
}

.drop-hint {
  font-size: .78rem;
  color: #aaa;
  margin-top: .4rem;
}

/* File info */
#file-info {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  font-size: .875rem;
}

#file-info .file-name {
  font-weight: 600;
  word-break: break-all;
}

#file-info .file-size {
  color: #888;
  margin-top: .2rem;
}

/* Buttons */
#clean-btn {
  display: none;
  width: 100%;
  margin-top: 1.25rem;
  padding: .85rem;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

#clean-btn:hover:not(:disabled) { background: #444; }
#clean-btn:disabled { background: #aaa; cursor: not-allowed; }

/* Status messages */
#status {
  margin-top: 1.1rem;
  font-size: .875rem;
  min-height: 1.25rem;
  text-align: center;
}

#status.success { color: #2d8a4e; }
#status.error   { color: #c0392b; }
#status.loading { color: #4a90e2; }

/* Spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #4a90e2;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

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

footer {
  margin-top: 2rem;
  font-size: .78rem;
  color: #bbb;
  text-align: center;
}
