body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  background: #f4f4f4;
  font-weight: 400;
  color: #555;
  font-size: 1.25rem;
}

.hidden-col {
  display: none;
}

.navbar {
  background-color: #fff;
  padding: 0.4rem 0;             /* top/bottom padding only */
  border-bottom: 1px solid #eee;
  min-height: 1.5rem;
  padding-top: 0.5rem;          /* Add some space at the top */
}

.navbar .navbar-inner {
  max-width: 600px;             /* same as .container */
  margin: 0 auto;               /* center horizontally */
  padding: 0 1rem;              /* same side padding as .container */
  display: flex;
  align-items: center;
  position: relative; 
  min-height: 1rem;          /* so .navbar-title can be positioned absolutely */
}

.navbar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  color: #0056b3;
  /* You can add color/etc. as needed */
}

.home-btn {
  margin-right: 0;              /* remove any auto margins */
  text-decoration: none;
  color: #0056b3;
  font-size: 1.25rem;
  font-weight: 500;
  /* It will sit at the start of .navbar-inner because title is absolute */
}

/* Optional hover‑state for Home link */
.home-btn:hover {
  text-decoration: none;
  color: #ccc;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0rem 1rem 0.0rem 1rem; 
}

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.5rem;
}

.tile-grid .tile {
  height: 7rem;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem; /* Controls space between icon and text */
}

.tile {
  background: White;
  padding: 0.5rem 0.5rem 0.5rem 0.5rem; /* Reduce vertical padding */
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #0056b3;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tile i {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.tile-grid .tile i {
  font-size: 2.8rem;
  margin-bottom: .5rem; /* Ensure no extra margin */
}

.tile:hover {
  background: #0056b3;
  color: White;
}

.card, .cardnav {
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem;
  margin: 0.5rem auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 600px;
}

.cardnav {
  height: 3.5rem;
  align-items: center;
  display: flex;
}

