:root{
  --hc-bg:#0e1420;
  --hc-surface:#121a2a;
  --hc-accent-1:#0f5bd5;
  --hc-accent-2:#0c2c8e;
  --hc-text:#e6ebff;
  --hc-muted:#9fb0d0;
  --hc-ring:#8ab4ff;
  --hc-border:#1b2740;
  --hc-width:300px;
  --hc-grad-1:#0d3d62;
  --hc-grad-2:#0d3d62;
  --hc-grad-mid:#13529a;
  --hc-offcanvas-width:100vw;
  --safe-top: env(safe-area-inset-top, 0px);
  --hc-header-height: 64px;
}

body{
  padding-top: var(--safe-top);
  margin: 0;
}

@media (min-width:1024px){
  .hc-body:not(.hc-hidden){
    --hc-offcanvas-width:calc(100vw - var(--hc-width));
  }
}

.hc-header{
  display:flex;align-items:center;gap:.75rem;
  padding:.5rem 1rem;
  background:#f4f6f8;position:sticky;top:var(--safe-top);z-index:1050;
  border-bottom:none;
  position:relative;
  min-height:var(--hc-header-height);
}
.hc-header .spacer{width:40px;flex-shrink:0}

.hc-page-title{
  flex:1;
  text-align:center;
  font-family:'Inter',sans-serif;
  font-weight:900;
  text-transform:uppercase;
  color:#1f2937;
  margin:.25rem auto;
  position:relative;
  max-width:1100px;
  padding:.25rem 1.25rem;
  white-space:normal;
  font-size:clamp(1rem,3.8vw,1.75rem);
  letter-spacing:.1px;
  line-height:1.2;
}
.hc-page-title::after{
  content:"";
  display:block;
  width:60px;
  height:3px;
  background:var(--hc-grad-1);
  margin:.3rem auto 0;
  border-radius:2px;
}

@media (max-width:600px){
  .hc-page-title{font-size:clamp(1rem,5vw,1.25rem);}
}

.hc-skool-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:calc(100% - 1.5rem);
  margin:0 .75rem;
  padding:.75rem;
  background:#fff;
  border:1px solid #ccc;
  border-radius:.5rem;
  transition:background .2s,border-color .2s;
}
.hc-skool-btn:hover{
  background:#f8f8f8;
  color:#000;
  border-color:transparent;
}

