/* Allgemeine Toggle Styles */
.toggle-row {
  display: flex;
  align-items: center;
  margin: 20px 0;
}
.toggle-label {
  margin-right: 10px;
  font-weight: bold;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-right: 10px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: #007bff;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
}
.toggle-text {
  font-weight: bold;
  margin: 0 5px;
}
.toggle-text.active {
  color: #007bff;
  text-decoration: underline;
}
.toggle-text.inactive {
  color: #6c757d;
}
.ids-icons {
  font-family: "Material Icons";
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  word-wrap: normal;
  -moz-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

.td-centered {
  text-align: center !important;
}

.td-left {
  text-align: left;
}

.td-right {
  text-align: right;
}

.button-spacer {
  width: 10px;
  display: inline-block;
  height: auto;
}

.button-vertical-spacer {
  width: 10px;
  display: inline-block;
  height: 10px;
}

.ids-div-buttonbar {
  margin: 15px 0px 0px 0px;
}

.div-flex {
  display: flex;
}

.has-tooltip {
  cursor: help;
}

.cursor-pointer {
  cursor: pointer;
}

html,
body {
  font-family: "Roboto", "Helvetica", sans-serif;
}
.demo-avatar {
  width: 48px;
  height: 48px;
  border-radius: 24px;
}
.demo-layout .mdl-layout__header .mdl-layout__drawer-button {
  color: rgba(0, 0, 0, 0.54);
}
.mdl-layout__drawer .avatar {
  margin-bottom: 16px;
}
.demo-drawer {
  border: none;
}

.demo-drawer .mdl-menu .mdl-menu__item {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}
.demo-drawer-header {
  box-sizing: border-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: flex-end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  padding: 16px;
  height: 151px;
}
.demo-avatar-dropdown {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
}

.demo-navigation {
  -webkit-flex-grow: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
}
.demo-layout .demo-navigation .mdl-navigation__link {
  display: -webkit-flex !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.56);
  font-weight: 500;
}
.demo-layout .demo-navigation .mdl-navigation__link:hover {
  background-color: #00bcd4;
  color: #37474f;
}
.demo-navigation .mdl-navigation__link .ids-icons {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.56);
  margin-right: 8px;
  align-self: baseline;
}

.demo-content {
  max-width: 1080px;
}

.demo-charts {
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}
.demo-chart:nth-child(1) {
  color: #acec00;
}
.demo-chart:nth-child(2) {
  color: #00bbd6;
}
.demo-chart:nth-child(3) {
  color: #ba65c9;
}
.demo-chart:nth-child(4) {
  color: #ef3c79;
}
.demo-graphs {
  padding: 16px 32px;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}
/* TODO: Find a proper solution to have the graphs
 * not float around outside their container in IE10/11.
 * Using a browserhacks.com solution for now.
 */
_:-ms-input-placeholder,
:root .demo-graphs {
  min-height: 664px;
}
_:-ms-input-placeholder,
:root .demo-graph {
  max-height: 300px;
}
/* TODO end */
.demo-graph:nth-child(1) {
  color: #00b9d8;
}
.demo-graph:nth-child(2) {
  color: #d9006e;
}

.demo-cards {
  -webkit-align-items: flex-start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-align-content: flex-start;
  -ms-flex-line-pack: start;
  align-content: flex-start;
}
.demo-cards .demo-separator {
  height: 32px;
}

.mdl-card {
  min-width: 330px;
}

.demo-cards .mdl-card__title.mdl-card__title {
  color: white;
  font-size: 24px;
  font-weight: 400;
}
.demo-cards ul {
  padding: 0;
}
.demo-cards h3 {
  font-size: 1em;
}
.demo-updates .mdl-card__title {
  min-height: 100px;
}
.demo-cards .mdl-card__actions a {
  color: #00bcd4;
  text-decoration: none;
}

