/* dashboard-glass.css */
:root {
  --glass-bg: rgba(255, 255, 255, .55);
  --glass-border: rgba(255, 255, 255, .25);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, .1);
}

body.dark-mode {
  --glass-bg: rgba(30, 30, 40, .55);
  --glass-border: rgba(255, 255, 255, .1);
  color: #fff !important;
}

.card.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1rem;
}

/* animate on entrance */
#kpiRow .card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn .6s forwards;
}

#kpiRow .card:nth-child(2) {
  animation-delay: .1s
}

#kpiRow .card:nth-child(3) {
  animation-delay: .2s
}

#kpiRow .card:nth-child(4) {
  animation-delay: .3s
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/*  EXTRA FOR BIO-PAGE  */

.text-gradient {
  background: -webkit-linear-gradient(45deg, #6366f1, #9333ea);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-control:focus,
.form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 .2rem rgba(99, 102, 241, .25);
}

#submitBtn {
  min-width: 180px;
}

/*  SIDEBAR GLASS  */
aside.glass {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, .25);
  transition: background .3s ease;
}

body.dark-mode aside.glass {
  background: rgba(30, 30, 40, .55);
  border-right: 1px solid rgba(255, 255, 255, .1);
}

/*  TEXT COLOUR  */
.sidelink {
  color: #111 !important;
  /* black on light */
  border-radius: .75rem;
  margin: .25rem 0;
  transition: all .3s ease;
}

body.dark-mode .sidelink {
  color: #fff !important;
  /* white on dark */
}

/*  ACTIVE LINK  */
.sidelink.active {
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-info)) !important;
  box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .1);
}

.sidelink:hover {
  background: rgba(0, 0, 0, .05);
}

body.dark-mode .sidelink:hover {
  background: rgba(255, 255, 255, .05);
}

/*  ICON COLOURS  */
.sidelink svg,
.sidelink i {
  fill: currentColor !important;
  /* inherit text colour */
  color: currentColor !important;
}

/*  THEME PANEL GLASS  */
.fixed-plugin .glass {
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .3);
}

body.dark-mode .fixed-plugin .glass {
  background: rgba(30, 30, 40, .7);
  border: 1px solid rgba(255, 255, 255, .1);
}

.badge-colors .badge {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .2s;
}

.badge-colors .badge:hover {
  transform: scale(1.15);
}

.table,
.table-dark,
.table-hover,
.table-striped,
.dataTable{
  color:inherit !important;   /* follows body text colour */
}