@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
}

body {
  display: flex;
  align-items: center;
  padding: 15px;
  justify-content: center;
  min-height: 100vh;
  /* Slightly lighter than pure black — subtle dark charcoal */
  background: #141414;
  /* Very subtle texture using a radial highlight so it's not flat */
  background-image: radial-gradient(ellipse at 50% 0%, #1f1f1f 0%, #141414 70%);
}

/* ── Page wrapper (centers card + footer) ── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 500px;
}

/* ── Card ── */
.file-uploader {
  width: 100%;
  background: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.05);
}

/* ── Header ── */
.file-uploader .uploader-header {
  display: flex;
  padding: 18px 20px;
  background: #89C62B;
  align-items: center;
  border-radius: 10px 10px 0 0;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon {
  font-size: 1.3rem;
  color: #fff;
}

.uploader-header .uploader-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.uploader-header .file-completed-status {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* ── File list ── */
.file-uploader .file-list {
  list-style: none;
  width: 100%;
  padding-bottom: 10px;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-color: #444 transparent;
  scrollbar-width: thin;
}

.file-uploader .file-list:has(li) {
  padding: 20px;
}

.file-list .file-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.file-list .file-item:last-child {
  margin-bottom: 0;
}

.file-list .file-item .file-extension {
  height: 50px;
  width: 50px;
  min-width: 50px;
  color: #fff;
  display: flex;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #89C62B;
  letter-spacing: 0.5px;
}

.file-list .file-item .file-content-wrapper {
  flex: 1;
  min-width: 0;
}

.file-list .file-item .file-content {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
}

.file-list .file-item .file-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e8e8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.file-list .file-item .file-info {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.file-list .file-item .file-info small {
  color: #888;
  margin-top: 4px;
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
}

.file-list .file-item .file-info .file-status {
  color: #2fa6da;
}

.file-list .file-item .cancel-button {
  align-self: center;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: #888;
  padding: 0 4px;
  flex-shrink: 0;
}

.file-list .file-item .cancel-button:hover {
  color: #E3413F;
}

.file-list .file-item .file-progress-bar {
  width: 100%;
  height: 3px;
  margin-top: 10px;
  border-radius: 30px;
  background: #333;
}

.file-list .file-item .file-progress-bar .file-progress {
  width: 0%;
  height: inherit;
  border-radius: inherit;
  background: #89C62B;
  transition: width 0.2s ease;
}

/* ── Upload drop box ── */
.file-uploader .file-upload-box {
  margin: 14px 20px 16px;
  border-radius: 8px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #3a3a3a;
  transition: all 0.2s ease;
  cursor: pointer;
}

.file-uploader .file-upload-box:hover {
  border-color: #89C62B;
  background: rgba(137, 198, 43, 0.04);
}

.file-uploader .file-upload-box.active {
  border: 2px solid #2fa6da;
  background: rgba(47, 166, 218, 0.06);
}

.file-uploader .file-upload-box {
  margin: 14px 20px 16px;
  border-radius: 8px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #3a3a3a;
  transition: all 0.2s ease;
  cursor: pointer; /* ← add this */
}

.upload-inner {
  text-align: center;
  pointer-events: none;
}

.upload-cloud-icon {
  font-size: 2rem;
  color: #89C62B;
  margin-bottom: 6px;
  display: block;
}

.file-uploader .file-upload-box .box-title {
  font-size: 1rem;
  font-weight: 500;
  color: #aaa;
}

.file-uploader .file-upload-box.active .box-title {
  pointer-events: none;
}

.upload-hint {
  font-size: 0.75rem;
  color: #555;
  margin-top: 5px;
}

.file-upload-box .box-title .file-browse-button {
  color: #2fa6da;
  cursor: pointer;
  pointer-events: all;
}

.file-upload-box .box-title .file-browse-button:hover {
  text-decoration: underline;
}

/* ── Nav buttons ── */
.wrapper {
  padding: 0 20px 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button {
  appearance: none;
  background-color: #2a2a2a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  color: #ccc;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  text-align: center;
  text-decoration: none;
  user-select: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.button:hover {
  background-color: #89C62B;
  border-color: #89C62B;
  color: #fff;
}

.button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(137, 198, 43, 0.3);
}

.button:active {
  background-color: #76ad25;
}

.button i {
  font-size: 12px;
}

/* ── Footer ── */
.site-footer {
  font-size: 0.78rem;
  color: #444;
  text-align: center;
  padding-bottom: 6px;
}

.site-footer a {
  color: #89C62B;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