.card-header {
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
  padding-top: 0.4em;      /* Small gap at the top */
  padding-bottom: 0.5em;   /* Space below name */
  margin-top: 0;           /* Remove extra top margin */
  margin-bottom: 0em;
  border-bottom: 1px solid #ccc; /* Grey line under name */
  color: #fff;
  background: #0056b3;
  letter-spacing: 0.01em;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.card.editing {
  border: 2px solid #0056b3;
  box-shadow: 0 0 8px #007bff33;
  background: #f8faff;
}

.card.editing .tile-btn {
  background: #0056b3;
  color: #fff;
}

.card.editing .form-control {
  border: 1px solid #0056b3;
  background: #f8faff;
  transition: border 0.2s, background 0.2s, box-shadow 0.2s;
}

.label {
  font-weight: 400;
  margin-bottom: 0.0rem;
  display: block;
  color: #7c7c7c;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid white;
  border-radius: 8px;
  background: white;
}

.input-group input {
  flex-grow: 1;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.icon-btn {
  background: #ccc;
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 8px;
  height: 2.5rem;
  width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover {
  background: #0056b3;
}


.suggestions {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
  overflow: hidden;
  display: none;
}

.suggestions li {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  text-align: left;
}

.suggestions li:hover,
.suggestions li.active {
  background-color: #e6f0ff;
}

.suggestions li.selected {
  background-color: #e6f0ff;
  /* you can also change font-weight, etc. */
}

.statsContainer {
  padding-top: 0.5rem;
}

.tile-btn {
  display: inline-block;
  background: #ddd;
  padding: 0 0rem;
  height: 2.5rem;
  line-height: 2.5rem;
  border-radius: 8px;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  border: #fff 1px solid;
  width: 10rem;
  min-width: 6rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.tile-btn:hover {
  background: #0056b3;
  color: white;
  text-decoration: none;
}

.tile-btn i {
  margin-right: 0.4rem;
}

.error-message {
  color: red;
  margin-top: .5rem;
  text-align: center;
  font-weight: bold;
}

/* Style for the player name header */
#statsContainer h2 {
  margin: 0;
  font-size: 1.25rem;
  text-align: center;
  color: #222;
  padding-top: 0.5rem;    /* optional spacing above */
  padding-bottom: 0.5rem;
}

#accountContainer h2 {
  margin: 0;
  font-size: 1.25rem;
  text-align: center;
  color: #222;
  padding-top: 0.5rem;    /* optional spacing above */
  padding-bottom: 0.5rem;
}

/* Borderless two‑column stats table */
.stats-table {
  width: 100%;
  border-collapse: collapse;  /* Remove default cell borders */
  margin: 0;                  /* No extra margin */
}

.stats-table td {
  padding: 0.5rem 0;          /* Vertical spacing between rows */
}

.stats-table td:first-child {
  width: 50%;
  color: #555;                /* Lighter text color for labels */
}

.stats-table td:last-child {
  text-align: right;          /* Right‑align numeric values */
  font-weight: 500;           /* Slight emphasis on values */
  color: #222;                /* Darker text color for clarity */
}

.stats-table tr.divider-row td {
  border-bottom: 1px solid #ccc;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.stats-table th, .stats-table td {
  padding: 0.4em;
}
.stats-table th {
  background: #f7f7f7;
  position: sticky;
  top: 0;
  z-index: 1;
}

.account-History-table,
.player-History-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  color: #555;
  font-weight: 400;
}

.account-History-table th,
.account-History-table td,
.player-History-table th,
.player-History-table td {
  white-space: nowrap;
  font-size: 0.95em;
  padding: 0.5rem;
}

.account-History-table td,
.player-History-table td {
    font-weight:400;
    color: #555;
    border-bottom: #ccc 1px solid;
}

.account-History-table th,
.player-History-table th {
  position: sticky;
  top: 0;
  background: #f7f7f7;
  z-index: 2;
  border-right: 1px solid white;
}

/* --- Column Widths & Alignment --- */
/* First column: narrower, left-aligned */
.account-History-table th:nth-child(1),
.account-History-table td:nth-child(1),
.player-History-table th:nth-child(1),
.player-History-table td:nth-child(1) {
  width: 180px;
  text-align: left;
}

/* Middle columns: standard width, center-aligned */
.account-History-table th:nth-child(2),
.account-History-table td:nth-child(2),
.account-History-table th:nth-child(3),
.account-History-table td:nth-child(3),
.player-History-table th:nth-child(2),
.player-History-table td:nth-child(2),
.player-History-table th:nth-child(3),
.player-History-table td:nth-child(3) {
  width: 75px;
  text-align: center;
}

/* Last two columns: wider, right-aligned */
.account-History-table th:nth-child(4),
.account-History-table td:nth-child(4),
.account-History-table th:nth-child(5),
.account-History-table td:nth-child(5),
.player-History-table th:nth-child(4),
.player-History-table td:nth-child(4),
.player-History-table th:nth-child(5),
.player-History-table td:nth-child(5) {
  width: 120px;
  text-align: center;
}

.player-list-row table {
  border-collapse: collapse;
}
.player-list-row th,
.player-list-row td {
  border: none !important;
  background: transparent;
  padding-top: 0.1em !important;
  padding-bottom: 0.1em !important;
  padding-left: 0.5em;
  padding-right: 0.5em;
  font-size: 1.25rem;
  line-height: 1.1;
}

/* --- Responsive Table Font Size --- */
@media (max-width: 600px) {
  .account-History-table th,
  .account-History-table td,
  .player-History-table th,
  .player-History-table td,
  .event-results-table th,
  .event-results-table td,
  .default-table th,
  .default-table td {
    font-size: 0.85em;
    padding: 0.5em 0.3em;
  }
  .card {
    padding: 0.5em;
  }
  .player-list-row th,
  .player-list-row td {
    font-size: 0.85em;
    border: none !important;
    background: transparent;
    padding-top: 0.1em;
    padding-bottom: 0.1em;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
}

.profile-label {
  font-weight: 500;
  color: #444;
  padding: 0.5em 0.5em 0.5em 0;
  width: 120px;
  vertical-align: middle;
  border-bottom: 1px solid #ccc;
  font-size: 1.0rem;
}
.profile-fixed {
  background: #f3f3f3;
  color: #555;
  padding: 0.5em 0.5em;
  border-radius: 4px;
}

.profile-table {
  padding-left: 2rem;
  width:100%;
  border-collapse: collapse;
}

.profile-table input.form-control {
  border: none;
  background: none;
  box-shadow: none;
  outline: none;
  padding: 0.3em .5em;
  font-size: 1em;
  color: #222;
  width: 75% !important;
  min-width: 200px;
  border-radius: 4px;
}

.team-row {
  font-weight: 400;
  color: #222;
}

.out-in-total-col {
  border-left: 2px solid #e0e0e0 !important;
  border-right: 2px solid #e0e0e0 !important;
  background: #fafafa;
  font-weight: 600;
}

.default-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.0rem 0 0 0;
  background: #fff;
  font-size: 1.25rem;
  color: #555;
  font-weight: 400;
  table-layout: auto;
}

.default-table th{
  background: #f7f7f7;
  font-weight: bold;
  color: #555;
  border-bottom: 1px solid #ccc;
  border-right: 1px solid white;
  text-align: left;
  height: 1rem;
  padding: 0.5rem 0.75rem;
  position: sticky;
  top: 0rem;
  left: 0rem;
}

.default-table tr.divider-row td{
  border-bottom: 1px solid #ccc;
  padding: 0.5rem 0.75rem 0.5rem 0.2rem;
  margin-bottom: 0.0rem;
  margin-top: 0.0rem;
  text-align: left;
  font-weight: bold;
}

.default-table tr.spacer-row td{
  height: 0.5rem;
  padding: 0;
  margin: 0;
  border: none;
}

.default-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  color: #555;
  border-bottom: 1px solid #eee;
}