.demo-options h3 {
  margin: 0;
}
.demo-options .mdl-checkbox__box-outline {
  border-color: rgba(255, 255, 255, 0.89);
}
.demo-options ul {
  margin: 0;
  list-style-type: none;
}
.demo-options li {
  margin: 4px 0;
}
.demo-options
  .ids-icons
  .defaultmenuitem
  .defaultsubmenuitem
  .defaultsubsubmenuitem {
  color: rgba(255, 255, 255, 0.89);
}
.demo-options .mdl-card__actions {
  height: 64px;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  box-sizing: border-box;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.dfx-card {
  border: 1px solid #e8e8e8;
}

.dfx-card > .mdl-card__title {
  background: url("./../images/digitalfabrix.svg") top 5px left 20px;
  background-repeat: no-repeat;
  background-size: 150px 50px;
  color: black !important;
  display: block;
  align-items: center;
}

.dfx-card > .mdl-card__title > h2 {
  font-size: 16pt;
  color: #2b4953;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
  margin-top: 50px;
}

.dfx-card .mdl-card__supporting-text {
  padding-top: 5px;
}

.dfx-card .mdl-card__supporting-text > form > input {
  /*font-size: 16pt;*/
  color: #525658;
}

.mdl-card > .mdl-card__supporting-text > form > .ids-div-buttonbar {
  display: flex;
  justify-content: end;
}

.btn-primary {
  background-color: #00a1e0;
  color: white;
  border-radius: 6px;
  text-transform: none;
}

.btn-primary:hover {
  background-color: #0081b3;
  opacity: 80%;
}

.btn-secondary {
  background-color: #ffffff;
  color: #2b4953;
  border-radius: 6px;
  text-transform: none;
}

.btn-secondary:hover {
  background-color: #ebecee;
  opacity: 80%;
}

.mg-top-20 {
  margin-top: 20px !important;
}

.mg-top-40 {
  margin-top: 40px;
}

.mg-top-80 {
  margin-top: 80px;
}

.dfx-color-blue {
  background-color: #46b4ff;
  color: white;
}

.dfx-color-darkblue {
  background-color: #00194b;
  color: white;
}

.dfx-nav {
  background-color: #fafafa;
  color: #46b4ff;
}

.dfx-nav > .mdl-navigation__link {
  color: #575757 !important;
}

.dfx-nav > .mdl-navigation__link:hover {
  background-color: #c3dff4 !important;
}
.dfx-nav > .mdl-navigation__link > .ids-icons {
  color: #575757;
}

.dfx-nav > h5 {
  margin-left: 40px;
}

.btn-flex {
  display: flex;
}

.ids-div-buttonbar {
  display: flex;
  justify-content: end;
}

/* oauth provider */
.provider-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.provider-list li {
  margin-bottom: 12px;
}

.provider-tile {
  margin-bottom: 12px;
}

.provider-login-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.provider-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  background-color: white;
  color: #2b4953;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
}

.provider-tile:hover {
  background-color: #ebecee;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.provider-tile svg {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  fill: white;
}

.provider-label {
  font-size: 16px;
}

.dfx-text {
  font-size: 20px;
  align-self: flex-end;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-weight: 300;
  justify-content: center;
  align-items: center;
  color: #2b4953;
  display: flex;
  margin-bottom: 5px;
  margin-top: 50px;
}

.warning p,
.info p,
.bulb p {
  margin: 14px 0;
}

.warning,
.info,
.bulb {
  max-width: 600px;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px dotted gray;
  border-radius: 10px;
}

.iss-font {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  /* font-family: 'Söhne', 'ui-sans-serif', 'system-ui', '-apple-system', 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';   */
}

