/*always the same*/
html, body {
  background: url('../assets/img/background.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: "Calibri", "Trebuchet MS", sans-serif;
  color: #000;
  font-size: 11pt;

  height: 100%;
  margin: 0;
}
.spacer {
  height: 40px;
}

.highlight {
  color: #9b111e;
}
.btn-highlight {
    background-color: #9b111e;
    color: white;
}
.btn-highlight:hover {
    background-color: #FFFFFF;
    border-color: #9b111e;
}

@media (max-width: 768px) {
  html, body {
    font-size: 14px;
  }

  .glass-box {
    padding: 1rem;
    max-width: 100%;
  }

  .badge-large {
    font-size: 36px;
  }

  .spacer {
    height: 20px;
  }
  h2 {
  font-size: 16px;
  }
  .section {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .navbar .d-flex.align-items-center {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile Menu Overlay */
/* Full-screen mobile menu */
#mobileMenuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 1050;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  pointer-events: none;
}

#mobileMenuOverlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  display: flex;
}
   #mobileMenuOverlay .menu-item {
     font-size: 22px;
     margin: 1rem 0;
     text-decoration: none;
     color: #333;
   }

   #mobileMenuOverlay .menu-item:hover {
     color: #007bff;
   }

   @media (min-width: 992px) {
     #mobileMenuOverlay {
       display: none !important;
     }
   }

   .table td,
   .table th {
     white-space: nowrap;
     vertical-align: middle;
   }

   .table .btn-sm {
     font-size: 0.75rem;
     padding: 0.25rem 0.5rem;
   }
   .navbar-brand,
   .navbar .highlight {
     text-align: left !important;
   }



/*Glassbox changes max-width*/
.glass-box {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(5px);
  max-width: 1400px;
  width: 100%;
}

/*reusable error box*/
.errorbox {
  border:2px solid #9b111e;
  background-color: #ffced3;
  border-radius: 10px;
  color: #9b111e;
  padding: 10px;
  margin-bottom: 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.mainmenuicon {
  display: inline-block;
  width: 1.5em;
  text-align: center;
}

/* Badges for dashboard and audit history */
.badge-large {
  display: inline-block;
  padding: 0.4em 0.8em;
  border-radius: 50px;
  font-weight: bold;
  font-size: 60px;
  color: #fff;
}

.badge {
  display: inline-block;
  padding: 0.4em 0.6em;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
}

.badge.grade-A, .badge-large.grade-A { background-color: #2ecc71; color: white; }
.badge.grade-B, .badge-large.grade-B { background-color: #27ae60; color: white; }
.badge.grade-C, .badge-large.grade-C { background-color: #f1c40f; color: black; }
.badge.grade-D, .badge-large.grade-D { background-color: #e67e22; color: white; }
.badge.grade-E, .badge-large.grade-E { background-color: #e74c3c; color: white; }
.badge.grade-F, .badge-large.grade-F { background-color: #c0392b; color: white; }
