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

body {
  font-family: system-ui, sans-serif;
  background: #0f0f0f;
  color: #e0e0e0;
  min-height: 100vh;
}

nav {
  background: #1a1a1a;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid #333;
}
.nav-brand { font-weight: 700; color: #ff3c3c; margin-right: auto; }
.nav-user { color: #888; font-size: 0.9rem; }
nav a { color: #ccc; text-decoration: none; }
nav a:hover { color: #fff; }

main { max-width: 960px; margin: 2rem auto; padding: 0 1rem; }

.card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

h1 { font-size: 1.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.1rem; margin: 1.25rem 0 0.75rem; color: #bbb; }

form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 400px; }
label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: #aaa;
}
label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  color: #e0e0e0;
}

input[type="text"],
input[type="password"],
input[type="file"] {
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  color: #e0e0e0;
  padding: 0.5rem 0.6rem;
  font-size: 1rem;
  width: 100%;
}
input[type="file"] { padding: 0.4rem; }

button[type="submit"] {
  background: #ff3c3c;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  width: fit-content;
  margin-top: 0.25rem;
}
button[type="submit"]:hover { background: #cc2a2a; }
button[type="submit"]:disabled { background: #444; cursor: default; color: #888; }

.btn-danger {
  background: transparent;
  color: #ff6666;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
}
.btn-danger:hover { background: #ff3c3c; color: #fff; border-color: #ff3c3c; }

.error { color: #ff6666; margin: 0.5rem 0; font-size: 0.95rem; }

p { line-height: 1.6; color: #aaa; margin-bottom: 0.75rem; }
p strong { color: #e0e0e0; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 0.5rem; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #222; }
th { color: #666; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
tr:last-child td { border-bottom: none; }

.upload-status { margin-top: 1.25rem; }
progress {
  width: 100%;
  height: 6px;
  margin-bottom: 0.5rem;
  border-radius: 3px;
  overflow: hidden;
  appearance: none;
  background: #333;
}
progress::-webkit-progress-bar { background: #333; border-radius: 3px; }
progress::-webkit-progress-value { background: #ff3c3c; border-radius: 3px; }
progress::-moz-progress-bar { background: #ff3c3c; border-radius: 3px; }
#progress-text { color: #888; font-size: 0.9rem; }

.status-done         { color: #4caf50; }
.status-transferring { color: #2196f3; }
.status-validating   { color: #ff9800; }
.status-error        { color: #f44336; }
.status-uploading    { color: #9e9e9e; }
