* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #111827;
  color: #e5e7eb;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  background: #0f172a;
  border-bottom: 1px solid #243044;
}

.topbar h1,
.login-card h1 {
  margin: 0 0 6px 0;
}

.topbar p,
.login-card p {
  margin: 0;
  color: #9ca3af;
}

.container {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 16px;
}

.card {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

.card h2 {
  margin-top: 0;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 14px;
  padding: 28px;
}

label {
  display: block;
  margin: 18px 0;
  color: #d1d5db;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #4b5563;
  background: #111827;
  color: #f9fafb;
  outline: none;
}

button,
a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}

button:hover,
a:hover {
  filter: brightness(1.08);
}

button.secondary {
  background: #374151;
}

button.danger {
  background: #b91c1c;
}

.alert {
  margin: 18px 0;
  padding: 12px 14px;
  background: #7f1d1d;
  border: 1px solid #b91c1c;
  border-radius: 10px;
}

.file-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 2px dashed #4b5563;
  border-radius: 14px;
  background: #111827;
  cursor: pointer;
  margin-bottom: 12px;
}

.file-box input {
  display: none;
}

.file-box span {
  color: #d1d5db;
  font-weight: 700;
}

.file-name {
  color: #9ca3af;
  margin-bottom: 16px;
}

.progress-wrap {
  width: 100%;
  height: 18px;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: #22c55e;
  transition: width 0.15s linear;
}

.progress-text {
  margin: 10px 0 18px;
  color: #d1d5db;
}

.message {
  margin-top: 16px;
  color: #d1d5db;
}

.upload-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 14px;
}

.upload-item strong {
  display: block;
  margin-bottom: 6px;
  word-break: break-word;
}

.upload-item span {
  color: #9ca3af;
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.actions form {
  margin: 0;
}

.empty {
  color: #9ca3af;
}

@media (max-width: 700px) {
  .topbar,
  .upload-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions {
    width: 100%;
    flex-wrap: wrap;
  }
}