﻿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;
}

.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;
}

/* Add this to the bottom of site.css for global table sorting styles */
th.sortable a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding-right: 18px;
}
th.sortable a.sorted-asc::after {
    content: "▲";
    position: absolute;
    right: 4px;
    font-size: 0.8em;
    color: #007bff;
}
th.sortable a.sorted-desc::after {
    content: "▼";
    position: absolute;
    right: 4px;
    font-size: 0.8em;
    color: #007bff;
}
th.sortable a:hover {
    text-decoration: underline;
}

/* HTMX loading indicator */
.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-indicator {
    display: none;
}

/* Subtle flash on update */
[hx-trigger]:not([hx-trigger=""]) {
    transition: background-color 0.3s ease;
}

.htmx-swapping {
    opacity: 0.5;
    transition: opacity 200ms ease-in;
}