/* Pull-to-refresh indicator */
#ptr-indicator {
  position: fixed;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #ddd;
  border-top-color: #4183c4;
  opacity: 0;
  transition: opacity 0.1s;
  z-index: 9999;
}
#ptr-indicator.ptr-spinning {
  animation: ptr-spin 0.6s linear infinite;
}
@keyframes ptr-spin {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

/* Submit Button Styling */

.check-in-user-btn,
.add-user-btn,
.kiosk-check-in-user-btn,
.voucher-check-in-user-btn {
  background: #aaa;
  color: white;
  border: none;
  border-radius: 4px;
  /* padding: 10px 20px; */
  font-size: 1rem;
  cursor: pointer;
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
  display: inline-block;
  margin-top: 1em;
  text-align: center;
}

.check-in-user-btn,
.add-user-btn:hover,
.voucher-check-in-user-btn {
  background-color: #306999;
}

.check-in-user-btn,
.add-user-btn:focus {
  outline: none;
  box-shadow: 0 0 4px rgba(66, 153, 225, 0.6);
}

.check-in-search-user-table {
  /* Roughly: 9 rows on Chrome on Macbook Pro 13" */
  /* 6 rows on iPhone 16 Pro Max */
  max-height: calc(10 * 2.5rem);
  overflow-y: scroll;
}

.qrCodeScannerButton {
  border: none;
  font-size: 1em;
  cursor: pointer;
  background: none;
}

.qrCodeScannerButton:hover {
  border: none;
  font-size: 1.5em;
  cursor: pointer;
}

#qrCodeStopButton {
  background-color: #fc2c2c;
  border: none;
  border-radius: 15px;
  width: 50%;
  padding: 10px;
}

button[type='submit'],
input[type='submit'] {
  background: #ccc;
  color: white;
  border: none;
  border-radius: 4px;
  /* padding: 10px 20px; */
  font-size: 1rem;
  cursor: pointer;
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
  display: inline-block;
  margin-top: 1em;
  text-align: center;
}

button[type='submit']:hover:disabled,
input[type='submit']:hover:disabled {
  background: #ccc;
}

button[type='submit']:hover,
input[type='submit']:hover {
  background-color: #306999;
}

button[type='submit'].btn-action,
input[type='submit'].btn-action {
  background-color: #306999;
}

button[type='submit'].btn-action:disabled,
input[type='submit'].btn-action:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

button[type='submit']:hover.btn-action,
input[type='submit']:hover.btn-action {
  outline: none;
  box-shadow: 0 0 4px rgba(66, 153, 225, 0.6);
}

button[type='submit']:focus,
input[type='submit']:focus {
  outline: none;
  box-shadow: 0 0 4px rgba(66, 153, 225, 0.6);
}

input.edit-text {
  font-size: 1em;
  margin-top: 10px;
  margin-bottom: 10px;
}

input.edit-text[readonly] {
  background-color: #f0f0f0;
  border: none;
  cursor: not-allowed;
}

input.edit-text[readonly]:focus {
  outline: none;
}

button.other-events-btn {
  border: none;
  border-radius: 16px;
  font-size: medium;
  padding: 10px;
  margin: 15px;
  color: black;
}

button.other-events-btn:hover {
  cursor: pointer;
  background: #ddd;
}

button.save-btn {
  border: none;
  background: none;
  font-size: unset;
}

button.save-btn:hover,
button.other-events-btn:hover {
  cursor: pointer;
}

.btn-voucher-tool,
.btn-move-attendee,
.btn-move-attendees,
.btn-remove-attendee,
.btn-remove-acl-user,
.btn-remove-user,
.btn-remove {
  border: none;
  background: none;
}

.btn-move-attendee {
  font-size: 1em;
}

.btn-move-attendee:hover,
.btn-move-attendees:hover,
.btn-remove-attendee:hover,
.btn-remove-acl-user:hover,
.btn-remove-user {
  cursor: pointer;
}

th.sortable {
  cursor: pointer;
}

th.sortable:after {
  content: '⬍'; /* Initial neutral symbol */
  float: right;
  opacity: 0.5;
}

th.sort-asc:after {
  content: '↑'; /* Ascending sort arrow */
}

th.sort-desc:after {
  content: '↓'; /* Descending sort arrow */
}

