:root {
  --font-family: 'Ubuntu', sans-serif;
  --logo-navy: #0A2972;
  --logo-blue: #2C5B85;
  --logo-light-blue: #4CA1D7;
  --logo-gold: #E69203;
  --logo-amber: #C87A00;
  --logo-red: #C1272D;
  --logo-grey: #6C7A89;

  --primary-dark: #0A2972;
  --primary-mid: #2C5B85;
  --primary-light: #4CA1D7;
  --accent: #E69203;
  --accent-hover: #BF7A02;
  --accent-bg: #fff9e6;

  --bg-gradient: linear-gradient(135deg, #0A2972 0%, #2C5B85 50%, #4CA1D7 100%);
  --header-shadow: 0 4px 20px rgba(0,0,0,0.15);
  --btn-radius: 8px;
  --btn-shadow: 0 2px 6px rgba(0,0,0,0.2);
  --border-default: #dee2e6;
  --border-edit: #f0c040;
}

/* ---- Select2 Theme ---- */

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
  background-color: #D6E4F0 !important;
  border-color: #A8C8E8 !important;
  color: #2C5B85 !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
  font-size: 0.875rem !important;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
  color: #2C5B85 !important;
  font-weight: bold !important;
  margin-right: 4px !important;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #2C5B85 !important;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-search__field {
  background-color: #fff !important;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-search__field:focus {
  background-color: #fff !important;
}

.select2-container--bootstrap4 .select2-results__option--highlighted {
  background-color: #D6E4F0 !important;
  color: #2C5B85 !important;
}

.select2-container--bootstrap4 .select2-results__option--selected {
  background-color: #B8D0E8 !important;
  color: #2C5B85 !important;
}

select.form-control {
  color: #212529;
  font-weight: 400;
}

/* ---- Card Templates ---- */

.card {
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(10, 41, 114, 0.08) !important;
  transition: all 0.25s ease !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(10, 41, 114, 0.12) !important;
  transform: translateY(-2px) !important;
}

.card-body {
  padding: 1.25rem !important;
}

.card-title {
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
}

/* Left accent borders */
.card-accent {
  border-left: 4px solid var(--accent) !important;
}

.card-primary-border {
  border-left: 4px solid var(--primary-mid) !important;
}

.card-danger-border {
  border-left: 4px solid var(--logo-red) !important;
}

.card-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #f0f5fa 100%) !important;
}

/* Gradient card header */
.card-header-custom {
  background: var(--bg-gradient) !important;
  color: #fff !important;
  padding: 0.75rem 1.25rem !important;
  border-bottom: none !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  border-radius: 12px 12px 0 0 !important;
  margin: 0 !important;
}

/* Search result card */
.card-search .card-athlete-name {
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
}

.card-search .card-athlete-dob {
  color: var(--logo-grey) !important;
  font-size: 0.85rem !important;
}

/* Data record card */
.card-data .card-datapoint {
  color: var(--primary-dark) !important;
  font-weight: 600 !important;
}

.card-data .card-value {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
}

.card-data .card-timestamp {
  color: var(--logo-grey) !important;
  font-size: 0.75rem !important;
}

/* Org card */
.card-org .card-org-name {
  color: var(--primary-dark) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

.card-org .card-org-meta {
  color: var(--logo-grey) !important;
  font-size: 0.8rem !important;
}

/* Comparison card */
.card-compare {
  border: 1px solid rgba(44, 91, 133, 0.15) !important;
}

.card-compare .card-title {
  border-bottom: 2px solid var(--accent) !important;
  padding-bottom: 0.5rem !important;
  margin-bottom: 1rem !important;
  text-align: center !important;
}

/* Duplicate review card */
.card-duplicate .card-duplicate-label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--logo-grey) !important;
}

/* ---- Header ---- */

html {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overscroll-behavior-x: none;
  font-family: var(--font-family);
}

.container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0;
  width: 100%;
}

.header-inner {
  min-height: 190px;
}

.site-header {
  padding: 20px;
  background: var(--bg-gradient);
  border-radius: 0;
  box-shadow: var(--header-shadow);
  margin: 0;
  width: 100%;
  overflow: hidden;
}

