.flight-data h2,
button {
  text-transform: uppercase;
}

button {
  cursor: pointer;
  margin: 5px;
  padding: 10px 20px;
  color: #143749;
  font-size: 22px;
  border: 0;
  line-height: 1;
}

button.active {
  color: #143749;
  border-color: #ced9df;
}

/* Matchup Popup Styles */
#matchup-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#matchup-popup .popup-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#matchup-popup h2 {
  color: #143749;
  margin-top: 0;
  margin-bottom: 20px;
}

#matchup-popup p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 25px;
}

#matchup-popup .popup-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

#confirm-matchup {
  background: #4caf50;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

#confirm-matchup:hover {
  background: #45a049;
}

#cancel-matchup {
  background: #f44336;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

#cancel-matchup:hover {
  background: #d32f2f;
}

#flight-selection,
#tee-times-section {
  margin-bottom: 30px;
}

#tee-times-list {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0%;
}

#tee-times-list li {
  cursor: pointer;
  padding: 8px 24px;
  border-radius: 40px;
  background: #b1cede;
  font-weight: bold;
  color: #34647d;
  box-shadow: 0px 3px 20px -6px rgba(0, 0, 0, 0.3);
  transition: all ease 0.3s;
  font-size: 18px;
}

#tee-times-list li.current-tee-time {
  background-color: #153749 !important;
  color: #fff !important;
}

#tee-times-list li.completed {
  background: #109347;
  color: #fff;
}

#placeholders,
#teams {
  display: flex;
  justify-content: space-around;
  margin: auto;
}

#teams {
  background: #eaeff2;
  border-radius: 48px;
  padding: 20px 20px;
  gap: 50px;
  /* box-shadow: 0px 5px 25px -3px rgba(0, 0, 0, 0.25); */
  filter: drop-shadow(7px 14px 22px rgba(0, 0, 0, 0.04));
}

.team,
button {
  width: 100%;
}

.placeholder h3,
.team h3 {
  text-align: center;
}

.team-player-list {
  list-style-type: none !important;
  /* max-height: 200px; */
  overflow-y: auto;
  padding: 0px 0px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

/* Add header for player list */
.team h3 + .player-list-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 18px;
  background: transparent;
  color: var(--main-color);
  border-radius: 9px 9px 0 0;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 16px;
}

.player-list-header span {
  flex: 1;
  text-align: center;
}

.player-list-header span:first-child {
  flex: 2;
  text-align: left;
}

.team-player-list li {
  padding: 8px 18px;
  cursor: pointer;
  background: #fafafa;
  border-radius: 9px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 5px;
  transition: background-color 0.2s;
}

.team-player-list li:hover {
  background-color: #e6f7ff;
}

.player-list-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.player-name {
  flex: 2;
  font-weight: 700;
}

.player-hdcp,
.player-index {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: #143749;
  transition: all ease 0.3s;
}

.team-player-list li.selected-player1 {
  background-color: #e6f7ff;
}

.team-player-list li.selected-player2 {
  background-color: #f6ffed;
}


.team-player-list li.filtered-out {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #f5f5f5;
  color: #999;
  background: #ffdada;

  position: relative;
}

.team-player-list:not(.disabled) li.filtered-out:hover {
  opacity: 0.8;
  background-color: #ffe69c;
}
.team-player-list:not(.disabled) li.filtered-out:hover:after {
  opacity: 1;
  background-color: #ffe69c;
  content: "Click to Override";
}
.team-player-list li.filtered-out::after {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffc107;
  color: #856404;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
}

.team-player-list li.filtered-out .player-hdcp,
.team-player-list li.filtered-out .player-index {
  opacity: 0.5;
}