.warning::before,
.info::before,
.bulb::before {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  /* font-family: 'Söhne', 'ui-sans-serif', 'system-ui', '-apple-system', 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; */
  display: inline-block;
  max-width: 200px;
  color: black;
  margin: 7px 0px 7px 0px;
  padding: 4px;
  border-radius: 3px;
  font-weight: bold;
  border: 1px dotted gray;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.warning::after,
.info::after,
.bulb::after {
  content: "";
  display: block;
  clear: both;
}

.warning {
  background-color: rgb(255, 255, 222);
}

.warning::before {
  content: "⚠️ Warnung";
  padding-right: 20px;
  background-color: rgb(255, 255, 76);
  color: rgb(102, 51, 0);
  border-radius: 4px;
  padding: 6px 12px;
}

.info {
  background-color: rgb(232, 244, 253);
}

.info::before {
  content: "ℹ️ Information";
  padding-right: 20px;
  background-color: rgb(106, 206, 252);
  color: white;
  border-radius: 4px;
  padding: 6px 12px;
}

.bulb {
  background-color: rgb(240, 255, 240);
}

.bulb::before {
  content: "💡 Wichtiger Hinweis";
  padding-right: 20px;
  background-color: rgb(34, 193, 34);
  color: white;
  border-radius: 4px;
  padding: 6px 12px;
}

code {
  font-size: 1em;
  font-family: "Courier New", Courier, monospace;
  white-space: pre-wrap;
  background-color: rgb(244, 244, 244)
}

code.language-powershell::before {
  font-size: 1em;
  content: "powershell";
  display: block;
  position: absolute;
  top: -20px;
  left: 10px;
  background-color: #333;
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
}

code.language-powershell {
  font-size: 1em;
  display: block;
  text-wrap: wrap;
  background-color: #f4f4f4;
  font-family: "Courier New", Courier, monospace;
  padding: 10px;
  border-radius: 5px;
  width: 60%;
  /* 70% der Breite */
  margin: 40px 0;
  /* Oben und unten 20px, links kein Abstand, rechts kein Abstand */
  box-sizing: border-box;
  position: relative;
  border: 1px solid #ccc;
  text-align: left;
  /* Links ausrichten */
}

code.language-outputpowershell::before {
  font-size: 1em;
  content: "example output";
  display: block;
  position: absolute;
  top: -20px;
  left: 10px;
  background-color: green;
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
}

code.language-outputpowershell {
  font-size: 1em;
  display: block;
  text-wrap: wrap;
  background-color: #333;
  font-family: "Courier New", Courier, monospace;
  padding: 10px;
  border-radius: 5px;
  width: 60%;
  color: #c0c0c0;
  /* 70% der Breite */
  margin: 40px 0;
  /* Oben und unten 20px, links kein Abstand, rechts kein Abstand */
  box-sizing: border-box;
  position: relative;
  border: 1px solid #ccc;
  text-align: left;
  /* Links ausrichten */
}

/* JSON Codeblöcke – angelehnt an PowerShell Stil */
code.language-json::before {
  font-size: 1em;
  content: "json";
  display: block;
  position: absolute;
  top: -20px;
  left: 10px;
  background-color: #333;
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
}

code.language-json {
  font-size: 1em;
  display: block;
  text-wrap: wrap;
  background-color: #f4f4f4;
  font-family: "Courier New", Courier, monospace;
  padding: 10px;
  border-radius: 5px;
  width: 60%;
  margin: 40px 0;
  box-sizing: border-box;
  position: relative;
  border: 1px solid #ccc;
  text-align: left;
}

/* Optional: Ausgabeblock für JSON-Beispiele */
code.language-outputjson::before {
  font-size: 1em;
  content: "example json";
  display: block;
  position: absolute;
  top: -20px;
  left: 10px;
  background-color: green;
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
}

code.language-outputjson {
  font-size: 1em;
  display: block;
  text-wrap: wrap;
  background-color: #333;
  font-family: "Courier New", Courier, monospace;
  padding: 10px;
  border-radius: 5px;
  width: 60%;
  color: #c0c0c0;
  margin: 40px 0;
  box-sizing: border-box;
  position: relative;
  border: 1px solid #ccc;
  text-align: left;
}

.code-copy-button {
  position: absolute;
  font-size: large;
  top: -20px;
  right: 15px;
  background-color: #ccc;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  cursor: pointer;
  font-weight: bold;
}

.code-copy-button:hover {
  background-color: #eee;
}

table {
  border-collapse: collapse;
}

table th,
table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

table th {
  background-color: #fafafa;
  color: #575757;
}

.mdl-navigation__link.defaultsubmenuheader {
  padding: 16px 40px 16px 60px !important;
}

.mdl-navigation__link.defaultsubmenuitem {
  padding: 16px 40px 16px 60px !important;
}

.mdl-navigation__link.defaultsubsubmenuitem {
  padding: 16px 40px 16px 80px !important;
}
.mdl-navigation__link.selectedmenu {
  font-weight: bold !important;
}

.defaultmenuitem {
  margin-left: 8px;
  background-color: #fafafa;
  color: #575757;
}

.defaultsubmenuheader {
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 16px;
  background-color: #fafafa;
  color: #575757;
  padding-left: 20px;
}
.defaultsubmenuheader a {
  padding-left: 5px;
}

.defaultsubmenuitem {
  background-color: #fafafa;
  color: #575757;
  margin-left: 16px;
  padding-left: 20px;
}
.defaultsubmenuitem a {
  padding: 5px;
}

.defaultsubsubmenuitem {
  margin-left: 24px;
  background-color: #fafafa;
  color: #575757;
  padding-left: 40px;
}
.defaultsubsubmenuitem a {
  padding: 5px;
}

.mdl-mini-footer {
  background-color: #f5f5f5;
  padding: 0px 40px;
}

.mdl-mini-footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mdl-mini-footer__spacer {
  flex: 1;
}

.mdl-mini-footer__info {
  flex: 0 1 auto;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.mdl-mini-footer__info a {
  color: #f5f5f5;
  text-decoration: underline;
  transition: color 0.2s;
}

.mdl-mini-footer__actions {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

#refreshBtn {
  min-width: 32px;
  width: 32px;
  height: 32px;
  padding: 4px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#refreshBtn .ids-icons {
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.footer-center {
  flex: 1;
  text-align: center;
}

.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: -30px;
}

.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.dropdown-container:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

.dropdown-item .ids-icons {
  font-size: 16px;
  margin-right: 8px;
  color: #666;
}

.dropdown-item span {
  flex: 1;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
    align-items: center;
  }

  nav {
    width: 100%;
    height: auto;
    position: static;
  }

  .content {
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
  }
}