/* Aligning Submit Button */
.form-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.selected-chip-groups {
  border: 3px solid #c0d9fa;
  padding: 0.1rem 0.1rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  transition:
    border-color 0.3s,
    background-color 0.3s;
}

/* Form Selectors (Dropdowns) */
select {
  background: #f0f0f0;
  border: 1px solid #ccc;
  /* font-size: 1rem; */
  padding: 0.1rem 0.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 0.3s,
    background-color 0.3s;
  text-align: center;
}

.role-selector {
  font-size: large;
}

#partner-payment-option {
  font-size: large;
  margin-top: 10px;
}

select:focus {
  border-color: #2d88ff;
  background-color: #fff;
}

select:hover {
  border-color: #2d88ff;
  background-color: #fff;
}

body {
  font:
    18px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    'Noto Sans',
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    'Noto Color Emoji';
  color: #000;
  background-color: #fff;
  /* Design is light-only: opt out of the browser's dark-mode canvas so the page
     renders the same regardless of the visitor's prefers-color-scheme. */
  color-scheme: light;
  text-align: center;
  margin: 0;
}

/* Modern Navigation Bar */
.top-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  margin: 0 auto 0rem;
  max-width: 650px;
  background: linear-gradient(135deg, #253d75 0%, #306999 100%);
  box-shadow: 0 2px 12px rgba(48, 105, 153, 0.2);
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-left,
.nav-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.nav-center {
  flex: 1;
  text-align: center;
}

.nav-brand {
  color: white !important;
  font-size: 1.5em;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-brand:hover {
  transform: scale(1.05);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-link:active {
  transform: translateY(0);
}

.nav-icon {
  width: 1.3em;
  height: 1.3em;
  stroke-width: 2.5;
}

.nav-text {
  font-size: 1rem;
}

#nav-bar-profile-icon {
  font-size: 1.8em;
  border-width: 0;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

#nav-bar-profile-icon:hover {
  transform: scale(1.1) rotate(10deg);
  filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3));
}

/* Responsive Navigation */
@media (max-width: 600px) {
  .top-nav-bar {
    padding: 0.75rem 1rem;
  }

  .nav-brand {
    font-size: 1.2em;
  }

  .nav-text {
    display: none;
  }

  .nav-link {
    padding: 0.5rem;
    min-width: 44px;
    justify-content: center;
  }

  .nav-icon {
    width: 1.4em;
    height: 1.4em;
  }

  #nav-bar-profile-icon {
    font-size: 1.5em;
  }
}

/* Old icon styles for backward compatibility */
.mail-icon {
  width: 1.4em;
  height: 1.8em;
}

.user-icon {
  width: 1.6em;
  height: 1.8em;
}

.section {
  padding: 1em;
}

.section-title {
  font-weight: bold;
  border-radius: 8px;
  font-size: 30px;
  text-align: left;
  padding-left: 15px;
}

.container {
  max-width: 600px;
  margin: 50px auto;
  margin-top: 0px;
}
h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

img {
  max-width: 100%;
  width: 100%;
}
a {
  text-decoration: none;
  color: #4183c4;
}

.section-link {
  font-weight: bold;
}

/* events */
.event-box,
.multi-event-box {
  width: 90%;
  padding: 8px;
  line-height: 30px;
  margin: 10px;
  border: 0.5px solid #ccc;
  border-radius: 20px;
  text-align: left;
  background: white;
  margin-bottom: 40px;
}

.coach-card {
  display: flex;
  align-items: center;
  width: 95%;
  margin: 10px;
  text-align: left;
  gap: 16px; /* Add some space between the image and text */
}

.coach-image {
  width: 40%;
  height: auto;
  border-radius: 8px;
}

.coach-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.events-box {
  display: flex;
  flex-wrap: wrap;
}

.event-this-week-day-svg {
  position: absolute;
  padding-left: 10px;
  padding-top: 12px;
}

.event-box img {
  width: 98%;
  padding-left: 1%;
  height: auto;
  border-radius: 20px;
  padding-top: 4px;
}

.event-image {
  width: 98%;
  padding-left: 1%;
  height: auto;
  border-radius: 20px;
  padding-top: 4px;
}

.event-title {
  font-weight: bold;
  width: 94%;
  padding-left: 3%;
}

.event-box .description,
.event-box .location {
  margin-top: 10px;
}

.event-booking {
  text-align: center;
  padding-top: 10px;
}

