/* DHL SEO Tools Frontend UI v22: contrast/accessibility and category sidebar.
   Local-only, frontend-only. Does not change AdminLTE, tool logic or theme scripts. */
html[data-dhl-ui="frontend"] {
  --dhl-v22-radius: 15px;
  --dhl-v22-focus: rgba(0, 122, 255, .24);
}
html[data-dhl-ui="frontend"] .main-container > .row {
  display: block;
}
html[data-dhl-ui="frontend"] .main-container > .row::after {
  content: "";
  display: table;
  clear: both;
}
html[data-dhl-ui="frontend"] #rightCol,
html[data-dhl-ui="frontend"] #seoTools,
html[data-dhl-ui="frontend"] .main-index {
  min-width: 0;
}
html[data-dhl-ui="frontend"] #rightCol .well {
  padding: 16px;
  overflow: visible;
}
html[data-dhl-ui="frontend"] .dhl-category-widget-v22 {
  display: block;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  color: var(--dhl-front-text);
}
html[data-dhl-ui="frontend"] .dhl-category-title-v22 {
  margin: 0 0 12px;
  color: var(--dhl-front-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}
html[data-dhl-ui="frontend"] .dhl-category-group-v22 {
  margin: 0 0 8px;
  border: 1px solid var(--dhl-front-border);
  border-radius: 11px;
  background: var(--dhl-front-panel);
  overflow: hidden;
}
html[data-dhl-ui="frontend"] .dhl-category-group-v22 > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  color: var(--dhl-front-text);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
html[data-dhl-ui="frontend"] .dhl-category-group-v22 > summary::-webkit-details-marker {
  display: none;
}
html[data-dhl-ui="frontend"] .dhl-category-group-v22 > summary::before {
  content: "▸";
  color: var(--dhl-front-primary);
  font-size: 12px;
  margin-right: 2px;
  transition: transform .15s ease;
}
html[data-dhl-ui="frontend"] .dhl-category-group-v22[open] > summary::before {
  transform: rotate(90deg);
}
html[data-dhl-ui="frontend"] .dhl-category-name-v22 {
  flex: 1;
  overflow-wrap: anywhere;
}
html[data-dhl-ui="frontend"] .dhl-category-count-v22 {
  flex: none;
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 7px;
  background: var(--dhl-front-bg);
  color: var(--dhl-front-muted);
  font-size: 11px;
  text-align: center;
}
html[data-dhl-ui="frontend"] .dhl-category-links-v22 {
  margin: 0;
  padding: 4px 8px 10px 15px;
  list-style: none;
}
html[data-dhl-ui="frontend"] .dhl-category-links-v22 li {
  margin: 0;
  padding: 0;
}
html[data-dhl-ui="frontend"] .dhl-category-links-v22 a {
  display: block;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--dhl-front-text);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: none;
}
html[data-dhl-ui="frontend"] .dhl-category-links-v22 a:hover,
html[data-dhl-ui="frontend"] .dhl-category-links-v22 a:focus-visible {
  color: var(--dhl-front-primary);
  background: var(--dhl-front-bg);
  outline-offset: 2px;
}
html[data-dhl-ui="frontend"] .dhl-category-empty-v22 {
  margin: 0;
  padding: 10px 12px;
  color: var(--dhl-front-muted);
  font-size: 12px;
}
html[data-dhl-ui="frontend"] #rightCol #sidebarSc {
  float: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
html[data-dhl-ui="frontend"] #rightCol .sideXd:empty {
  display: none;
}

