:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #667085;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --danger: #dc2626;
  --border: #e4e7ec;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.login-body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  background: var(--card);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 340px;
}

.login-box h1 {
  margin: 0 0 1.5rem;
  font-size: 1.4rem;
  text-align: center;
}

label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

input[type="text"],
input[type="password"],
input[type="file"] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  margin-top: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  background: var(--primary);
  color: #fff;
  transition: background 0.15s;
}
button:hover { background: var(--primary-dark); }

.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b91c1c; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.topbar h1 { font-size: 1.15rem; margin: 0; }

.user-info { display: flex; align-items: center; gap: 1rem; font-size: 0.9rem; color: var(--muted); }

.btn-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}
.btn-link:hover { text-decoration: underline; }

.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.upload-box {
  background: var(--card);
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.upload-box form { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }

.hint { font-size: 0.8rem; color: var(--muted); margin: 0.6rem 0 0; }

.file-list {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
tr:last-child td { border-bottom: none; }

.actions { display: flex; gap: 0.8rem; align-items: center; }
.inline-form { display: inline; }

.empty { padding: 2rem; text-align: center; color: var(--muted); }

.notice {
  background: #ecfdf3;
  color: #067647;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
.error {
  background: #fef3f2;
  color: #b42318;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
