/* backend theme matching the public home pages */
body.backend-theme {
  background: linear-gradient(135deg, #2D1B69 0%, #11182C 100%) !important;
  color: #e2e8f0;
  font-family: "Hanken Grotesk", "Source Sans Pro", Arial, sans-serif;
  line-height: 1.25;
}

body.backend-theme #page-container {
  background: transparent !important;
}

body.backend-theme #main-container {
  background: transparent !important;
  color: #e2e8f0;
  margin-top: 5.25rem !important;
  padding: 1.25rem 1.5rem 2rem !important;
}

body.backend-theme #main-container > * {
  max-width: 1440px;
}

body.backend-theme #main-container p {
  color: #d7def0;
  max-width: none;
  padding-left: 0;
}

body.backend-theme h1,
body.backend-theme h2,
body.backend-theme h3,
body.backend-theme h4 {
  color: #ffffff;
  font-family: "Hanken Grotesk", "Source Sans Pro", Arial, sans-serif;
  font-weight: 750;
  letter-spacing: 0;
}

body.backend-theme h1 {
  background: linear-gradient(90deg, #7D76FE 0%, #9BE6FE 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 3rem;
  line-height: 1;
  margin: 0 0 1.25rem;
}

body.backend-theme h2 {
  font-size: 2rem;
  margin: 1.25rem 0 .75rem;
}

body.backend-theme a {
  color: #9BE6FE;
}

body.backend-theme a:hover,
body.backend-theme a:focus {
  color: #ffffff;
}

body.backend-theme #sidebar {
  background: #191330 !important;
  border-right: 1px solid rgba(155, 230, 254, .18);
  box-shadow: 0 0 32px rgba(17, 24, 44, .7);
}

body.backend-theme #sidebar-scroll,
body.backend-theme #sidebar .sidebar-content {
  background: transparent !important;
}

body.backend-theme #sidebar .side-header {
  background: linear-gradient(90deg, #2F2555 0%, #16112B 100%) !important;
  border-bottom: 1px solid rgba(155, 230, 254, .18);
}

body.backend-theme #sidebar .nav-main > li {
  color: #94a3b8;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin: .25rem 0;
  text-transform: uppercase;
}

body.backend-theme #sidebar .nav-main a {
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  color: rgba(226, 232, 240, .88) !important;
  font-weight: 650;
  margin: .15rem .75rem .15rem 0;
  padding: .75rem .9rem;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

body.backend-theme #sidebar .nav-main a:hover,
body.backend-theme #sidebar .nav-main a.active:hover {
  background: rgba(125, 118, 254, .18) !important;
  border-left-color: #9BE6FE;
  color: #ffffff !important;
}

body.backend-theme #sidebar .nav-main i {
  color: #9BE6FE;
}

body.backend-theme #header-navbar {
  background: rgba(25, 19, 48, .92) !important;
  border-bottom: 1px solid rgba(155, 230, 254, .18);
  box-shadow: 0 10px 28px rgba(17, 24, 44, .38);
}

body.backend-theme #page-footer {
  background: #191330 !important;
  border-top: 1px solid rgba(155, 230, 254, .18);
  color: #94a3b8;
}

body.backend-theme .block,
body.backend-theme .blogpost-summary,
body.backend-theme .blogpost-body,
body.backend-theme .citizen-detail-card,
body.backend-theme .form-container,
body.backend-theme .onboarding-table-wrap,
body.backend-theme div[style*="border:1px solid #ddd"] {
  background: rgba(25, 19, 48, .72) !important;
  border: 1px solid rgba(155, 230, 254, .18) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 44px rgba(17, 24, 44, .24);
  color: #e2e8f0;
}

body.backend-theme .block,
body.backend-theme .citizen-detail-card,
body.backend-theme .form-container,
body.backend-theme .onboarding-table-wrap {
  padding: 1rem;
}