/* Dark mode: all tool surfaces and article areas receive coordinated slate colors. */
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] {
  --dhl-front-bg: #151922;
  --dhl-front-panel: #222833;
  --dhl-front-text: #f2f4f8;
  --dhl-front-muted: #bcc7d8;
  --dhl-front-border: #3a4556;
  --dhl-front-primary: #8db9ff;
  --dhl-front-hover: #b0ceff;
  --dhl-front-shadow: 0 10px 32px rgba(2, 8, 18, .18);
  color-scheme: dark;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] body,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .main-container {
  background: var(--dhl-front-bg);
  color: var(--dhl-front-text);
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #seoTools,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .main-index,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .csContent,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .category_box,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .well,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .panel,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .panel-body,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .panel-heading,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .panel-footer,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .modal-content,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .modal-body,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .list-group-item {
  background-color: var(--dhl-front-panel) !important;
  color: var(--dhl-front-text) !important;
  border-color: var(--dhl-front-border) !important;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #seoTools,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .main-index {
  padding-top: 18px;
  padding-bottom: 18px;
  border: 1px solid var(--dhl-front-border);
  border-radius: var(--dhl-v22-radius);
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #seoTools :is(h1,h2,h3,h4,h5,h6,p,label,strong,small,legend),
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .main-index :is(h1,h2,h3,h4,h5,h6,p,label,strong,small,legend),
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .csContent :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,strong,small),
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #rightCol :is(h1,h2,h3,h4,h5,h6,p,label,strong,small) {
  color: var(--dhl-front-text) !important;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #seoTools :is(.text-muted,.help-block,.description,.small),
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .main-index :is(.text-muted,.help-block,.description,.small),
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .csContent :is(.text-muted,.help-block),
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #rightCol .text-muted {
  color: var(--dhl-front-muted) !important;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #seoTools a:not(.btn),
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .main-index a:not(.btn),
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .csContent a:not(.btn),
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #rightCol a:not(.btn) {
  color: var(--dhl-front-primary);
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #seoTools a:not(.btn):hover,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .main-index a:not(.btn):hover,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #rightCol a:not(.btn):hover {
  color: var(--dhl-front-hover);
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .category_box,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .thumbnail,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .romantic_free,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .content-box,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .tool-box,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .toolBox {
  background-color: #252e3b !important;
  color: var(--dhl-front-text) !important;
  border-color: var(--dhl-front-border) !important;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .thumbnail .caption,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .thumbnail .caption * {
  color: var(--dhl-front-text) !important;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] :is(input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),textarea,select,.form-control,.form-input) {
  background-color: #182230 !important;
  color: #f4f7ff !important;
  border-color: #526175 !important;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] :is(input,textarea)::placeholder {
  color: #b6c5d8 !important;
  opacity: 1;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] :is(input,textarea,select):focus-visible,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] a:focus-visible,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] summary:focus-visible {
  outline: 2px solid var(--dhl-front-primary);
  outline-offset: 2px;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .table,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] table:not(.cke_dialog) {
  color: var(--dhl-front-text);
  border-color: var(--dhl-front-border);
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .table > tbody > tr > td,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .table > tbody > tr > th,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .table > thead > tr > th,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .table > tbody > tr:nth-child(odd) > td {
  background-color: var(--dhl-front-panel) !important;
  color: var(--dhl-front-text) !important;
  border-color: var(--dhl-front-border);
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .table > tbody > tr:nth-child(even) > td {
  background-color: #283341 !important;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] :is(pre,code,blockquote) {
  color: #dde9fb;
  background: #1b2635;
  border-color: var(--dhl-front-border);
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] hr {
  border-top-color: var(--dhl-front-border);
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .footer,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .footer .b-widgets,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .footerCopyright {
  background-color: #1d2430 !important;
  color: var(--dhl-front-text) !important;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .footer :is(p,h3,li,small),
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .footer .footer-title {
  color: var(--dhl-front-text) !important;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .footer a {
  color: #b8d4ff;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .navbar.navbar-default {
  background-color: #202735 !important;
  border-color: var(--dhl-front-border) !important;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] .navbar-default .navbar-nav > li > a {
  color: var(--dhl-front-text) !important;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #rightCol .dhl-category-widget-v22,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #rightCol .dhl-category-title-v22,
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #rightCol .dhl-category-group-v22 > summary {
  color: var(--dhl-front-text) !important;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #rightCol .dhl-category-group-v22 > summary {
  background: #283341;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #rightCol .dhl-category-links-v22 a {
  color: #e3efff !important;
}
html[data-dhl-ui="frontend"][data-dhl-theme="dark"] #rightCol .dhl-category-links-v22 a:hover {
  background: #354358;
  color: #ffffff !important;
}
@media (max-width: 991px) {
  html[data-dhl-ui="frontend"] #rightCol { clear: both; }
}
@media (max-width: 767px) {
  html[data-dhl-ui="frontend"] #seoTools,
  html[data-dhl-ui="frontend"] .main-index { margin-bottom: 16px; }
  html[data-dhl-ui="frontend"] #rightCol .well { padding: 12px; }
  html[data-dhl-ui="frontend"] .dhl-category-group-v22 > summary { padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-dhl-ui="frontend"] .dhl-category-group-v22 > summary::before { transition: none; }
}
