:root{
  --primary:#2e8fff;
  --primary-hover:#1d78ea;
  --secondary:#67d4ff;
  --card-glass:linear-gradient(180deg, rgba(17,33,58,.78), rgba(10,22,40,.72));
  --card-glass-light:linear-gradient(180deg, rgba(255,255,255,.74), rgba(247,250,255,.64));
  --glass-border:rgba(148,193,255,.18);
  --glass-shadow:0 18px 44px rgba(2,8,20,.22);
}

html{background:#081321}
body,
body.dark-mode{
  background:
    radial-gradient(circle at 12% 8%, rgba(75,153,255,.16), transparent 26%),
    radial-gradient(circle at 88% 0%, rgba(77,222,255,.10), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(84,124,255,.08), transparent 26%),
    #07111f !important;
}

body.light-mode,
body.light-mode.dark-mode{
  background:
    radial-gradient(circle at 12% 8%, rgba(115,177,255,.15), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(115,232,255,.10), transparent 24%),
    linear-gradient(180deg,#edf3fb,#f5f8fd) !important;
}

.topbar{
  background:linear-gradient(180deg, rgba(8,18,34,.82), rgba(7,17,31,.68)) !important;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
body.light-mode .topbar{
  background:linear-gradient(180deg, rgba(255,255,255,.82), rgba(248,251,255,.72)) !important;
}

.glass,
.card,
.stat-card,
.modal-content,
.reference-filter-bar,
.reference-table-card,
.bulk-action-panel,
.reference-filter-card,
.configuration-menu-card,
.configuration-content-card,
.gateway-card,
.collector-mini-summary>div,
#fw110Panel,
.av-card,
.av-tabs,
#av-owner-box,
#av-message,
.av-location,
fieldset{
  background:var(--card-glass) !important;
  border:1px solid var(--glass-border) !important;
  box-shadow:var(--glass-shadow) !important;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
body.light-mode .glass,
body.light-mode .card,
body.light-mode .stat-card,
body.light-mode .modal-content,
body.light-mode .reference-filter-bar,
body.light-mode .reference-table-card,
body.light-mode .bulk-action-panel,
body.light-mode .reference-filter-card,
body.light-mode .configuration-menu-card,
body.light-mode .configuration-content-card,
body.light-mode .gateway-card,
body.light-mode .collector-mini-summary>div,
body.light-mode #fw110Panel,
body.light-mode .av-card,
body.light-mode .av-tabs,
body.light-mode #av-owner-box,
body.light-mode #av-message,
body.light-mode .av-location,
body.light-mode fieldset{
  background:var(--card-glass-light) !important;
  border:1px solid rgba(177,202,235,.48) !important;
  box-shadow:0 18px 40px rgba(41,73,112,.10) !important;
}

.card-header,
.modal-header,
.bulk-action-head,
.reference-table-toolbar{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)) !important;
  border-bottom:1px solid rgba(150,191,242,.13) !important;
}
body.light-mode .card-header,
body.light-mode .modal-header,
body.light-mode .bulk-action-head,
body.light-mode .reference-table-toolbar{
  background:linear-gradient(180deg, rgba(255,255,255,.62), rgba(248,251,255,.35)) !important;
  border-bottom:1px solid rgba(177,202,235,.45) !important;
}

.stat-card,
.card,
.av-card{transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease}
.stat-card:hover,
.card:hover,
.av-card:hover{
  transform:translateY(-2px);
  box-shadow:0 24px 52px rgba(4,12,28,.28) !important;
  border-color:rgba(104,186,255,.28) !important;
}
body.light-mode .stat-card:hover,
body.light-mode .card:hover,
body.light-mode .av-card:hover{
  box-shadow:0 24px 52px rgba(29,60,96,.12) !important;
}

.form-control,
input,
select,
textarea,
.av-tabs button,
button,
.btn,
.nav-link{
  border-radius:12px;
}

.form-control,
input,
select,
textarea{
  background:rgba(255,255,255,.06) !important;
  border:1px solid rgba(147,192,243,.17) !important;
  color:inherit !important;
}
body.light-mode .form-control,
body.light-mode input,
body.light-mode select,
body.light-mode textarea{
  background:rgba(255,255,255,.68) !important;
  border:1px solid rgba(177,202,235,.62) !important;
}
.form-control:focus,
input:focus,
select:focus,
textarea:focus{
  border-color:rgba(92,173,255,.52) !important;
  box-shadow:0 0 0 3px rgba(47,145,255,.12) !important;
}

.btn-primary,
.av-primary,
button.av-primary,
.template-pages button.active{
  background:linear-gradient(135deg, #2f92ff, #53c6ff) !important;
  border-color:rgba(74,174,255,.45) !important;
  color:#fff !important;
  box-shadow:0 12px 28px rgba(47,145,255,.22);
}

.nav-link.active,
.nav-link:hover,
.av-tabs button[aria-selected="true"]{
  background:linear-gradient(135deg, rgba(47,145,255,.26), rgba(83,198,255,.14)) !important;
  border-color:rgba(87,176,255,.28) !important;
}

.table thead th,
.table-responsive thead th,
th,
.sms-reference-exact .sms-template-table thead th{
  background:linear-gradient(180deg, rgba(29,61,96,.92), rgba(21,45,72,.92)) !important;
  color:#edf6ff !important;
}
body.light-mode .table thead th,
body.light-mode .table-responsive thead th,
body.light-mode th{
  background:linear-gradient(180deg, rgba(234,242,252,.94), rgba(225,236,248,.94)) !important;
  color:#17324f !important;
}

/* Attendance standalone page */
body:not(.dark-mode) .av-wrap{color:#18324e}
.av-wrap header small{color:#63b7ff}
.av-tabs button{border:1px solid transparent}
.av-tabs button[aria-selected="true"]{color:#fff}
.av-location{background:rgba(255,255,255,.04) !important}
body.light-mode .av-location{background:rgba(255,255,255,.48) !important}
#av-message:not(:empty){background:linear-gradient(180deg, rgba(44,102,191,.22), rgba(64,139,255,.14)) !important;color:inherit;border:1px solid rgba(115,175,255,.32) !important}
#av-message.error{background:linear-gradient(180deg, rgba(255,109,109,.18), rgba(255,146,146,.10)) !important;border-color:rgba(255,142,142,.32) !important;color:#ffd5d5 !important}
body.light-mode #av-message.error{color:#8a2525 !important}
footer{color:#8ea7c2}
body.light-mode footer{color:#59708a}