body.backend-theme table {
  background: rgba(25, 19, 48, .58);
  border: 1px solid rgba(155, 230, 254, .16);
  border-collapse: collapse;
  color: #e2e8f0;
  width: 100%;
}

body.backend-theme .table > thead > tr > th,
body.backend-theme table th {
  background: rgba(125, 118, 254, .22) !important;
  border-color: rgba(155, 230, 254, .18) !important;
  color: #ffffff;
  font-weight: 750;
}

body.backend-theme .table > tbody > tr > td,
body.backend-theme table td {
  background: rgba(22, 17, 43, .58) !important;
  border-color: rgba(155, 230, 254, .12) !important;
  color: #e2e8f0;
}

body.backend-theme .table-striped > tbody > tr:nth-of-type(odd) > td,
body.backend-theme table tr:nth-child(odd) td {
  background: rgba(54, 26, 167, 0.64) !important;
}

body.backend-theme .table-hover > tbody > tr:hover > td,
body.backend-theme table tr:hover td {
  background: rgba(40, 113, 150, 0.14) !important;
}

body.backend-theme table.dataTable tbody td.sorting_1,
body.backend-theme table.dataTable tbody td.sorting_2,
body.backend-theme table.dataTable tbody td.sorting_3 {
  color: #e2e8f0 !important;
}

body.backend-theme .pill.signal {
  border: 1px solid rgba(248, 250, 252, .26);
  color: #f8fafc !important;
  display: inline-block;
}

body.backend-theme .pill.signal-Buy,
body.backend-theme .pill.signal-1 {
  background: rgba(34, 197, 94, .22);
  border-color: rgba(74, 222, 128, .42);
}

body.backend-theme .pill.signal-Hold,
body.backend-theme .pill.signal-0,
body.backend-theme .pill.signal-default {
  background: rgba(148, 163, 184, .18);
  border-color: rgba(203, 213, 225, .35);
}

body.backend-theme .pill.signal-Sell,
body.backend-theme .pill.signal-2 {
  background: rgba(239, 68, 68, .24);
  border-color: rgba(248, 113, 113, .46);
}

body.backend-theme .pill.signal-Wait,
body.backend-theme .pill.signal-3 {
  background: rgba(80, 177, 227, .2);
  border-color: rgba(155, 230, 254, .42);
}

body.backend-theme .pill.signal-Stop,
body.backend-theme .pill.signal-5 {
  background: rgba(245, 158, 11, .24);
  border-color: rgba(251, 191, 36, .46);
}

body.backend-theme .pill.signal-no {
  background: rgba(148, 163, 184, .14);
  border-color: rgba(203, 213, 225, .28);
}

body.backend-theme #legendtable td:first-child,
body.backend-theme #legendtable td:first-child .pill,
body.backend-theme #legendtable td:first-child .fa {
  color: #f8fafc !important;
}

body.backend-theme #legendtable td:first-child .fa-green {
  color: #86efac !important;
}

body.backend-theme #legendtable td:first-child .fa-red {
  color: #fca5a5 !important;
}

body.backend-theme #legendtable .pill.signal {
  color: #f8fafc !important;
}

body.backend-theme input,
body.backend-theme select,
body.backend-theme textarea,
body.backend-theme trix-editor {
  background: rgba(17, 24, 44, .92) !important;
  border: 1px solid rgba(155, 230, 254, .28) !important;
  border-radius: 6px !important;
  color: #ffffff !important;
}

body.backend-theme input::placeholder,
body.backend-theme textarea::placeholder {
  color: #94a3b8;
}

body.backend-theme label,
body.backend-theme .field,
body.backend-theme .form-group {
  color: #e2e8f0;
}

