/* HMC-branded overrides for Django admin */
:root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
#container {
  background-color: var(--hmc-brand-bg);
  color: var(--hmc-brand-text);
}

#header {
  background: var(--hmc-brand-primary);
  color: #fff;
  border-bottom: none;
}

#header a:link,
#header a:visited,
#header a:hover {
  color: #fff;
}

#branding h1,
#branding #site-name {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.module h2,
.inline-group h2 {
  background: var(--hmc-brand-primary);
  color: #fff;
  border-radius: 10px 10px 0 0;
  padding: 0.6rem 0.9rem;
}

.module,
.inline-group {
  border: 1px solid var(--hmc-brand-border);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(9, 30, 66, 0.08);
  background-color: #fff;
  overflow: hidden;
}

.button,
input[type="submit"],
input[type="button"],
.submit-row input.default {
  background: var(--hmc-brand-primary);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.submit-row input.default:hover {
  background: var(--hmc-brand-primary-hover);
}

.submit-row {
  border-top: 1px solid var(--hmc-brand-border);
  background: #fff;
  padding: 1.2rem;
  border-radius: 0 0 10px 10px;
}

fieldset.module {
  border-color: var(--hmc-brand-border);
  border-radius: 10px;
}

fieldset.module h2 {
  border-radius: 10px 10px 0 0;
}

select,
input,
textarea {
  border-radius: 8px;
  border: 1px solid var(--hmc-brand-border);
  padding: 0.45rem 0.6rem;
}

.dashboard #content-main .module ul li a {
  color: var(--hmc-brand-primary);
  font-weight: 500;
}

.dashboard #content-main .module ul li a:hover {
  color: var(--hmc-brand-accent);
}

#changelist-filter,
#content-related {
  background: #fff;
  border: 1px solid var(--hmc-brand-border);
  border-radius: 10px;
  padding: 1rem;
}

#changelist table thead th,
#changelist-form table thead th {
  background: var(--hmc-brand-primary);
  color: #fff;
}

#changelist .row1,
#changelist .row2 {
  background-color: #fff;
}

#changelist .row1:hover,
#changelist .row2:hover {
  background-color: rgba(47, 71, 56, 0.05);
}

div.breadcrumbs {
  background: var(--hmc-brand-bg);
  border-bottom: 1px solid var(--hmc-brand-border);
  color: var(--hmc-brand-text);
}

div.breadcrumbs a {
  color: var(--hmc-brand-primary);
}

.hmc-admin-nav-link {
  margin-left: 1rem;
  color: var(--hmc-brand-accent);
  font-weight: 600;
  text-decoration: none;
}

.hmc-admin-nav-link:hover {
  color: var(--hmc-brand-accent-hover);
}