.team-player-list li.already-selected {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #ffe6e6;
  color: #999;

  background: #4caf50;
  position: relative;
}
.team-player-list li.selected-player1 {
  opacity: 0.8 !important;
  color: #fff !important;
}
.team-player-list li.selected-player2 {
  opacity: 0.8 !important;
  color: #fff !important;
}
D.team-player-list li.already-selected::after {
  content: "Already Selected";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ff9999;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.team-player-list li.assigned {
  color: #ccc;
  opacity: 0.1;
}

.team-player-list.disabled li {
  cursor: not-allowed;
  opacity: 0.25;
}

#placeholders {
  gap: 30px;
}

.placeholder {
  border: 3px solid transparent;
  padding: 15px 20px;
  position: relative;
  min-height: 280px;
  justify-content: center;
  border-radius: 30px;
  background: #00000008;
}

#action-buttons {
  text-align: center;
  margin-top: 0px;
  margin-top: 60px;
}

#action-buttons button {
  margin: 0 10px;
  padding: 10px 20px;
}

#tee-times-section p {
  font-size: 18px;
  margin: 0;
  padding: 0;
}

div#tee-times-section > p {
  background: #fff;
  max-width: max-content;
  margin: auto;
  padding: 10px 20px;
  border-radius: 8px;
}
div#tee-times-section {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  width: 100%;
}
img.flag-image {
  max-width: 50px;
}

.placeholder,
div#flight-selection {
  display: flex;
  flex-direction: column;
}

.flight-data h2 {
  font-weight: 400;
  /* border-bottom: 1px solid #000; */
  max-width: 350px;
  margin: 0 0 12px;
  padding-bottom: 12px;
  font-size: 28px;
  padding-bottom: 0;
  margin-bottom: 0;
}

.placeholder .player-info {
  text-align: center;
  width: 100%;
  background: 0 0;
}

.placeholder .selecting-now-label {
  position: absolute;
  top: 10px;
  background-color: #ffc107;
  font-weight: 700;
  display: none;
  right: 0;
  left: 0;
  max-width: max-content;
  margin: auto;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 24px;
}

.placeholder .pick-number {
  font-weight: 700;
  text-align: center;
  margin: 5px 0;
  font-size: 28px;
  color: #143749;
}

.placeholder .subtitle {
  text-align: center;
  margin-bottom: 10px;
  font-size: 14px;
  display: none;
  color: #706c6e;
  font-weight: 600;
}

.placeholder.selected {
  border-color: transparent;
  box-shadow: 0px 5px 25px -8px rgba(0, 0, 0, 0.25);
  background: #fff;
}

.placeholder .player-info > img {
  display: block;
  margin: 0 auto 0px;
  max-width: 160px !important;
  min-height: 160px;
  max-height: 160px;
}

.placeholder .pin-images {
  text-align: center;
  margin-top: 10px;
  gap: 15px;
  top: 10px;
}

.placeholder .pin-images img {
  width: 73px;
  height: auto;
  display: inline-block;
}

div#placeholders img.flag-image {
  max-width: 20px;
}

.et_pb_section .container {
  max-width: 1800px;
  margin: auto;
  width: 100%;
  display: flex;
  gap: 30px;
  padding-top: 0 !important;
  padding-bottom: 60px;
}

.page-sidebar-content {
  min-width: 280px;
  background: #eaeff2;
  border-radius: 48px;
  padding: 40px 20px;
  filter: drop-shadow(7px 14px 22px rgba(0, 0, 0, 0.04));
}

.page-content {
  flex-grow: 1;
}

.action-buttons.reset-buttons {
  max-width: max-content;
}

section.section.section-fligh-data {
  display: flex;
}

.placeholder-wraper {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.team-hdcp-total {
  text-align: center;
  font-weight: bold;
  margin-top: 40px;
  padding: 12px;
  background-color: #f0f8ff;
  border-radius: 30px;
  border: 1px solid #d9e8f6;
  font-size: 18px;
  color: #143749;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.hdcp-index {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 5px 0 10px;
  background: #f7f7f7;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hdcp-index div {
  font-size: 16px;
  font-weight: 600;
}

.hdcp-index div strong {
  color: #143749;
  margin-right: 5px;
}

.hdcp-value {
  color: #143749;
  font-size: 20px;
  font-weight: 700;
}

.flight-extra-data {
  display: flex;
  gap: 10px;
  text-transform: uppercase;
}

div#placeholders h3,
div#teams .team h3 {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #143749;
}