body.backend-theme #main-container a:not(.btn):not(.label):not(.badge):not([data-toggle]):not(.text-link),
body.backend-theme input[type="submit"],
body.backend-theme button[type="submit"],
body.backend-theme .btn {
  background: linear-gradient(90deg, #50B1E3 0%, #453DE0 100%) !important;
  border: 0 !important;
  border-radius: 20px !important;
  color: #ffffff !important;
  display: inline-block;
  font-weight: 750;
  line-height: 1.2;
  margin: .15rem .2rem;
  padding: .55rem .95rem !important;
  text-decoration: none !important;
}

body.backend-theme #main-container a:not(.btn):not(.label):not(.badge):not([data-toggle]):not(.text-link):hover,
body.backend-theme input[type="submit"]:hover,
body.backend-theme button[type="submit"]:hover,
body.backend-theme .btn:hover {
  filter: brightness(1.12);
}

body.backend-theme #main-container a.text-link {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #9BE6FE !important;
  display: inline !important;
  font-weight: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: underline !important;
}

body.backend-theme #main-container a.text-link:hover,
body.backend-theme #main-container a.text-link:focus {
  color: #ffffff !important;
  filter: none !important;
  text-decoration: underline !important;
}

body.backend-theme .btn-danger,
body.backend-theme .backend-destroy-button {
  background: linear-gradient(90deg, #ef4444 0%, #B12645 100%) !important;
}

body.backend-theme .alert-info {
  background: rgba(80, 177, 227, .2) !important;
  border-color: rgba(155, 230, 254, .32) !important;
  color: #e2e8f0 !important;
}

body.backend-theme .alert-warning {
  background: rgba(239, 68, 68, .18) !important;
  border-color: rgba(239, 68, 68, .32) !important;
  color: #ffffff !important;
}

body.backend-theme .text-muted {
  color: #94a3b8 !important;
}

body.backend-theme .onboarding-sequence-dropzone.onboarding-drop-target,
body.backend-theme .onboarding-empty-row td {
  background: rgba(80, 177, 227, .12) !important;
  border-color: rgba(155, 230, 254, .55) !important;
}

body.backend-theme trix-toolbar .button_group,
body.backend-theme trix-toolbar .trix-button-group {
  background: rgba(17, 24, 44, .96) !important;
  border-color: rgba(155, 230, 254, .42) !important;
}

body.backend-theme trix-toolbar .button_group button,
body.backend-theme trix-toolbar .button_group input[type="button"],
body.backend-theme trix-toolbar .trix-button {
  background: rgba(25, 19, 48, .92) !important;
  border-color: rgba(155, 230, 254, .24) !important;
  color: #f8fafc !important;
}

body.backend-theme trix-toolbar .button_group button:hover,
body.backend-theme trix-toolbar .button_group input[type="button"]:hover,
body.backend-theme trix-toolbar .trix-button:hover,
body.backend-theme trix-toolbar .button_group button.active,
body.backend-theme trix-toolbar .button_group input[type="button"].active,
body.backend-theme trix-toolbar .trix-button.trix-active {
  background: rgba(80, 177, 227, .28) !important;
  color: #ffffff !important;
}

body.backend-theme trix-toolbar .button_group button.icon::before,
body.backend-theme trix-toolbar .button_group input[type="button"].icon::before,
body.backend-theme trix-toolbar .trix-button--icon::before {
  filter: invert(1) brightness(1.45) contrast(1.05);
  opacity: .9 !important;
}

body.backend-theme trix-toolbar .button_group button.icon:disabled::before,
body.backend-theme trix-toolbar .button_group input[type="button"].icon:disabled::before,
body.backend-theme trix-toolbar .trix-button--icon:disabled::before {
  opacity: .28 !important;
}

body.backend-theme trix-toolbar .dialogs .dialog,
body.backend-theme trix-toolbar .trix-dialog {
  background: rgba(17, 24, 44, .98) !important;
  border-color: rgba(155, 230, 254, .42) !important;
  color: #f8fafc !important;
}

@media (max-width: 767px) {
  body.backend-theme #main-container {
    margin-top: 4.25rem !important;
    padding: 1rem !important;
  }

  body.backend-theme h1 {
    font-size: 2.25rem;
  }
}
