/* Tulsi brand tokens — override Django admin CSS variables used by fieldsets, buttons, links */
html[data-theme='light'],
:root {
  --primary: #126e51;
  --secondary: #126e51;
  --header-bg: #126e51;
  --breadcrumbs-bg: #00543c;
  --button-bg: #00543c;
  --button-hover-bg: #063f2e;
  --default-button-bg: #126e51;
  --default-button-hover-bg: #00543c;
  --link-fg: #00543c;
  --link-hover-color: #063f2e;
  --link-selected-fg: #126e51;
}

html[data-theme='dark'] {
  --primary: #126e51;
  --secondary: #126e51;
  --header-bg: #126e51;
  --breadcrumbs-bg: #063f2e;
  --button-bg: #00543c;
  --button-hover-bg: #063f2e;
  --default-button-bg: #126e51;
  --default-button-hover-bg: #00543c;
  --link-fg: #85d7b3;
  --link-hover-color: #a1f3ce;
  --link-selected-fg: #126e51;
}

#header {
  background: #00543c;
  color: #ffffff;
}

#branding #site-name a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

#branding #site-name a:hover .tulsi-admin-title,
#branding #site-name a:hover .tulsi-admin-subtitle {
  color: #a1f3ce;
}

.tulsi-admin-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.tulsi-admin-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
}

.tulsi-admin-subtitle {
  color: #85d7b3;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
}

#user-tools {
  color: #d7f5e8;
}

#user-tools a {
  color: #ffffff;
}

#user-tools a:focus,
#user-tools a:hover {
  color: #a1f3ce;
}

div.breadcrumbs {
  background: #126e51;
  color: #e8f7ef;
}

div.breadcrumbs a {
  color: #ffffff;
}

div.breadcrumbs a:focus,
div.breadcrumbs a:hover {
  color: #a1f3ce;
}

.module h2,
.module caption,
.inline-group h2,
fieldset .fieldset-heading,
fieldset .inline-heading,
:not(.inline-related) .collapse summary {
  background: #126e51;
  border-color: #126e51;
  color: #ffffff;
}

.button,
input[type='submit'],
input[type='button'],
.submit-row input,
a.button {
  background: #00543c;
}

.button:active,
input[type='submit']:active,
input[type='button']:active,
.button:focus,
input[type='submit']:focus,
input[type='button']:focus,
.button:hover,
input[type='submit']:hover,
input[type='button']:hover {
  background: #063f2e;
}

.button.default,
input[type='submit'].default,
.submit-row input.default {
  background: #126e51;
}

.button.default:active,
input[type='submit'].default:active,
.button.default:focus,
input[type='submit'].default:focus,
.button.default:hover,
input[type='submit'].default:hover {
  background: #00543c;
}

#changelist-filter h2 {
  background: #126e51;
}

@media (max-width: 767px) {
  .tulsi-admin-subtitle {
    display: none;
  }
}