div#placeholders h3 {
  text-align: center;
  font-size: 20px;
  gap: 8px;
  margin-bottom: 10px;
  margin-top: 0;
  background: #fff;
  max-width: max-content;
  padding: 14px 24px;
  border-radius: 100px;
  margin: auto;
  margin-bottom: 25px;
  box-shadow: 0px 3px 20px -6px rgba(0, 0, 0, 0.2);
}

.flight-data h2 span {
  font-weight: 600;
}

.flight-extra-data span,
button.active {
  font-weight: 700;
}

.placeholder.selecting-now .selecting-now-label,
.placeholder.selecting-now .subtitle {
  display: block;
}

.placeholder.selecting-now {
  border-color: #143749;
  background: #fff;
}

button.flight-button {
  max-width: 230px;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid #ccc;
  background: 0 0;
  text-align: center;
}

button.flight-button[data-flight="Captains"] {
  margin-top: 50px;
}

button#submit-tee-time-button,
.login-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 0;
  margin: 5px auto;
  margin-top: 15px;
  margin-bottom: 28px;
  max-width: max-content;
  background: #143749;
  padding: 14px 37px;
  border-radius: 12px;
  font-weight: 600;
  color: #fff;
  transition: all ease 0.4s;
}
button#submit-tee-time-button:hover,
.login-button:hover {
  background: #109347;
}

section.section-fligh-placeholders {
  margin: 0px 0;
  margin-bottom: 60px;
  background: #eaeff2;
  padding: 45px;
  border-radius: 48px;
  filter: drop-shadow(7px 14px 22px rgba(0, 0, 0, 0.04));
  padding-bottom: 20px;
}

.placeholder.selected .pick-number {
  display: none;
}

div#teams img.flag-image {
  max-width: 30px;
}

div#teams .team h3 {
  font-size: 18px;
  gap: 8px;
  background: #fff;
  max-width: max-content;
  padding: 10px 20px;
  border-radius: 100px;
  margin: auto;
  margin-bottom: 25px;
  box-shadow: 0px 3px 20px -6px rgba(0, 0, 0, 0.2);
}
button#submit-tee-time-button.disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.4;
}
.action-buttons.reset-buttons {
  display: flex;
  gap: 15px;
}

.action-buttons.reset-buttons button {
  background: #143749;
  display: flex;

  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-wrap: nowrap;
  margin: 0;
  align-items: center;
  gap: 10px;

  border: 0;
}

button#reset-flight-button {
  background: #4f1612;
}

.action-buttons.reset-buttons button:hover {
  background: #d02838 !important;
}

.team-player-list li > div:after {
  content: url(../img/general/plus-icon.png);
  position: relative;
  display: block;
}

.team-player-list li.unselectable > div:after {
  content: url(../img/general/minus-icon-white.png);
}
.team-player-list li.unselectable {
  cursor: pointer !important;
}
.team-player-list li.unselectable:hover .player-hdcp,
.team-player-list li.unselectable:hover .player-index {
  color: #fff !important;
}
.team-player-list li.unselectable:hover {
  background: #ed2416 !important;
}
.WLT {
  display: flex;
  justify-content: center;
  gap: 1px;
  max-width: 100%;
  margin: auto;
}

.WLT > div {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.WLT > div strong {
  background: #143749;
  padding: 4px 10px;
  color: #fff;
  font-size: 16px;
}

.WLT > div span {
  background: #f7f7f7;
  padding: 5px 5px;
  font-weight: 600;
  font-size: 16px;
}

.player-info .matches {
  display: flex;
  gap: 10px;
  text-align: left;
  margin-top: 12px;
  font-size: 20px;
  justify-content: space-between;
}

.player-info .matches p {
  margin: 0;
  font-size: 16px;
  padding-bottom: 0;
}
.pin-images {
  display: flex;
  position: absolute;
  top: 0;
  width: calc(100% - 60px);
  flex-direction: column;
}

.pin-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.placeholder .pin-images img {
  margin: 0;
}
img.main-logo {
  margin-bottom: 30px;
}
.player-info > h4 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #143749;
  margin-top: 10px;
  margin-bottom: 10px;
}

