/* Main components */
#site-name img {
  min-width: 180px;
  height: auto;
}

/* Light mode - Main */
html[data-theme="light"],
html[data-theme="auto"] {
  --primary: #2b4c9a;
  --primary-contrast: #ffffff;
  --accent: #ffffff;
  --secondary: #2b4c9a;
  --header-color: #fbc162;
  --selected-row: #dee7f9;
  --link-fg: #4660ac;
  --body-fg: #5b5e5f;
  --button-fg: #ffffff;
  --breadcrumbs-bg: #0f386d;
  --default-button-bg: #2b4c9a;
  --button-bg: #2b4c9a;
  --close-button-bg: #2b4c9a;
}

/* Scoped "Light" components */
html[data-theme="light"] #content-main table tbody tr:hover,
html[data-theme="auto"] #content-main table tbody tr:hover {
  background-color: #d9d9d9;
  cursor: pointer;
}
html[data-theme="light"] #content-main ul li a.viewlin,
html[data-theme="auto"] #content-main ul li a.viewlink {
  background-color: #2b4c9a;
  color: #ffffff;
}
html[data-theme="light"] #content-main ul li a.addlink,
html[data-theme="auto"] #content-main ul li a.addlink {
  background-color: #2b4c9a;
  color: #ffffff;
}
html[data-theme="light"] #content-main ul li a.changelink,
html[data-theme="auto"] #content-main ul li a.changelink {
  background-color: #2b4c9a;
  color: #ffffff;
}
html[data-theme="light"] #content-main ul li a.historylink,
html[data-theme="auto"] #content-main ul li a.historylink {
  background-color: #2b4c9a;
  color: #ffffff;
}
html[data-theme="light"] #content-main ul li a#btn-notify_new_account,
html[data-theme="auto"] #content-main ul li a#btn-notify_new_account {
  background-color: #2b4c9a;
  color: #ffffff;
}
html[data-theme="light"] #content-main ul li a#btn-close_ticket,
html[data-theme="auto"] #content-main ul li a#btn-close_ticket {
  background-color: #2b4c9a;
  color: #ffffff;
}
html[data-theme="light"]
  #content-main
  ul
  li
  a#btn-notify_instance_owner_instance_ready,
html[data-theme="auto"]
  #content-main
  ul
  li
  a#btn-notify_instance_owner_instance_ready {
  background-color: #2b4c9a;
  color: #ffffff;
}
html[data-theme="light"] #content-main ul li a#btn-reject_and_notify,
html[data-theme="auto"] #content-main ul li a#btn-reject_and_notify {
  background-color: #2b4c9a;
  color: #ffffff;
}
html[data-theme="light"]
  #content-main
  ul
  li
  a#btn-create_vm_instance_from_request,
html[data-theme="auto"]
  #content-main
  ul
  li
  a#btn-create_vm_instance_from_request {
  background-color: #2b4c9a;
  color: #ffffff;
}
html[data-theme="light"] #content-related,
html[data-theme="auto"] #content-related {
  background-color: #dee7f9;
}
html[data-theme="light"] #recent-actions-module h2,
html[data-theme="auto"] #recent-actions-module h2 {
  color: #333333 !important;
  border-bottom: 1px solid #2c4d9a !important;
}
html[data-theme="light"] #recent-actions-module h3,
html[data-theme="auto"] #recent-actions-module h3 {
  color: #0f386d !important;
}
html[data-theme="light"] #nav-sidebar table tbody tr:hover,
html[data-theme="auto"] #nav-sidebar table tbody tr:hover {
  background-color: #d9d9d9;
  cursor: pointer;
}
html[data-theme="light"] #result_list thead th,
html[data-theme="auto"] #result_list thead th {
  background: #d9d9d9;
  color: #333333;
}
html[data-theme="light"] #changelist-filter,
html[data-theme="auto"] #changelist-filter {
  background: #dee7f9 !important;
}
html[data-theme="light"] #changelist-filter-extra-actions,
html[data-theme="auto"] #changelist-filter-extra-actions {
  border-bottom: 1px solid #2c4d9a !important;
}
html[data-theme="light"] #nav-sidebar a.section,
html[data-theme="auto"] #nav-sidebar a.section {
  color: #ffffff !important;
}
html[data-theme="light"] a.viewlink,
html[data-theme="auto"] a.viewlink {
  color: #5b5e5f;
}
html[data-theme="light"] a.addlink,
html[data-theme="auto"] a.addlink {
  color: #5b5e5f;
}
html[data-theme="light"] a.changelink,
html[data-theme="auto"] a.changelink {
  color: #5b5e5f;
}
html[data-theme="light"] #id_password p a,
html[data-theme="auto"] #id_password p a {
  background: #ba2121 !important;
}
html[data-theme="light"] #id_flavour div label,
html[data-theme="auto"] #id_flavour div label {
  background: #dee7f9 !important;
  color: #000000;
}

