html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Global Loader Styles */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.loader-content {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

/* Notification dropdown: highlight MAUI upload events so they stand out
   from routine connect/disconnect noise. */
.notification-item.notification-upload {
    background-color: #ecfdf5 !important;
    border-left: 3px solid #22c55e;
}

/* Notification dropdown items are flex children (.d-flex icon + text) with no
   width constraint - a flex item's default min-width is "auto", so it refuses
   to shrink below its longest unwrapped line and forces the whole 360px
   dropdown to overflow sideways instead of wrapping. min-width: 0 lets it
   actually shrink and wrap within the panel. Also compressed: tighter padding/
   line-height (no line-clamp - the message must show in full, not truncated
   with "..."). */
.notification-item {
    white-space: normal;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.notification-item .notification-body {
    flex: 1 1 auto;
    min-width: 0;
}

.notification-item .notification-title,
.notification-item .notification-message {
    overflow-wrap: anywhere;
}

.notification-item .notification-title {
    line-height: 1.25;
}

.notification-item .notification-message {
    line-height: 1.3;
    margin-top: .1rem;
}

.notification-item .notification-meta {
    margin-top: .15rem;
}