﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.profile-shell {
  padding: 3rem 0;
}

.profile-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid #d7deea;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 24px 60px rgba(18, 38, 63, 0.08);
}

.profile-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-card__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #51708f;
}

.profile-card__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.profile-card__subtitle {
  margin: 0.75rem 0 0;
  color: #58708a;
}

.profile-card__edit-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #0d63c8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.profile-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #243447;
}

.profile-input {
  min-height: 3rem;
  border-radius: 14px;
  border-color: #cdd8e6;
  background-color: #f9fbfd;
}

.profile-input[readonly] {
  color: #1d2a39;
  background-color: #eef4fa;
}

.profile-input:disabled {
  color: #1d2a39;
  background-color: #eef4fa;
  opacity: 1;
}

.profile-editable:not([readonly]):not(:disabled) {
  background-color: #ffffff;
  border-color: #7aa8df;
}

.profile-editable:not([readonly]):not(:disabled) {
  background-color: #ffffff;
  border-color: #7aa8df;
}

.profile-memberships {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.membership-group {
  border: 1px solid #d7deea;
  background: #f5f8fc;
  border-radius: 14px;
  padding: 0.9rem;
}

.membership-group__title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2a3b4f;
}

.membership-group__empty {
  margin: 0;
  font-size: 0.9rem;
  color: #6a7d92;
}

.membership-group__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.25rem;
  max-height: 10.5rem;
  overflow: auto;
}

.membership-group__list li {
  color: #26374a;
  font-size: 0.9rem;
}

.profile-actions {
  display: none;
  margin-top: 1.75rem;
  gap: 0.75rem;
}

.profile-actions.is-visible {
  display: flex;
}

.profile-alert {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
}

.profile-alert--success {
  color: #0d5f3b;
  background-color: #e8f8ef;
  border: 1px solid #b5e5c6;
}

.profile-alert--error {
  color: #8b1e3f;
  background-color: #fff1f4;
  border: 1px solid #f3bfd0;
}

.profile-alert--info {
  color: #0b4b8f;
  background-color: #eaf4ff;
  border: 1px solid #b9d7fb;
}

.profile-meta-corner {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d1dceb;
  background: #f2f6fc;
  color: #51657a;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
}

.navbar-brand--icon {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
}

.navbar-brand--icon svg {
  width: 26px;
  height: 26px;
  color: #1d2a39;
}

.navbar-brand--icon:hover svg {
  color: #5059C9;
}

[data-coreui-theme='dark'] .navbar-brand--icon svg {
  color: #e2e8f0;
}

[data-coreui-theme='dark'] .navbar-brand--icon:hover svg {
  color: #818cf8;
}

.nav-divider {
  display: flex;
  align-items: center;
  padding: 0 0.15rem;
}

.nav-divider::after {
  content: '';
  display: block;
  width: 1px;
  height: 1.25rem;
  background: #d0d7e3;
  border-radius: 1px;
}

@media (max-width: 575.98px) {
  .nav-divider {
    display: none;
  }
}

.account-nav {
  align-items: center;
  gap: 0.35rem;
}

.account-nav__dropdown {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.account-nav__hello {
  font-weight: 600;
  color: #2a3b4f;
}

.account-nav__avatar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid #d2dbe8;
  border-radius: 999px;
  background: #f7f9fc;
}

.account-nav__avatar-button.dropdown-toggle::after {
  display: none;
}

.account-nav__avatar-button:hover,
.account-nav__avatar-button:focus-visible {
  background: #eaf0ff;
  border-color: #bcc9f5;
  color: #2f4ab5;
}

.account-nav__avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.account-nav__avatar-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #dce5ff;
  color: #24306a;
  font-size: 0.8rem;
  font-weight: 700;
}

.account-nav__menu {
  min-width: 11rem;
  border-radius: 14px;
  border-color: #d9e2ef;
  box-shadow: 0 16px 38px rgba(18, 38, 63, 0.15);
}

