.btn {
    background-color: #008e70 !important; /* Green primary color */
    border-color: #008e70 !important;
    color: white !important;
    padding: 0.375rem 0.75rem; /* Standard padding for consistent size */
    font-size: 1rem;           /* Standard font size */
    border-width: 1px;         /* Ensure border width is consistent */
}

.btn:hover {
    background-color: #006a54 !important; /* Slightly darker green for hover */
    border-color: #006a54 !important;
}

/* Custom Secondary Button */
.btn-secondary-custom {
    background-color: white !important;      /* White background */
    color: #008e70 !important;               /* Text color (same as your primary button) */
    border: 1px solid #008e70 !important;    /* Border with the same color as the text */
    padding: 0.375rem 0.75rem;               /* Match primary button padding */
    font-size: 1rem;                         /* Match primary button font size */
    border-width: 1px;                       /* Ensure border width matches */
}

.btn-secondary-custom:hover {
    background-color: #f8f9fa !important;    /* Slightly gray on hover */
    color: #005f47 !important;               /* Darker text color on hover */
    border-color: #005f47 !important;        /* Darker border color */
}

.btn-secondary-custom:focus {
    outline: none !important;                /* Remove outline on focus */
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1) !important; /* Optional: add focus shadow */
}

/* Ensure both buttons are small when using btn-sm */
.btn-sm {
    padding: 0.25rem 0.5rem !important; /* Match size for both buttons */
    font-size: 0.875rem !important;     /* Ensure consistent font size for small buttons */
    border-radius: 0.2rem;              /* Ensure consistent border radius */
}

/* Rotate text for table headers */
.rotate {
    transform: rotate(-90deg);
    transform-origin: left bottom;
    white-space: nowrap;
    vertical-align: bottom;
    height: 150px; /* Adjust as needed */
    width: 30px; /* Adjust as needed */
}

.rotate th {
    padding: 5px;
}

.gray-column {
    background-color: #f2f2f2; /* Light gray background */
}


/* Navy badge */
.badge-navy { 
  background-color: #0d3b66 !important; 
  color: #fff !important; 
}

/* clickable game tiles */
.game-card {
  display: block;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .06s ease, border-color .06s ease;
  user-select: none;
  outline: none;
}
.game-card:hover { box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,.06); }
.game-card:focus { box-shadow: 0 0 0 .2rem rgba(0,142,112,.2); } /* your green */
.game-card.selected {
  border-color: #008e70;
  box-shadow: 0 0 0 .2rem rgba(0,142,112,.25);
}

.game-card-body { padding: 1rem; }
.game-card-title { font-weight: 600; }
.game-card-sub { color: #6c757d; font-size: .9rem; }

/* hide but keep accessible */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* hide the native checkbox inside the card */
.game-card > input[type="checkbox"] {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* selected state (pure CSS) */
.game-card:has(> input[type="checkbox"]:checked) {
  border-color: #008e70;
  box-shadow: 0 0 0 .2rem rgba(0,142,112,.25);
}
