* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f5f7;
  color: #1a1a1a;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
}

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

.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  width: 100%;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

h1 { margin: 0 0 8px; font-size: 22px; }
h2 { margin: 0 0 16px; font-size: 16px; }
.subtitle { color: #666; margin-bottom: 20px; }

input[type="password"], input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 15px;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  background: #2563eb;
  color: #fff;
  width: 100%;
}

.btn-secondary {
  background: #6b7280;
  width: auto;
}

.btn-danger {
  background: #dc2626;
  width: auto;
  padding: 6px 12px;
  font-size: 13px;
}

.upload-form { display: flex; gap: 8px; flex-wrap: wrap; }
.upload-form button { width: auto; }

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.alert-error { background: #fee2e2; color: #991b1b; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #eee; }
.actions { display: flex; gap: 8px; align-items: center; }
.btn-link { color: #2563eb; text-decoration: none; font-weight: 500; }
.empty { color: #888; }
