/* =========================================================
   ADHOC-CODEX SHARED THEME
   Home / Learner / Supervisor
   ========================================================= */


/* -----------------------------
   Toggle
----------------------------- */

.theme-toggle {
  min-width: 104px;

  white-space: nowrap;

  font-size: .74rem;
}


/* -----------------------------
   Light theme variables
----------------------------- */

html[data-theme="light"] {
  color-scheme: light;

  --bg: #f3f6fa;

  --panel:
    rgba(
      255,
      255,
      255,
      .91
    );

  --panel-strong:
    rgba(
      255,
      255,
      255,
      .98
    );

  --line:
    rgba(
      15,
      23,
      42,
      .11
    );

  --text: #111827;

  --muted: #617085;

  --shadow:
    0 22px 60px
    rgba(
      33,
      45,
      65,
      .11
    );
}


/* -----------------------------
   Page
----------------------------- */

html[data-theme="light"] body {
  color:
    var(--text) !important;

  background:
    radial-gradient(
      circle at 18% 8%,
      rgba(49,168,255,.10),
      transparent 30%
    ),
    radial-gradient(
      circle at 82% 22%,
      rgba(255,69,93,.065),
      transparent 30%
    ),
    #f3f6fa !important;
}


/* -----------------------------
   Background grid
----------------------------- */

html[data-theme="light"]
.background-grid {
  opacity: .55;

  background-image:
    linear-gradient(
      rgba(15,23,42,.045)
      1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(15,23,42,.045)
      1px,
      transparent 1px
    );
}


/* -----------------------------
   Header
----------------------------- */

html[data-theme="light"]
.topbar {
  border-bottom-color:
    rgba(15,23,42,.10) !important;

  background:
    rgba(
      248,
      250,
      253,
      .90
    ) !important;

  box-shadow:
    0 8px 28px
    rgba(
      30,
      42,
      60,
      .05
    );
}


html[data-theme="light"]
.brand-copy strong,
html[data-theme="light"]
h1,
html[data-theme="light"]
h2,
html[data-theme="light"]
h3,
html[data-theme="light"]
strong {
  color:
    #111827;
}


html[data-theme="light"]
.brand-copy small,
html[data-theme="light"]
.nav-link,
html[data-theme="light"]
.account-name,
html[data-theme="light"]
.section-note,
html[data-theme="light"]
.label,
html[data-theme="light"]
.center-status,
html[data-theme="light"]
.learner-email {
  color:
    #657388 !important;
}


html[data-theme="light"]
.account-name {
  border-color:
    rgba(
      15,
      23,
      42,
      .09
    );

  background:
    rgba(
      255,
      255,
      255,
      .66
    );
}


/* -----------------------------
   Major cards
----------------------------- */

html[data-theme="light"]
.stat-card,

html[data-theme="light"]
.recent-card,

html[data-theme="light"]
.study-center-card,

html[data-theme="light"]
.module-card,

html[data-theme="light"]
.loading-card,

html[data-theme="light"]
.learner-panel,

html[data-theme="light"]
.learner-detail {
  border-color:
    rgba(
      15,
      23,
      42,
      .10
    ) !important;

  background:
    linear-gradient(
      155deg,
      rgba(
        255,
        255,
        255,
        .98
      ),
      rgba(
        247,
        250,
        253,
        .96
      )
    ) !important;

  box-shadow:
    var(--shadow) !important;
}


/* -----------------------------
   Smaller cards
----------------------------- */

html[data-theme="light"]
.metric-card,

html[data-theme="light"]
.supervisor-module,

html[data-theme="light"]
.learner-button {
  border-color:
    rgba(
      15,
      23,
      42,
      .09
    ) !important;

  background:
    rgba(
      15,
      23,
      42,
      .025
    ) !important;
}


html[data-theme="light"]
.metric-card span,
html[data-theme="light"]
.detail-item span,
html[data-theme="light"]
.learner-button span {
  color:
    #68768a !important;
}


/* -----------------------------
   Progress
----------------------------- */

html[data-theme="light"]
.progress-track {
  background:
    rgba(
      15,
      23,
      42,
      .09
    ) !important;
}


/* -----------------------------
   Secondary controls
----------------------------- */

html[data-theme="light"]
.button.secondary {
  color:
    #263244 !important;

  border-color:
    rgba(
      15,
      23,
      42,
      .12
    ) !important;

  background:
    rgba(
      255,
      255,
      255,
      .72
    ) !important;
}


html[data-theme="light"]
.button.secondary:hover {
  background:
    #ffffff !important;
}


/* -----------------------------
   Supervisor selected learner
----------------------------- */

html[data-theme="light"]
.learner-button.active {
  background:
    rgba(
      49,
      168,
      255,
      .08
    ) !important;
}


/* -----------------------------
   Footer
----------------------------- */

html[data-theme="light"]
footer {
  color:
    #718096 !important;

  border-top-color:
    rgba(
      15,
      23,
      42,
      .09
    ) !important;

  background:
    rgba(
      245,
      248,
      252,
      .72
    ) !important;
}


/* -----------------------------
   Symbol
----------------------------- */

html[data-theme="light"]
.brand-mark img {
  filter:
    drop-shadow(
      0 4px 9px
      rgba(
        31,
        42,
        58,
        .20
      )
    );
}


/* -----------------------------
   Mobile
----------------------------- */

@media (max-width: 650px) {

  .theme-toggle {
    min-width: auto;

    padding:
      0 12px;

    font-size: .68rem;
  }

}
