/* Menu link active */
a.nav-link {
  line-height: 1;
  padding-top: 0.35em;
  padding-bottom: 0.35em;
}
a.nav-link-active {
  border-width: 1px;
  border-style: solid;
}
body[data-theme="dark"] a.nav-link {
  color:var(--dm-muted-text-color);
}

body[data-theme="light"] a.nav-link {
  color:var(--lm-muted-text-color);
}
body[data-theme="dark"] a.nav-link:hover {
  color: var(--dm-base-text-color);
}

body[data-theme="light"] a.nav-link:hover {
  color: var(--lm-base-text-color);
}
body[data-theme="dark"] a.nav-link-active {
  color: var(--dm-base-text-color);
  border-color: var(--dm-base-text-color) !important;
}
body[data-theme="light"] a.nav-link-active {
  color: var(--lm-base-text-color);
  border-color: var(--lm-base-text-color) !important;
}

/* Page headers (Licenses page) */
.page-header {
  background: url('/minimarks/_a/id.bitz.ag/app/img/app-chooser.jpg') no-repeat center center/cover;
  height: auto;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding:20px;
  margin-bottom: 20px;
  color: var(--dm-base-text-color);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.page-header h1 {
  margin-bottom: 5px;
  font-weight: 600;
}
.page-header p {
  margin-top: 0;
  width: 100%;
  max-width: 320px;
  font-weight:500;
  font-size: 110%;
}

/* Referred Header (user registration) */
#referred-header {
  width: 275px;
  height: 50px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.6em;
}
@media (max-width: 468px) {
  #referred-header {
    width: 195px;
  }
}
body[data-theme="dark"] #referred-header {
  background: url('/minimarks/_a/id.bitz.ag/app/img/we-love-appsumo_dm.svg') no-repeat center center;
}
body[data-theme="light"] #referred-header {
  background: url('/minimarks/_a/id.bitz.ag/app/img/we-love-appsumo.svg') no-repeat center center;
}


/* App Launcher (dashboard) */
#app-launcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--navbar-height));
  padding: 40px 20px;
}
#app-launcher-greeting {
  text-align: center;
  margin-bottom: 50px;
}
#app-launcher-greeting #user-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  border: 3px solid rgba(255, 255, 255, 0.08);
}
#app-launcher-greeting h2 {
  font-size: 1.8em;
  line-height: 1.2;
  margin-bottom: 4px;
}
#app-launcher-apps {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 640px;
}
.app-launcher-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.app-launcher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  color: #fff;
}
.app-launcher-card img {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}
.app-launcher-name {
  font-size: 1.25em;
  font-weight: 600;
}
@media (max-width: 768px) {
  #app-launcher {
    min-height: calc(100vh - 100px);
    padding: 30px 16px;
  }
  #app-launcher-greeting {
    margin-bottom: 36px;
  }
  #app-launcher-apps {
    flex-direction: column;
    gap: 16px;
  }
  .app-launcher-card {
    padding: 36px 20px;
    flex-direction: row;
    gap: 16px;
    justify-content: flex-start;
  }
  .app-launcher-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
  }
  .app-launcher-name {
    flex: 1;
  }
}

/* Licenses table */
table#licenses-table {
  span.label {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  table#licenses-table thead {
    display: none;
  }
  
  table#licenses-table tr {
    //border-bottom: none !important;
  }

  table#licenses-table td {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    table#licenses-table td:not(.first-col):not(.last-col) {
      padding-top: 0.1em !important;
      padding-bottom: 0.1em !important;
    }
  
    table#licenses-table td .label {
      display: inline-block;
      font-weight: 500;
      opacity: 0.65;
    }
  
    table#licenses-table td span:not(.label) {
      text-align: right;
      white-space: nowrap;
    }
    table#licenses-table td.first-col {
      padding-bottom: 0.1em !important;
    }
    table#licenses-table td.last-col {
      padding-top: 0.1em !important;
    }
    table#licenses-table td.dropdown-col {
      display: none;
    }
  }