html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* =============================================
   Skip to main content link - WCAG 2.4.1
   ============================================= */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* =============================================
   Ohio Branding
   ============================================= */
.ohio-color {
    color: #a11d2a;
}

.navbar-ohio {
  background-color: #a11d2a;
}

.navbar-brand {
  font-weight: bold;
  color: #fff !important;
}

.navbar-ohio .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-ohio .nav-link:hover,
.navbar-ohio .nav-link:focus {
  color: #fff !important;
}

.btn-ohio {
  background-color: #a11d2a;
  border-color: #a11d2a;
  color: white;
}

.btn-ohio:hover,
.btn-ohio:focus {
  background-color: #7a1520;
  border-color: #7a1520;
  color: white;
}

.btn-ohio:focus {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

.card-header-ohio {
  background-color: #a11d2a;
  color: white;
}

/* =============================================
   Focus indicators - WCAG 2.4.7
   ============================================= */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

.btn:focus {
  box-shadow: none;
}

/* =============================================
   Mobile Sidebar Styles
   ============================================= */
.offcanvas-sidebar {
  width: 280px !important;
}

.offcanvas-sidebar .offcanvas-header {
  background-color: #a11d2a;
  color: white;
}

.offcanvas-sidebar .btn-close {
  filter: invert(1);
}

.offcanvas-sidebar .btn-close:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item {
  border-bottom: 1px solid #e9ecef;
}

.sidebar-nav .nav-link {
  padding: 1rem 1.25rem;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: background-color 0.15s ease-in-out;
}

.sidebar-nav .nav-link:hover {
  background-color: #f8f9fa;
}

.sidebar-nav .nav-link.active {
  background-color: #e9ecef;
  color: #a11d2a;
  font-weight: 600;
}

.sidebar-nav .nav-link:focus {
  outline: 3px solid #005fcc;
  outline-offset: -3px;
}

.sidebar-nav .nav-link i {
  font-size: 1.25rem;
  width: 1.5rem;
  text-align: center;
}

.sidebar-section-title {
  padding: 0.75rem 1.25rem 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #495057;
  font-weight: 600;
  background-color: #f8f9fa;
}

.sidebar-user-info {
  padding: 1rem 1.25rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.sidebar-user-info .user-name {
  font-weight: 700;
}

.sidebar-user-info .user-email {
  font-size: 0.875rem;
}

/* =============================================
   Card footer with equal spaced buttons
   ============================================= */
.card-footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-footer-buttons > * {
  flex: 1 1 0;
  min-width: 0;
}

.card-footer-buttons > form {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
}

.card-footer-buttons > form > .btn {
  flex: 1;
}

@media (max-width: 575.98px) {
  .card-footer-buttons > * {
    flex: 1 1 100%;
  }
}

/* =============================================
   Mobile sidebar toggle - hide on desktop
   ============================================= */
.mobile-sidebar-toggle {
  display: none;
  background-color: #a11d2a;
  border-color: #a11d2a;
  color: #fff;
}

.mobile-sidebar-toggle:hover,
.mobile-sidebar-toggle:focus {
  background-color: #7a1520;
  border-color: #7a1520;
  color: #fff;
}

@media (max-width: 991.98px) {
  .mobile-sidebar-toggle {
    display: inline-flex !important;
  }
}

/* =============================================
   High contrast text - ensure 4.5:1 ratio - WCAG 1.4.3
   ============================================= */
.text-muted {
  color: #495057 !important;
}

/* =============================================
   Ensure link underlines for non-navigation links - WCAG 1.4.1
   ============================================= */
main a:not(.btn):not(.nav-link):not(.dropdown-item) {
  text-decoration: underline;
}

main a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
  text-decoration: none;
}

/* =============================================
    When content is added, each line is saved as p tag. Bootstrap is adding a margin of 16 px below each p tag, this makes content very long.
    So overriding the margin inside content
   ============================================= */
.content-page-body > p {
    margin-bottom:0px;
}

/* Example: Turn the icon Red */
.btn-close-red {
    filter: invert(21%) sepia(100%) saturate(7414%) hue-rotate(357deg) brightness(93%) contrast(116%);
}

/* =============================================
   Page Loading Overlay
   ============================================= */
#pageLoading {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 99999;
}

#pageLoadingContent {
    display: table;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

#pageLoadingSpinner {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    text-align: center;
    font-size: larger;
    padding-top: 80px;
}