.site-header .nav-label {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.site-header .username-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.site-header .nav-column {
  min-width: 130px;
}

.content-wrapper {
  padding: 15px 15px 0;
}

@media (min-width: 768px) {
  .content-wrapper {
    padding: 20px 40px 40px;
  }
}

.form-group {
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 5px;
}

.org-section {
  padding-left: 30px;
  padding-right: 30px;
}

@media (max-width: 767.98px) {
  .form-group {
    padding-left: 0;
    padding-right: 0;
  }
  .org-section {
    padding-left: 0;
    padding-right: 0;
  }
  html {
    overflow-x: hidden;
    width: 100%;
  }
  body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    touch-action: pan-y;
  }
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .container-fluid {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  .site-header {
    padding: 12px 0;
  }
  .header-inner {
    min-height: auto;
  }
  .site-header .nav-column {
    min-width: auto;
    flex: 1;
  }
  .site-header .btn {
    padding: 0.7rem 0.7rem !important;
    font-size: 0.85rem;
  }
  .site-header .nav-label {
    font-size: 0.55rem;
  }
  .site-header .flex-grow-1 {
    justify-content: space-around !important;
  }
  .site-header .flex-grow-1 > * {
    flex: 1;
    text-align: center;
  }
}

/* ---- Header Logos ---- */

.logo-img-side {
  max-height: 135px;
  width: auto;
  max-width: 100%;
}

.logo-img-massey {
  max-height: 140px;
  width: auto;
  max-width: 100%;
}

.logo-massey {
  max-height: 155px;
  max-width: 100%;
}

.header-no-link-inner {
  min-height: 190px;
}



@media (max-width: 767.98px) {
  .header-no-link-inner {
    min-height: 140px;
  }
  .logo-img-side {
    max-height: 130px;
  }
  .logo-img-massey {
    max-height: 127px;
  }
  .logo-massey {
    max-height: 150px;
  }
}

@media (max-width: 575.98px) {
  .header-no-link-inner {
    min-height: auto;
  }
  .logo-img-side {
    max-height: 91px;
    max-width: 100%;
  }
  .logo-img-massey {
    max-height: 88px;
    max-width: 100%;
  }
  .logo-massey {
    max-height: 107px !important;
    max-width: 100%;
  }
}

/* ---- Global Buttons ---- */

.btn {
  border-radius: var(--btn-radius) !important;
  box-shadow: var(--btn-shadow) !important;
  border: none !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  text-transform: none !important;
  letter-spacing: 0.3px !important;
  padding: 0.5rem 1.2rem !important;
}

.btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.btn:active {
  transform: translateY(0) !important;
}

/* Forward actions — Register, Search, Login, Save, Add, Filter, etc. */
.btn-primary {
  background: #2C5B85 !important;
  border: 1px solid #3D6F9E !important;
  color: #fff !important;
}

.btn-primary:hover {
  background: #1D3E5E !important;
  color: #fff !important;
}

/* Link/Associate actions — Same Athlete - Add Org, Tag */
.btn-success {
  background: #E69203 !important;
  border: 1px solid #F0A824 !important;
  color: #fff !important;
}

.btn-success:hover {
  background: #BF7A02 !important;
  color: #fff !important;
}

/* Delete actions */
.btn-danger {
  background: #C1272D !important;
  border: 1px solid #D83A40 !important;
  color: #fff !important;
}

.btn-danger:hover {
  background: #8F1C21 !important;
  color: #fff !important;
}

/* Upgrade / Duplicate-alert warning */
.btn-warning {
  background: #C87A00 !important;
  border: 1px solid #E08E00 !important;
  color: #fff !important;
}

.btn-warning:hover {
  background: #A36100 !important;
  color: #fff !important;
}

/* Backward actions — Back, Cancel */
.btn-secondary {
  background: #6C7A89 !important;
  border: 1px solid #7F8D9C !important;
  color: #fff !important;
}

.btn-secondary:hover {
  background: #515E6B !important;
  color: #fff !important;
}

/* Edit actions — outline style */
.btn-outline-primary {
  background: transparent !important;
  border: 1px solid #4CA1D7 !important;
  color: #4CA1D7 !important;
}

.btn-outline-primary:hover {
  background: #4CA1D7 !important;
  border-color: #4CA1D7 !important;
  color: #fff !important;
}

/* Secondary outline — Edit athlete profile, Back to Search */
.btn-outline-secondary {
  background: transparent !important;
  border: 1px solid #6C7A89 !important;
  color: #6C7A89 !important;
}

.btn-outline-secondary:hover {
  background: #6C7A89 !important;
  border-color: #6C7A89 !important;
  color: #fff !important;
}

/* Danger outline — Delete (lower prominence) */
.btn-outline-danger {
  background: transparent !important;
  border: 1px solid #C1272D !important;
  color: #C1272D !important;
}

.btn-outline-danger:hover {
  background: #C1272D !important;
  border-color: #C1272D !important;
  color: #fff !important;
}

.btn-link {
  color: #4CA1D7 !important;
}

.btn-link:hover {
  color: #2C5B85 !important;
  text-decoration: underline !important;
}

.btn-logout {
  background: rgba(193, 39, 45, 0.25) !important;
  border: 1px solid rgba(193, 39, 45, 0.4) !important;
  color: #fff !important;
}

.btn-logout:hover {
  background: rgba(193, 39, 45, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* ---- Badges ---- */

/* Org badges in header */
.badge-light {
  background-color: #4CA1D7 !important;
  color: #fff !important;
  vertical-align: text-bottom !important;
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
}

/* Info labels — Org/ID tags, gender */
.badge-secondary {
  background-color: #6C7A89 !important;
  color: #fff !important;
}

/* Status — Active */
.badge-success {
  background-color: #E69203 !important;
  color: #fff !important;
}

/* ---- Other ---- */

.logo-gallery {
  max-width: 150px;
  height: auto;
}



h1, h2, h4 {
  text-align: center;
}

p {
  margin-top: 20px;
}

.vertical-button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 200px;
    padding: 10px;
}

 .results-table {
     border-collapse: separate ;
     border-spacing: 20px ;
 }


.results-table th, .results-table td {
    padding: 0px 0px !important;
    text-align: left;
    vertical-align: middle;
}

.button-container {
display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
gap: 100px;
}

.flex-container {
  display: flex;
  gap: 100px;
}

.column {
  flex: 1;
}

.center-text {
  text-align: center;
  display: block;
  width: 100%;
}

@media (max-width: 767.98px) {
  .duplicate-table-wrapper table,
  .duplicate-table-wrapper thead,
  .duplicate-table-wrapper tbody,
  .duplicate-table-wrapper tr,
  .duplicate-table-wrapper th,
  .duplicate-table-wrapper td {
    display: block;
  }
  .duplicate-table-wrapper thead {
    display: none;
  }
  .duplicate-table-wrapper tr {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa !important;
  }
  .duplicate-table-wrapper td {
    border: none;
    padding: 0.15rem 0;
  }
}

.btn-xs {
  font-size: 0.85rem;
  padding: 0.2rem 0.45rem;
}

.btn.btn-edit {
  background: transparent !important;
  border: 1px solid var(--border-edit) !important;
  color: var(--border-edit) !important;
}

.btn.btn-edit:hover {
  background-color: var(--border-edit) !important;
  border-color: var(--border-edit) !important;
  color: #222 !important;
}

.btn-pale {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.form-border-default {
  border: 1px solid var(--border-default);
  border-radius: 4px;
}

.form-border-edit {
  border: 1px solid var(--border-edit);
  border-radius: 4px;
}

.toggle-btn {
  background: var(--border-edit) !important;
  border-color: var(--border-edit) !important;
  color: #222 !important;
}

/* ---- Help Text ---- */

.help-text {
  display: block;
  color: #9aa5b1 !important;
  font-size: 0.8rem;
  text-align: left;
  margin-top: 4px;
  margin-bottom: 0;
  line-height: 1.4;
}

/* ---- Mobile search actions ---- */

@media (max-width: 767.98px) {
  .mobile-btn {
    font-size: 0.85rem !important;
    padding: 0.35rem 0.75rem !important;
  }
  .mobile-badge {
    font-size: 0.85rem !important;
    padding: 0.35rem 0.75rem !important;
    font-weight: 500 !important;
  }
}

/* ---- Active/Inactive toggle ---- */

.active-toggle-box {
  background-color: #f0f0f0;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  width: fit-content;
  max-width: 180px;
}

.active-toggle-badge {
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.4em 0.6em;
}

.active-toggle-off {
  background: #fff !important;
  border: 1px solid #4CA1D7 !important;
  color: #4CA1D7 !important;
}

.active-toggle-off:hover {
  background: #4CA1D7 !important;
  color: #fff !important;
}