#mapSelector {
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: white;
  border-radius: 8px;
}
.mapOption {
  display: block;
  align-items: flex-start;
}
.hidden {
  display: none !important;
}

#express-checkout-element {
  width: 100px;
  height: 100px;
  display: contents;
}

#stripe-message {
  text-align: center;
}

/* Chip Styling */

.chips {
  text-align: center;
}

.chip,
.roster-chip,
.profile-chip,
.toggle-chip {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px;
  margin-bottom: 17px;
  border-radius: 16px;
  background: #efefef;
  color: #333;
  cursor: pointer;
  font-size: 0.875em;
  transition:
    background 0.3s,
    color 0.3s;
  border: 0px #ccc;
}

.event-date {
  width: 94%;
  padding-left: 3%;
  color: gray;
}

.event-location {
  width: 94%;
  padding-left: 3%;
}

.chip:hover {
  background: #ddd;
}

.chip.selected,
.roster-chip.selected,
.profile-chip.selected,
.toggle-chip.selected {
  background: #4183c4;
  color: white;
  border-color: #306999;
}

.book-link.selected {
  background: #c3bfbf;
}

.next-roster-link {
  display: block;
  background: #e8f4fd;
  border: 1px solid #4183c4;
  border-radius: 6px;
  padding: 4px 10px;
  margin: 2px 0 8px;
  font-size: 0.9em;
}

.next-roster-label {
  color: #666;
  font-size: 0.85em;
}

.next-roster-none {
  background: #f5f5f5;
  border-color: #ccc;
  color: #999;
}

/* Confetti */
#confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}

.truncate-ellipsis {
  white-space: nowrap; /* Prevent text from wrapping to multiple lines */
  overflow: hidden; /* Clip the overflowing content */
  text-overflow: ellipsis; /* Display '...' when the text overflows */
}

.event-table,
.acl-table {
  text-align: left;
  margin: 0 auto;
  width: auto;
}

.event-description {
  text-align: left;
  width: 94%;
  padding-left: 3%;
}

/* Generic table styles */

table {
  border: none;
}

table thead th {
  background-color: #4183c4;
  color: white;
}

tbody tr:nth-child(even) {
  background-color: #f7f4f4;
}

tbody tr:nth-child(odd) {
  background-color: #fff;
}

tfoot {
  background-color: #e4e2e2;
}

.compliance-footer {
  color: #a9a9a9;
  font-size: 1em;
}

.loader {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  margin-top: 5px;
  border-left-color: #4183c4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 9999;
}

/* Spinner animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.checkout-element {
  text-align: center;
}

.home-crew-div {
  border-top: 1px solid #ccc;
  padding: 10px 0;
  text-align: center;
  margin-top: 10px;
  text-align: center;
}

.header-message {
  padding-bottom: 15px;
  padding-top: 8px;
}

.welcome-message {
  color: gray;
  font-weight: 600;
}

/* Coach event view */

/* Center thecontainer */
.coach-event-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

/* Styling the card */
.coach-event-card {
  width: 90%;
  max-width: 400px;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Adjust alignment of avatar & text */
.coach-event-info {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  flex-direction: column;
}

.coach-event-avatar {
  width: 60px; /* Adjust the avatar size */
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.coach-event-info {
  text-align: left;
}

.product-description {
  padding-bottom: 10px;
}

.org-header-link {
  color: #00897b;
  text-decoration: none;
  font-weight: 600;
}
.org-header-link:hover {
  text-decoration: underline;
}
.org-header-separator {
  color: gray;
}

/* Prevents page zooms on mobile when the text area is < 16px */
input,
textarea,
select {
  font-size: 16px;
}

/* Organization Cards */
.org-cards-container {
  margin-bottom: 32px;
}

.org-cards-container h2 {
  color: #2c3e50;
  margin-bottom: 16px;
  font-size: 1.5em;
}

.org-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.org-card {
  background: #f8f9fa;
  padding: 16px 20px;
  border-radius: 10px;
  text-decoration: none;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  border: 1px solid #e1e4e8;
  font-weight: 500;
}

.org-card:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e0;
}

.org-card-icon {
  flex-shrink: 0;
}

.org-card-text {
  flex: 1;
}

.org-card-arrow {
  margin-left: auto;
  opacity: 0.5;
  flex-shrink: 0;
}