button#reset-flight-button {
  display: none;
}

button#reset-tee-time-button img {
  max-width: 18px;
  display: block;
  transition: all ease 2s;
  transition-timing-function: ease;
}

button#reset-tee-time-button {
  min-width: 212px;
}

button#reset-tee-time-button:hover img {
  transform: rotate(360deg);
}
.scores {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.BHHCC {
  display: flex;
  gap: 10px;
}
.matches-content.left-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

a.view-draft-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 0;
  margin-top: 30px;
  max-width: max-content;
  margin: auto;
  background: transparent;
  /* color:#143749 !important; */
  padding: 14px 37px;
  border-radius: 12px;
  font-weight: 600;
  color: #fff;
  transition: all ease 0.4s;
  text-decoration: none;
  margin-top: 90px;
}

a.view-draft-button img {
  margin-left: 5px;
  filter: brightness(0);
}

div#teams.fix-spacing {
  margin-top: 93px;
}

.flight-extra-data {
  color: #153749;
}

div#top-action-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 400px;
  margin-left: auto;
}
div#top-action-buttons button {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
}
div#section-title h3 {
  padding: 0%;
}
div#section-title {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 30px;
}
a.button.btn.dashboard-button {
  margin: auto;
  margin-bottom: 40px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 100px;
  padding: 15px 40px;
  width: 100%;
  max-width: 100%;
  justify-content: center;
}
.player-info-wrapper {
  display: flex;
  gap: 20px;
}

.player-image {
  max-width: 80px;
}

.placeholder {
  justify-content: flex-start;
}

.placeholder-wraper .placeholder:first-of-type {
  margin-bottom: 30px;
}

.player-info .matches {
  flex-direction: column;
}

.player-data {
  flex-grow: 1;
}

.player-data h4 {
  text-align: left;
}

.matches-qlfy-pts {
  display: flex;
  gap: 20px;
}

.matches-content {
  line-height: 1.2em;
}

.matches-content.right-content {
  display: flex;
  gap: 15px;
  border-top: 1px solid #dfdfdf;
  padding-top: 8px;
}

.matches-qlfy-pts p:first-of-type:after {
  content: "";
  width: 2px;
  height: 100%;
  background: var(--main-color);
  display: block;
  position: absolute;
  top: 0;
  right: -10px;
}

.matches-qlfy-pts {
  position: relative;
}

.player-info .matches p {
  position: relative;
}
.placeholder .pick-number {
  margin-top: 60px;
}
.flight-extra-data {
  display: none;
}

.flight-data {
  display: flex;
  gap: 20px;
}
span#current-group {
  font-weight: 400;
}
.admin-edit-container {
  display: flex;
  gap: 30px;
}
span.min-hdcp-requirement {
  display: block;
  color: #fff;
  max-width: max-content;
  margin: auto;
  background: var(--main-color);
  padding: 1px 20px;
  border-radius: 50px;
  font-size: 14px;
}
.team-player-list li.selected-player1 {
  background: #00bcd4;
}
.flight-extra-data {
  display: none;
}

.flight-data {
  display: flex;
  gap: 20px;
}
span#current-group {
  font-weight: 400;
}
.admin-edit-container {
  display: flex;
  gap: 30px;
}
span.min-hdcp-requirement {
  display: block;
  color: #fff;
  max-width: max-content;
  margin: auto;
  background: var(--main-color);
  padding: 1px 20px;
  border-radius: 50px;
  font-size: 14px;
}
.team-player-list li.selected-player1 {
  background: #00bcd4;
}