/* Dark mode - Main */
html[data-theme="dark"] {
  --primary: #2b4c9a;
  --primary-contrast: #ffffff;
  --accent: #ffffff;
  --secondary: #2b4c9a;
  --header-color: #fbc162;
  --selected-row: #dee7f9;
  --link-fg: #6da6e3;
  --body-fg: #ffffff;
  --button-fg: #ffffff;
  --breadcrumbs-bg: #4264ad;
  --default-button-bg: #3262c2;
  --button-bg: #3262c2;
  --close-button-bg: #3262c2;
}

/* Scoped "Dark" components */
html[data-theme="dark"] #content-main table tbody tr:hover {
  background-color: #36393b;
  cursor: pointer;
}
html[data-theme="dark"] #content-main ul li a.viewlink {
  background-color: #3262c2;
}
html[data-theme="dark"] #content-main ul li a.addlink {
  background-color: #3262c2;
}
html[data-theme="dark"] #content-main ul li a.changelink {
  background-color: #3262c2;
}
html[data-theme="dark"] #content-main ul li a.historylink {
  background-color: #3262c2;
}
html[data-theme="dark"] #content-main ul li a#btn-notify_new_account {
  background-color: #3262c2;
}
html[data-theme="dark"] #content-main ul li a#btn-close_ticket {
  background-color: #3262c2;
}
html[data-theme="dark"]
  #content-main
  ul
  li
  a#btn-notify_instance_owner_instance_ready {
  background-color: #3262c2;
}
html[data-theme="dark"] #content-main ul li a#btn-reject_and_notify {
  background-color: #3262c2;
}
html[data-theme="dark"]
  #content-main
  ul
  li
  a#btn-create_vm_instance_from_request {
  background-color: #3262c2;
}
html[data-theme="dark"] #content-related {
  background-color: #36393b;
}
html[data-theme="dark"] #recent-actions-module h2 {
  color: #ffffff !important;
  border-bottom: 1px solid #d9d9d9 !important;
}
html[data-theme="dark"] #recent-actions-module h3 {
  color: #ffffff !important;
}
html[data-theme="dark"] #nav-sidebar table tbody tr:hover {
  background-color: #36393b;
  cursor: pointer;
}
html[data-theme="dark"] #result_list thead th {
  background: #36393b;
  color: #ffffff;
}
html[data-theme="dark"] #changelist-filter {
  background: #36393b !important;
}
html[data-theme="dark"] #changelist-filter-extra-actions {
  border-bottom: 1px solid #2c4d9a !important;
}
html[data-theme="dark"] #nav-sidebar a.section {
  color: #ffffff !important;
}
html[data-theme="dark"] a.viewlink {
  color: #ffffff;
}
html[data-theme="dark"] a.addlink {
  color: #ffffff;
}
html[data-theme="dark"] a.changelink {
  color: #ffffff;
}
html[data-theme="dark"] #id_password p a {
  background: #ba2121 !important;
}
html[data-theme="dark"] #id_flavour div label {
  background: #d0d0d0 !important;
  color: #000000;
}

/* Logout components */
.logout-container {
  max-width: 500px;
  margin: 80px auto;
  padding: 40px;
  text-align: center;
  border-radius: 12px;
}

.logout-container h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.logout-container p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.logout-container .actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.logout-container .actions a {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

/* Scoped "Light" components */
html[data-theme="light"] .logout-container,
html[data-theme="auto"] .logout-container {
  background: #dee7f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
html[data-theme="light"] .logout-container .actions a,
html[data-theme="auto"] .logout-container .actions a {
  background-color: #2b4c9a;
  color: #ffffff;
}
html[data-theme="light"] .logout-container .actions a:hover,
html[data-theme="auto"] .logout-container .actions a:hover {
  background-color: #1f376f;
  cursor: pointer;
}

/* Scoped "Dark" components */
html[data-theme="dark"] .logout-container {
  background: #36393b;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .logout-container .actions a {
  background-color: #3262c2;
  color: #ffffff;
}
html[data-theme="dark"] .logout-container .actions a:hover {
  background-color: #264a92;
  cursor: pointer;
}

/* Language select */
.language-select {
  display: inline;
}
.language-select select {
  border: 0;
  background-color: #2b4c9a;
  color: #ffffff;
  font-size: 0.6875rem;
}