.default-table td:first-child {
  width: 50%;
  color: #555;
  text-align: left;
  font-weight: 400;
  padding-left:0.2rem;
  padding-right:0.1rem;
}

.default-table th:first-child {
  width: 50%;
  color: #555;
  text-align: left;
  font-weight: bold;
  padding-left:0.2rem;
}

.sticky-col {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 3;
  border-right: 2px solid #e0e0e0;
}

.sticky-col-header {
  position: sticky;
  left: 0;
  top: 0;
  background: #fff;
  z-index: 4;
  border-right: 2px solid #e0e0e0;
}

.subheader{
  border-bottom: 1px solid #ccc;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  text-align: left;
  font-weight: bold;
  padding-left: 0.2rem;
  color: #555;
}

.textline{
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  text-align: left;
  font-weight: 400;
  font-size: 1.0rem;
  padding-left: 0.2rem;
  color: #555;
}

.spacer-row {
  height: .5rem;
}

.card-footer-blue {
  width: 100%;
  height: 32px;
  background: #0056b3;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.circle-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #007bff;
  border-radius: 50%;
  width: 1.3em;
  height: 1.3em;
  color: #007bff;
  background: white;
  text-align: center;
  vertical-align: middle;
  font-size: 1em;
  box-sizing: border-box;
  padding: 0;
  line-height: 1; /* Ensures text is centered */
}

.square-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d32f2f;
  border-radius: 0px;
  width: 1.3em;
  height: 1.3em;
  color: #d32f2f;
  background: white;
  text-align: center;
  vertical-align: middle;
  font-size: 1em;
  box-sizing: border-box;
  padding: 0;
  line-height: 1;
}

.circle-score-filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #007bff;
  border-radius: 50%;
  width: 1.3em;
  height: 1.3em;
  color: #007bff;
  background: #ffe066;
  text-align: center;
  vertical-align: middle;
  font-size: 1em;
  box-sizing: border-box;
  padding: 0;
  line-height: 1;
}
.square-score-filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d32f2f;
  border-radius: 0px;
  width: 1.3em;
  height: 1.3em;
  color: #d32f2f;
  background: #ffe066;
  text-align: center;
  vertical-align: middle;
  font-size: 1em;
  box-sizing: border-box;
  padding: 0;
  line-height: 1;
}

.highlight-team-row {
  background-color: #ffe066 !important;
}

.stats-range-btn.active {
  background: #0056b3 !important;
  color: #fff !important;
  font-weight: 600;
}

#swatDateDropdown {
  width: 280px;
  max-width: 280px;
  box-sizing: border-box;
  overflow-y: auto;
}

.select2-container--default .select2-selection--single {
  background-color: #fff !important;
  border: 2px solid #ccc !important;
  border-radius: 8px !important;
  height: 40px !important;           /* Match your original dropdown height */
  padding: 0 !important;             /* Remove extra padding */
  font-size: 1.1rem !important;
  color: #555 !important;
  box-shadow: none !important;
  outline: none !important;
  display: flex !important;
  align-items: center !important;    /* Vertically center content */
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #555 !important;
  text-align: center !important;
  padding-left: 8px !important;
  line-height: 40px !important;      /* Match the height for vertical centering */
  height: 40px !important;
  display: block !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px !important;
}
.select2-dropdown {
  border-radius: 8px !important;
  font-size: 1.1rem !important;
  min-width: 280px !important;
  max-width: 280px !important;
}
.select2-results__option {
  font-size: 1.1rem !important;
  color: #555 !important;
  padding: 0.5rem 1rem !important;
}
.select2-container {
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
}