:root {
  --bg: #0e1016;
  --card: #171a22;
  --border: #262b38;
  --text: #e8eaed;
  --muted: #9aa3b2;
}

body {
  background: radial-gradient(1200px 600px at 50% -10%, #1b2030 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
}

.site-logo {
  max-height: 200px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.page-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #7c5cff, #ff5ca8 45%, #21d4fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.upload-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.form-control,
.form-control:focus {
  background: #10131b;
  border-color: var(--border);
  color: var(--text);
}
.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(124, 92, 255, 0.25);
  border-color: #7c5cff;
}
.form-label { color: var(--muted); font-weight: 600; }

.view-files-link {
  position: absolute;
  top: 16px;
  right: 18px;
  text-decoration: none;
  font-weight: 600;
  color: #cdd4e0;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.4);
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.15s ease;
  z-index: 10;
}
.view-files-link:hover {
  background: rgba(124, 92, 255, 0.25);
  color: #fff;
}

/* Per-file rename rows */
.file-row {
  background: #10131b;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.file-row .orig-name {
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
}
.file-row .save-name-btn { white-space: nowrap; }
.file-row .name-saved {
  color: #35d07f;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Upload button */
.btn-upload {
  border: none;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, #7c5cff, #ff5ca8 55%, #21d4fd);
  background-size: 200% 100%;
  transition: background-position 0.4s ease, transform 0.05s ease;
}
.btn-upload:hover { background-position: 100% 0; color: #fff; }
.btn-upload:active { transform: translateY(1px); }
.btn-upload:disabled { opacity: 0.5; }

/* Gradient animated progress bar */
.upload-progress {
  height: 22px;
  background: #10131b;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.upload-progress .progress-bar {
  background: linear-gradient(90deg, #7c5cff, #ff5ca8, #21d4fd, #7c5cff);
  background-size: 300% 100%;
  animation: slideGradient 2s linear infinite;
  transition: width 0.2s ease;
  border-radius: 999px;
}
@keyframes slideGradient {
  0% { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

/* Result links */
.result-file {
  background: #10131b;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.result-file a { color: #8ab4ff; word-break: break-all; }
.copy-btn { white-space: nowrap; }