.hc-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border:1px solid #ddd;border-radius:.5rem;
  background:#fff;cursor:pointer;transition:background .2s ease,border-color .2s ease, box-shadow .2s ease;
}
.hc-toggle:hover,.hc-toggle:focus-visible{
  background:linear-gradient(135deg,var(--hc-grad-1),var(--hc-grad-2));
  border-color:transparent;box-shadow:0 0 0 2px rgba(19,82,154,.2);
}
.hc-toggle:hover .hc-icon,.hc-toggle:focus-visible .hc-icon{ color:#fff; }
.hc-toggle:focus{outline:2px solid var(--hc-ring);outline-offset:2px;}
.hc-icon{width:20px;height:20px;display:block;fill:currentColor;color:inherit}
.hc-icon--mobile{display:none}

.hc-header-close{
  position:absolute;
  right:1rem;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:none;
  color:#000;
  font-size:3rem;
  line-height:1;
  cursor:pointer;
  text-decoration:none;
  padding:0;
}
.hc-header-close:hover,
.hc-header-close:focus,
.hc-header-close:active,
.hc-header-close:focus-visible,
.hc-header-close:visited{
  background:none;
  border:none;
  box-shadow:none;
  color:#000;
  text-decoration:none;
}
.hc-header-close:focus{outline:2px solid var(--hc-ring);outline-offset:2px;text-decoration:none;}

.hc-close{
  display:none;
  margin-left:auto;
  width:40px;height:40px;border:1px solid var(--hc-border);border-radius:.5rem;
  background:transparent;color:var(--hc-text);cursor:pointer;
  align-items:center;justify-content:center;
}
.hc-close:hover,.hc-close:focus-visible{ background:rgba(255,255,255,.06); }
.hc-close:focus{ outline:2px solid var(--hc-ring); outline-offset:2px; }

.hc-visually-hidden{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.hc-sidebar{
  position:fixed;left:0;top:0;bottom:0;background:var(--hc-bg);color:var(--hc-text);
  width:var(--hc-width);display:flex;flex-direction:column;
  border-right:1px solid var(--hc-border);overflow:hidden;z-index:1060;
  transition:left .2s ease;
  box-sizing:border-box;font-size:16px;
  padding-top:var(--safe-top);
}

.hc-brand{
  display:flex;align-items:center;gap:.6rem;padding:1rem .875rem;
  background:linear-gradient(90deg,var(--hc-surface),transparent);
  border-bottom:1px solid var(--hc-border);position:sticky;top:0;z-index:1;
}
.hc-logo{width:40px;height:40px;border-radius:8px;display:block}
.hc-wordmark{
  font-weight:800;letter-spacing:.06em;font-size:16px;color:var(--hc-text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.hc-close{
  background:none;border:0;color:var(--hc-text);font-size:1.5rem;line-height:1;
  cursor:pointer;margin-left:auto;display:none;
}

.hc-nav{padding:.25rem;flex:1 1 auto;overflow-y:auto;}       /* <-- makes bottom block stick to bottom */
.hc-nav ul{margin:.15rem 0 .25rem .25rem;padding-left:0}
.hc-nav li{list-style:none}
.hc-nav a{
  display:block;padding:clamp(.25rem,.3rem + .2vh,.4rem) .75rem;margin:clamp(.05rem,.05rem + .1vh,.1rem) 0;border-radius:.4rem;
  color:var(--hc-text);text-decoration:none;font-size:15px;font-weight:600;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:1;
}
.hc-nav a:hover{background:rgba(255,255,255,.06)}

.hc-settings{padding:.75rem;border-top:1px solid var(--hc-border);} /* removed margin-top:auto */
.hc-settings-row{
  display:flex;align-items:center;gap:.6rem;
  padding:.25rem .25rem .5rem .25rem;
}
.hc-settings-row--menu{
  margin:.25rem .25rem .45rem .25rem;
}
.hc-settings-row--menu .hc-switch{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.25rem .25rem;
  color:var(--hc-muted);
}
.hc-admin-icon-group{
  display:flex;
  align-items:center;
  gap:.6rem;
}
.hc-admin-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:.6rem;color:var(--hc-text);text-decoration:none;
  background:#0b1020;border:1px solid var(--hc-border);
  transition:background .2s ease,border-color .2s ease,color .2s ease, box-shadow .2s ease;
}
.hc-admin-icon i{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  font-size:1.15rem;
  line-height:1;
  font-style:normal;
}
.hc-admin-icon i::before{
  line-height:1;
}
.hc-admin-icon:hover{
  background:linear-gradient(135deg,var(--hc-grad-1),var(--hc-grad-mid));
  color:#fff;border-color:transparent;box-shadow:0 0 0 2px #13529a40;
}

.hc-settings label{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.25rem .25rem;color:var(--hc-muted)}

.hc-switch{margin-left:auto;}

.hc-switch input[type="checkbox"]{
  -webkit-appearance:none;appearance:none;cursor:pointer;width:46px;height:26px;border-radius:999px;
  border:1px solid var(--hc-border);background:#1b2740;position:relative;transition:background .2s,border-color .2s,box-shadow .2s;outline:none;
}
.hc-switch input[type="checkbox"]::after{
  content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;
  transition:transform .2s, background .2s, box-shadow .2s;box-shadow:0 1px 2px rgba(0,0,0,.25);
}
.hc-switch input[type="checkbox"]:checked{
  background:linear-gradient(135deg,var(--hc-grad-1),var(--hc-grad-mid));
  border-color:transparent;box-shadow:0 0 0 2px rgba(19,82,154,.25);
}
.hc-switch input[type="checkbox"]:checked::after{ transform:translateX(20px); }

.hc-select-wrapper{ position:relative; width:100%; }
.hc-select{
  width:100%; appearance:none; background:#0b1020; color:var(--hc-text);
  border:1px solid var(--hc-border); border-radius:.6rem; padding:.55rem 2.25rem .55rem .75rem;
  line-height:1.2; transition:box-shadow .2s,border-color .2s, background .2s;
}
.hc-select:focus{ outline:none; box-shadow:0 0 0 2px rgba(19,82,154,.35); border-color:transparent; background:#0f1528; }
.hc-select-wrapper::after{
  content:""; position:absolute; right:.7rem; top:50%; transform:translateY(-50%);
  width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--hc-muted); pointer-events:none;
}

.hc-setting-link{
  display:block;margin:.35rem .25rem;padding:.5rem .6rem;border-radius:.5rem;
  background:#fff;color:#1f2937;text-decoration:none;border:1px solid #ddd;
}
.hc-setting-link:hover{ background:#f4f6f8; }

.hc-bottom{ margin-top:auto; }
.hc-cta{ padding:.75rem; border-top:1px solid var(--hc-border); }

.hc-profile{padding:.75rem;border-top:1px solid var(--hc-border);display:flex;flex-direction:column;gap:.5rem}
.hc-profile-info{
  display:flex;align-items:center;gap:.6rem;color:var(--hc-text);
  padding:.35rem .5rem;border-radius:.75rem;transition:background .2s ease,box-shadow .2s ease;
}
.hc-profile-info:hover,
.hc-profile-info:focus-within{
  background:rgba(255,255,255,.06);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.hc-profile-info:focus-within{
  box-shadow:0 0 0 2px rgba(19,82,154,.35), inset 0 0 0 1px rgba(255,255,255,.08);
}
.hc-profile-link{display:flex;flex-direction:column;gap:.15rem;text-decoration:none;color:inherit;flex:1;}
.hc-profile-link:focus-visible,.hc-profile-link:hover{text-decoration:none}
.hc-profile-name{font-weight:600;font-size:16px}
.hc-profile-email{font-size:14px;color:var(--hc-muted)}

.hc-logout-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;border-radius:.5rem;color:var(--hc-muted);text-decoration:none;
  background:transparent;border:1px solid transparent;transition:background .2s,border-color .2s,color .2s;
}
.hc-logout-icon:hover{ color:#fff; border-color:rgba(255,255,255,.12); background:rgba(255,255,255,.06); }

.hc-scrim{ position:fixed;inset:0;background:#000;opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:1055; }

@media (max-width:1023px){
  .hc-sidebar{ left:-100vw; width:100vw; }
  .hc-sidebar.hc-open{ left:0; }
  .hc-sidebar.hc-open + .hc-scrim{ opacity:.5; pointer-events:auto; }
  .hc-body{ padding-left:0; }
  .hc-close{display:block;}
  .hc-nav a{ font-size:1.25rem; }
}

@media (max-width:600px){
  .hc-toggle{width:36px;height:36px;padding:0;}
  .hc-icon--desktop{display:none;}
  .hc-icon--mobile{display:block;width:18px;height:18px;}
}
@media (min-width:1024px){
  .hc-body.hc-body--has-sidebar{ padding-left:0; }
  .hc-body.hc-hidden{ padding-left:0; }
  .layout.has-sidebar{ grid-template-columns: minmax(0, var(--hc-width, 340px)) 1fr; }
  .layout.has-sidebar .layout-main{
    grid-column:2;
    margin-left: var(--hc-width, 340px);
  }
  .hc-body.hc-hidden .layout.has-sidebar .layout-main{
    grid-column:1;
    margin-left:0;
  }
  .hc-body.hc-hidden .layout.has-sidebar{
    grid-template-columns: 1fr;
  }
  .hc-sidebar{ left:0; }
  .hc-sidebar.hc-hidden{ left: calc(var(--hc-width) * -1); }
  .hc-sidebar.hc-open + .hc-scrim{ opacity:0; pointer-events:none; }
  .hc-close{ display:none; }
}

.layout{
  display:grid;
  grid-template-columns:1fr;
  min-height:100%;
}

.layout-main{
  display:flex;
  flex-direction:column;
  min-height:100%;
  grid-column:1;
}

.layout.has-sidebar .layout-main{
  margin-left:0;
}

.layout.no-sidebar .layout-main{
  margin-left:0;
}

.layout .content{
  min-width:0;
}

.sidebar-toggle{display:inline-flex;}

.tooltip.hc-tooltip .tooltip-inner{
  background:linear-gradient(135deg,#0d1324,#0f1528);
  color:#e6ebff; border:1px solid #22314f; border-radius:.6rem; padding:.45rem .6rem;
  box-shadow:0 8px 24px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.03);
  font-weight:600; font-size:.85rem;
}
.tooltip.hc-tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.hc-tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.hc-tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.hc-tooltip.bs-tooltip-end .tooltip-arrow::before{
  border-top-color:#0f1528;border-bottom-color:#0f1528;border-left-color:#0f1528;border-right-color:#0f1528;
}

/* Ensure Bootstrap modals appear above the sidebar */
.modal {
  z-index: 1070;
}

.modal-backdrop {
  z-index: 1065;
}

/* Reusable save button style for sidebar forms */
.save-btn{
  border:1px solid #d1d5db;
  background:#fff;
  padding:.35rem .7rem;
  border-radius:8px;
  font-weight:700;
  cursor:pointer;
}
.save-btn:hover{background:#f3f4f6;}