.player-summary-item {
  display: flex;
  /* justify-content: center; */
  align-items: center;
  gap: 13px;
  min-width: 562px;
  color: #153749;
  font-size: 17px;
  font-weight: 700;
  margin-left: auto;
}

.player-summary-item img {
  /* display: block; */
  max-width: 30px;
  max-height: 30px;
}

.player-pair {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 2px 10px;
  border-radius: 6px;
}

section#player-summary-section {
  margin: 0px 0;
  margin-bottom: 30px;
  background: #eaeff2;
  padding: 45px;
  padding-top: 20px;
  border-radius: 48px;
  filter: drop-shadow(7px 14px 22px rgba(0, 0, 0, 0.04));
  padding-bottom: 40px;
}

section#player-summary-section h3 {
  text-align: center;
  margin-bottom: 12px;
  font-size: 26px;
}

.player-summary-item .summary-team {
  font-size: 0;
  display: flex;
}

.tee-time-label {
  /* display: flex; */
  display: block;
  white-space: nowrap;
  min-width: 70px;
  font-size: 20px;
  font-weight: 700;
  color: #153749;
  text-align: center;
  margin-top: -5px;
  margin-bottom: 5px;
}

div#player-summary-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-pair:nth-child(odd) {
  /* background: #15374917; */
}

.pair-separator {
  color: #153749;
  font-size: 24px;
  font-weight: 800;
}

span.summary-hdcp {
  font-weight: 600;
  min-width: 100px;
}

span.summary-index {
  font-weight: 600;
}

span.summary-name {
  min-width: 200px;
}

span.summary-hdcp {
}

.player-summary-item:last-of-type {
  /* background: red; */
  justify-content: flex-end;
}

.tee-time-group {
  background: #ffffffad;
  border-radius: 18px;
  overflow: hidden;
  padding: 10px 20px;
}

div#placeholders .matches {
  display: none;
}

div#placeholders .placeholder {
  min-height: unset;
}

.WLT div:nth-child(3),
.WLT div:nth-child(4),
.WLT div:nth-child(5) {
  display: none;
}

.placeholder-wraper .placeholder:first-of-type {
  margin-bottom: 20px;
}

.team-hdcp-total {
  margin-top: 20px;
}

div#action-buttons {
  margin-top: 20px;
}

section.section-fligh-placeholders {
  padding-top: 20px;
  margin-bottom: 30px;
}

button#submit-tee-time-button {
  margin-bottom: 0;
}
.player-data h4 {
  white-space: pre;
}
.player-info {
  display: flex;
  gap: 10px;
  min-width: 250px;
  justify-content: revert-layer;
}

span.summary-index {
  min-width: 100px;
}

#override-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#override-popup > div {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  text-align: left;
}

#override-popup h2 {
  margin-top: 0;
  font-size: 32px;
  color: #143749;
}

#override-popup p {
  margin: 0px 0;
  padding: 0;
  line-height: 1.6;
}

#override-popup .violations-container {
  margin: 20px 0;
  padding: 15px;
  background: #fff3cd;

  border-radius: 4px;
}

#override-popup .violations-container h3 {
  margin-top: 0;
  color: #000;
  font-size: 28px;
}

#override-popup .button-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#override-popup .violation-item {
  margin-bottom: 15px;
  padding: 10px;
  background: white;
  border-radius: 12px;
  font-size: 18px;
}

#override-popup .violation-value {
  color: #dc3545;
  font-weight: bold;
}

#override-popup .violation-limit {
  color: #28a745;
  font-weight: bold;
}

#override-popup .violation-exceeded {
  color: #dc3545;
  font-weight: bold;
}

#override-cancel {
  padding: 10px 20px;

  background: #6c757d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  display: block;
  margin: 0;
  transition: background 0.3s;
}

#override-cancel:hover {
  background: #143749;
}

#override-confirm {
  padding: 10px 20px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  display: block;
  margin: 0;
  transition: background 0.3s;
}

#override-confirm:hover {
  background: #c82333;
}
ul.team-player-list.disabled {
  pointer-events: none;
}