.account-nav__logout-form {
  margin: 0;
}

.account-nav__signin-item {
  display: flex;
  align-items: center;
}

.account-nav__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #d2dbe8;
  border-radius: 999px;
  background: #f7f9fc;
}

.account-nav__icon-link svg {
  width: 1.1rem;
  height: 1.1rem;
}

.account-nav__icon-link:hover,
.account-nav__icon-link:focus-visible {
  background: #eaf0ff;
  border-color: #bcc9f5;
  color: #2f4ab5;
}

.teams-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.teams-logo-img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.teams-nav-link {
  font-weight: 700;
  color: #24306a;
  margin-left: 0.6rem;
  background: linear-gradient(135deg, #e8ecff 0%, #d6ddff 100%);
  border: 1px solid #b8c5ff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  box-shadow: 0 6px 18px rgba(69, 92, 199, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.teams-nav-link:hover,
.teams-nav-link:focus-visible {
  color: #1d2554;
  background: linear-gradient(135deg, #dce3ff 0%, #c7d3ff 100%);
  box-shadow: 0 10px 22px rgba(58, 79, 180, 0.28);
  transform: translateY(-1px);
}

[data-coreui-theme='dark'] .teams-nav-link {
  color: #c7d2fe;
  background: linear-gradient(135deg, #2d3561 0%, #1e2a52 100%);
  border-color: #4a5595;
  box-shadow: 0 6px 18px rgba(30, 42, 82, 0.5);
}

[data-coreui-theme='dark'] .teams-nav-link:hover,
[data-coreui-theme='dark'] .teams-nav-link:focus-visible {
  color: #e0e7ff;
  background: linear-gradient(135deg, #374080 0%, #283670 100%);
  box-shadow: 0 10px 22px rgba(20, 30, 70, 0.6);
}

.teams-nav-link:hover .teams-logo-img,
.teams-nav-link:focus-visible .teams-logo-img {
  opacity: 0.95;
}

.directory-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 0;
}

.directory-header {
  margin-bottom: 1.5rem;
}

.directory-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.directory-subtitle {
  margin: 0.75rem 0 0;
  color: #58708a;
}

.directory-list {
  display: grid;
  gap: 1rem;
}

.directory-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto auto;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.directory-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #d7deea;
  border-radius: 20px;
  background: #ffffff;
  color: #1d2a39;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(18, 38, 63, 0.06);
}

.directory-card--clickable {
  cursor: pointer;
}

.directory-card--clickable:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.directory-card:hover {
  border-color: #7aa8df;
  transform: translateY(-1px);
}

.directory-card__title {
  margin: 0;
  font-size: 1.2rem;
}

.directory-card__meta {
  margin: 0.35rem 0 0;
  color: #58708a;
}

.directory-card__details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  color: #34495e;
  text-align: right;
}

.directory-card__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.directory-card__actions form {
  margin: 0;
}

.directory-delete-form {
  margin: 0;
}

.directory-delete-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #f3bfd0;
  background: #fff1f4;
  color: #8b1e3f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.directory-delete-icon-btn svg {
  width: 17px;
  height: 17px;
}

.directory-delete-icon-btn:hover,
.directory-delete-icon-btn:focus-visible {
  background: #ffe3eb;
  border-color: #e89ab1;
  color: #7a1735;
}

.team-detail-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 767.98px) {
  .profile-card {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .profile-card__header {
    flex-direction: column;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-memberships {
    grid-template-columns: 1fr;
  }

  .profile-actions.is-visible {
    flex-direction: column;
  }

  .profile-meta-corner {
    justify-content: flex-start;
  }

  .directory-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .directory-card__details {
    align-items: flex-start;
    text-align: left;
  }

  .directory-card__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .directory-filters {
    grid-template-columns: 1fr;
  }

  .team-detail-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Today dashboard ---------- */

.today-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.today-header {
  margin-bottom: 2rem;
}

.today-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1;
}

.today-subtitle {
  margin: 0.5rem 0 0;
  color: #58708a;
}

.today-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 991.98px) {
  .today-grid {
    grid-template-columns: 1fr;
  }
}

.today-panel {
  background: #fff;
  border: 1px solid #d7deea;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
}

.today-panel__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #edf0f5;
}

