body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f7;
  color: #111;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ddd;
}

.logo {
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.username {
  font-size: 14px;
  opacity: 0.8;
}

.nav-link,
.btn-link {
  border: none;
  background: none;
  cursor: pointer;
  color: #0070c9;
  text-decoration: none;
  font-size: 14px;
}

.nav-link:hover,
.btn-link:hover {
  text-decoration: underline;
}

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

.login-page,
.search-page,
.admin-users,
.admin-upload {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.login-form,
.user-form,
.upload-form,
.search-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.btn-primary,
.btn-secondary,
.btn-danger,
button {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary {
  background: #0070c9;
  color: white;
}

.btn-secondary {
  background: #e5e5ea;
}

.btn-danger {
  background: #ff3b30;
  color: white;
}

.btn-primary:hover {
  background: #005fa3;
}

.flash {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.flash-error {
  background: #ffecec;
  color: #c0392b;
}

.flash-success {
  background: #e8fbe8;
  color: #1e7e34;
}

.footer-warning {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  background: #fff3cd;
  border-top: 1px solid #ffeeba;
  z-index: 999;
}

.search-box-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.search-form {
  flex-direction: row;
  gap: 8px;
  width: 100%;
  max-width: 480px;
}

.search-form input[type="text"] {
  flex: 1;
}

.results {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.model-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f9f9fb;
}

.cover-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 13px;
}

.user-table th,
.user-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #eee;
}

.inline-form {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
