
:root { --nav-h: 70px; }

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}
body {
  padding-top: var(--nav-h, 70px);
}
.navbar {
  background-color: #001f4d; /* Navy/Dark Blue */
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: white !important;
}

.nav-item a {
  color: white !important;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}

.nav-item a:hover {
  color: #ccc !important;
}

.nav-item .icon {
  font-size: 1.5rem;
}
.bg{
      position:fixed; inset:0; z-index:-2;
      background:
        radial-gradient(1200px 800px at 85% 20%, rgba(127,180,255,.28), transparent 55%),
        radial-gradient(1100px 700px at 10% 90%, rgba(167,211,255,.18), transparent 60%),
        linear-gradient(180deg, #05102a 0%, #070f21 55%, #050b16 100%);
    }

.navbar-text {
  color: white;
  font-family: 'Poppins', sans-serif;
  margin-right: 1rem;
}
.left-pane {
    background-color: #f0f4ff;
    width: 250px;
    position: fixed;
    top: var(--nav-h);
    bottom: 0;
    left: 0;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}
.left-pane.collapsed {
    transform: translateX(-100%);
}
.left-pane h5 {
    padding: 15px 20px;
    color: #001f4d;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #dde5ff;
}
.left-pane ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.left-pane ul li {
    padding: 10px 20px;
}
.left-pane ul li a {
    text-decoration: none;
    color: #001f4d;
    font-size: 0.95rem;
    display: block;
}
.left-pane ul li a:hover {
    background-color: #dde5ff;
    border-radius: 5px;
}
/* Tools left-pane tabs */
.tools-tabs{
  display:flex;
  gap:6px;
  margin-top: 6px;
}

.tools-tab{
  flex:1;
  text-align:center;
  padding:6px 8px;
  border-radius:10px;
  text-decoration:none;
  font-size:0.9rem;
  background: rgba(255,255,255,0.08);
  color:#fff;
  border: 1px solid rgba(255,255,255,0.08);
}

.tools-tab:hover{
  background: rgba(255,255,255,0.12);
  color:#fff;
}

.tools-tab.active{
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.16);
  font-weight:600;
}

/* Reusable link-card (used on tools.php + import.php) */
.sd-linkcard{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: transform 120ms ease, box-shadow 120ms ease;
  height: 100%;
}

.sd-linkcard:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.sd-linkcard-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(13,110,253,0.10); /* Bootstrap primary tint */
  flex: 0 0 auto;
}

.sd-linkcard-title{
  font-weight: 600;
  color: #1f2a37;
  margin-bottom: 2px;
}

.sd-linkcard-sub{
  color:#6c757d;
  font-size:0.92rem;
  line-height:1.25rem;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
}
.main-content.collapsed {
    margin-left: 0;
}

.floating-action {
    position: fixed;
    top: calc(var(--nav-h) + 20px);
    right: 20px;
    background-color: #000;
    color: #007bff;
    font-size: 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1050;
}
.btn-circle {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.white-large {
    color: white;
    font-size: 1.5rem;
}
.fixed-left {
    position: fixed;
    left: 15px;
    z-index: 1050;
}

@media (max-width: 768px) {
    .left-pane {
        transform: translateX(-100%);
    }
    .left-pane.collapsed {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .main-content.collapsed {
        margin-left: 250px;
    }
}
.card-number {
  font-size: 2rem;
  font-weight: 500;
}

.card.h-100 {
  height: 100%;
}
.totals-row th,
.totals-row td {
  font-weight: bold;
}
.staff-filter {
  margin-bottom: 1rem;
}

#calendar {
  max-width: none;
  margin: 0 auto;
}
.systems-tab h4 {
  margin-bottom: 1rem;
}
.systems-tab table td, .systems-tab table th {
  vertical-align: middle;
}


/* Legacy .btn-login styling preserved for non-login pages (if used anywhere else) */
body:not(.login-body) .btn-login {
  margin-top: 1rem;
  width: 100%;
  padding: 0.75rem;
  background-color: #001f4d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
body:not(.login-body) .btn-login:hover {
  background-color: #003380;
}
/* =============================
   Login page (v2) — dark/glass aesthetic
   Scoped to login only (won't affect the rest of the app)
   ============================= */

html, body.login-body {
  overflow-x: hidden; /* prevents rotated grid causing horizontal scroll */
}

body.login-body {
  --navy: #001f4d;
  --navy-2: #041b3a;
  --ink: #0b1020;
  --line: rgba(255,255,255,.10);
  --accent: #7fb4ff;
  --accent-2: #a7d3ff;
  --shadow: 0 20px 60px rgba(0,0,0,.25);
  --radius: 18px;

  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding-top: 0 !important;   /* override global navbar spacing */
  min-height: 100dvh;
  display: block;              /* override any older flex-based login styling */
  background: #0b1226;
  color: #fff;
}

/* Fixed background layers */
body.login-body .auth-bg,
body.login-body .auth-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body.login-body .auth-bg {
  background:
    radial-gradient(1200px 800px at 85% 20%, rgba(127,180,255,.28), transparent 55%),
    radial-gradient(1100px 700px at 10% 90%, rgba(167,211,255,.18), transparent 60%),
    linear-gradient(180deg, #05102a 0%, #070f21 55%, #050b16 100%);
}

body.login-body .auth-grid {
  z-index: -1;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: rotate(-8deg);
  transform-origin: center;
  filter: blur(.2px);
}

/* Centering shell (mobile-first) */
body.login-body .auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

body.login-body .auth-card {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

body.login-body .auth-card:before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(600px 300px at 20% 0%, rgba(127,180,255,.22), transparent 60%);
  z-index: 0;
}

body.login-body .auth-card > * { position: relative; z-index: 1; }

body.login-body .auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

body.login-body .auth-logo {
  height: 44px;
  width: auto;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.login-body .auth-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

body.login-body .auth-brandtext { min-width: 0; }

body.login-body .auth-brandtext strong {
  display: block;
  font-size: 16px;
  letter-spacing: .2px;
}

body.login-body .auth-brandtext span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

body.login-body .auth-title {
  margin: 10px 0 6px;
  font-size: 24px;
  letter-spacing: -0.2px;
}

body.login-body .auth-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}

body.login-body .auth-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .28);
  color: rgba(255,255,255,.92);
  font-size: 13px;
}

body.login-body .auth-form {
  display: grid;
  gap: 12px;
}

body.login-body .auth-field label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  margin-bottom: 6px;
}

body.login-body .auth-field input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

body.login-body .auth-field input::placeholder {
  color: rgba(255,255,255,.55);
}

body.login-body .auth-field input:focus {
  border-color: rgba(167,211,255,.55);
  box-shadow: 0 0 0 4px rgba(127,180,255,.15);
}

body.login-body .btn-login {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, rgba(127,180,255,.95), rgba(167,211,255,.70));
  color: #06102a;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}

body.login-body .btn-login:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

body.login-body .auth-foot {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

@media (max-width: 380px) {
  body.login-body .auth-card { padding: 18px; }
  body.login-body .auth-title { font-size: 22px; }
}