.today-panel__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #4a5c7a;
}

.today-panel__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d2a39;
}

.today-panel__error {
  color: #8b1e3f;
  font-size: 0.875rem;
  margin: 0;
}

.today-panel__empty {
  color: #7a90a8;
  font-size: 0.875rem;
  margin: 0;
}

.today-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.today-item-wrap {
  position: relative;
}

.today-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  text-decoration: none;
  color: #1d2a39;
  background: #f8f9fc;
  transition: background 120ms ease;
}

.today-item:hover {
  background: #eef1f8;
  color: #1d2a39;
  text-decoration: none;
}

.today-item--no-link {
  cursor: default;
}

.today-item__time {
  font-size: 0.75rem;
  color: #58708a;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
  min-width: 72px;
}

.today-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.today-item__title {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.today-item__meta {
  font-size: 0.75rem;
  color: #58708a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.today-item__badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}

.today-item__badge--teams {
  background: #e8ecff;
  color: #24306a;
}

.today-item__badge--overdue {
  background: #fff1f4;
  color: #8b1e3f;
}

.today-item__progress {
  font-size: 0.75rem;
  color: #58708a;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}

/* Hover tooltip */

.today-tooltip {
  display: none;
  position: absolute;
  left: calc(100% + 10px);
  top: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid #d7deea;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  width: 260px;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.14);
  pointer-events: none;
}

.today-item-wrap:hover .today-tooltip {
  display: block;
}

.today-tooltip__time {
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #1d2a39;
}

.today-tooltip__row {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: #34495e;
}

.today-tooltip__preview {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #58708a;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .today-tooltip {
    left: 0;
    top: calc(100% + 6px);
    width: 100%;
  }
}

.signin-hero {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
}

.signin-hero__card {
  width: min(560px, 92vw);
  text-align: center;
  padding: 2.25rem 2rem;
  border: 1px solid #d7deea;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 24px 60px rgba(18, 38, 63, 0.1);
}

.signin-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.1;
}

.signin-hero__subtitle {
  margin: 0.8rem 0 1.6rem;
  color: #58708a;
}

.signin-hero__notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid #b9d7fb;
  background: #eaf4ff;
  color: #0b4b8f;
  font-weight: 600;
}

.signin-hero__notice-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.signin-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 180px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #5d6be6 0%, #3f55cb 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(63, 85, 203, 0.35);
}

.signin-hero__button svg {
  width: 1.1rem;
  height: 1.1rem;
}

.signin-hero__button:hover,
.signin-hero__button:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(63, 85, 203, 0.42);
}
/* ===== CoreUI Demo-like Global Shell ===== */
html {
  min-height: 100%;
}

body.app-shell {
  margin: 0;
  min-height: 100vh;
  background: #f2f4f8;
}

.app-main-wrapper {
  margin-left: 0;
  background: #f2f4f8;
}

.app-topbar {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(8, 10, 12, 0.08);
}

.topbar-row {
  min-height: 56px;
}

/* Theme toggle inside avatar dropdown */
.theme-toggle-item {
  cursor: pointer;
  user-select: none;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  padding: 0.45rem 1rem;
  color: var(--cui-dropdown-color, #212529);
  font-size: 0.9375rem;
}

.theme-toggle-item:hover,
.theme-toggle-item:focus {
  background: var(--cui-dropdown-link-hover-bg, #f8f9fa);
  color: var(--cui-dropdown-link-hover-color, #16181b);
}

[data-coreui-theme='dark'] .theme-toggle-item {
  color: var(--cui-dropdown-color, #dee2e6);
}

[data-coreui-theme='dark'] .theme-toggle-item:hover,
[data-coreui-theme='dark'] .theme-toggle-item:focus {
  background: var(--cui-dropdown-link-hover-bg, #2c3034);
  color: var(--cui-dropdown-link-hover-color, #f8f9fa);
}

.theme-toggle-item__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.theme-toggle-item__text {
  font-weight: 500;
}

.sidebar {
  --cui-sidebar-width: 256px;
}

.sidebar .nav-link {
  font-weight: 600;
}

.app-content-shell {
  padding-top: 0.25rem;
}

/* Normalize existing page shells into card-like content area */
.today-shell,
.directory-shell,
.profile-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.today-panel,
.directory-card,
.profile-card {
  border-radius: 0.75rem;
}

/* Make account partial fit top bar */
.account-nav {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.account-nav .navbar-text {
  margin-bottom: 0;
}

/* Footer style requested */
.footer {
  background: #fff;
  border-top: 1px solid #d8dbe0;
  min-height: 52px;
  display: flex;
  align-items: center;
}

/* Dark mode adaptation */
[data-coreui-theme='dark'] body.app-shell,
[data-coreui-theme='dark'] .app-main-wrapper {
  background: #111827;
}

[data-coreui-theme='dark'] .app-topbar,
[data-coreui-theme='dark'] .footer {
  background: #1f2937;
  border-color: #374151;
}

.external-hint-icon {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.75;
}

.topbar-links {
  gap: 0.35rem;
}

/* Topbar icon wrap (for badge positioning) */
.topbar-icon-wrap {
  position: relative;
}

.topbar-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  pointer-events: none;
  border: 1.5px solid #ffffff;
}

[data-coreui-theme='dark'] .topbar-badge {
  border-color: #1f2937;
}

/* Topbar icon buttons (bell, mail) */
.topbar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  border-radius: 50%;
  color: #4a5c7a;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  padding: 0;
}

.topbar-icon-btn:hover,
.topbar-icon-btn:focus-visible {
  background: #eef1f8;
  color: #1d2a39;
}

.topbar-icon-btn svg {
  width: 20px;
  height: 20px;
}

[data-coreui-theme='dark'] .topbar-icon-btn {
  color: #94a3b8;
}

[data-coreui-theme='dark'] .topbar-icon-btn:hover,
[data-coreui-theme='dark'] .topbar-icon-btn:focus-visible {
  background: #374151;
  color: #e2e8f0;
}

/* Dark mode: Today panels */
[data-coreui-theme='dark'] .today-panel {
  background: #1e293b;
  border-color: #334155;
}

[data-coreui-theme='dark'] .today-panel__head {
  border-color: #334155;
}

[data-coreui-theme='dark'] .today-title,
[data-coreui-theme='dark'] .today-panel__title,
[data-coreui-theme='dark'] .today-item__title {
  color: #e2e8f0;
}

[data-coreui-theme='dark'] .today-subtitle,
[data-coreui-theme='dark'] .today-panel__icon,
[data-coreui-theme='dark'] .today-panel__error,
[data-coreui-theme='dark'] .today-panel__empty {
  color: #94a3b8;
}

[data-coreui-theme='dark'] .today-item {
  background: #0f172a;
  color: #e2e8f0;
}

[data-coreui-theme='dark'] .today-item:hover {
  background: #1e3a5f;
  color: #e2e8f0;
}

[data-coreui-theme='dark'] .today-item__time,
[data-coreui-theme='dark'] .today-item__meta,
[data-coreui-theme='dark'] .today-item__progress {
  color: #94a3b8;
}

[data-coreui-theme='dark'] .today-item__badge--teams {
  background: #2d3561;
  color: #c7d2fe;
}

[data-coreui-theme='dark'] .today-item__badge--overdue {
  background: #450a0a;
  color: #fca5a5;
}

[data-coreui-theme='dark'] .today-tooltip {
  background: #1e293b;
  border-color: #334155;
}

[data-coreui-theme='dark'] .today-tooltip__time,
[data-coreui-theme='dark'] .today-tooltip__row,
[data-coreui-theme='dark'] .today-tooltip__preview {
  color: #cbd5e1;
}

/* Dark mode: People / directory cards */
[data-coreui-theme='dark'] .directory-card {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

[data-coreui-theme='dark'] .directory-card:hover {
  border-color: #60a5fa;
}

[data-coreui-theme='dark'] .directory-card__meta {
  color: #94a3b8;
}

[data-coreui-theme='dark'] .directory-delete-icon-btn {
  background: #3f111f;
  border-color: #7f1d3a;
  color: #fda4af;
}

[data-coreui-theme='dark'] .directory-delete-icon-btn:hover,
[data-coreui-theme='dark'] .directory-delete-icon-btn:focus-visible {
  background: #551428;
  border-color: #9f244a;
  color: #fecdd3;
}

/* Dark mode: My info (profile) page */
[data-coreui-theme='dark'] .profile-card {
  background: #1e293b;
  border-color: #334155;
}

[data-coreui-theme='dark'] .profile-card__eyebrow,
[data-coreui-theme='dark'] .profile-card__subtitle {
  color: #94a3b8;
}

[data-coreui-theme='dark'] .profile-field label {
  color: #cbd5e1;
}

[data-coreui-theme='dark'] .profile-input {
  background-color: #0f172a;
  border-color: #475569;
  color: #e2e8f0;
}

[data-coreui-theme='dark'] .profile-input[readonly],
[data-coreui-theme='dark'] .profile-input:disabled {
  background-color: #1e293b;
  color: #cbd5e1;
}

[data-coreui-theme='dark'] .profile-editable:not([readonly]):not(:disabled) {
  background-color: #0f172a;
  border-color: #60a5fa;
  color: #e2e8f0;
}

[data-coreui-theme='dark'] .membership-group {
  background: #0f172a;
  border-color: #334155;
}

[data-coreui-theme='dark'] .membership-group__title {
  color: #cbd5e1;
}

[data-coreui-theme='dark'] .membership-group__empty {
  color: #94a3b8;
}

[data-coreui-theme='dark'] .membership-group__list li {
  color: #cbd5e1;
}

[data-coreui-theme='dark'] .profile-meta-chip {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}

[data-coreui-theme='dark'] .profile-alert--success {
  background-color: #052e16;
  border-color: #166534;
  color: #86efac;
}

[data-coreui-theme='dark'] .profile-alert--error {
  background-color: #450a0a;
  border-color: #7f1d1d;
  color: #fca5a5;
}

[data-coreui-theme='dark'] .profile-alert--info {
  background-color: #0c1a2e;
  border-color: #1e40af;
  color: #93c5fd;
}

/* Dark mode: logged-out landing (after logout) */
[data-coreui-theme='dark'] .signin-hero__card {
  border-color: #334155;
  background: linear-gradient(180deg, #1e293b 0%, #172334 100%);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

[data-coreui-theme='dark'] .signin-hero__title {
  color: #e2e8f0;
}

[data-coreui-theme='dark'] .signin-hero__subtitle {
  color: #94a3b8;
}

[data-coreui-theme='dark'] .signin-hero__notice {
  border-color: #1e40af;
  background: #0c1a2e;
  color: #93c5fd;
}

[data-coreui-theme='dark'] .signin-hero__button {
  background: linear-gradient(135deg, #4f5fcc 0%, #3348b7 100%);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.55);
}

[data-coreui-theme='dark'] .signin-hero__button:hover,
[data-coreui-theme='dark'] .signin-hero__button:focus-visible {
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.7);
}
