.table-hover .table-active:hover>td,
.table-hover .table-active:hover>th {
    background-color: rgba(19, 1E, 3B, .075)
}

.table .thead-dark th {
    color: #fff;
    background-color: #191E3B;
    border-color: #000099
}

.tournaments-header {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tournaments-header-mobile {
    margin-top: 20px;
    align-items: center;
}

.tournaments-header-mobile .tournaments-header-text-mobile {
     text-align: center;
}


.tournaments-header .genric-btn {

}

.tournaments-header .tournaments-header-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin-top: 30px;
}

.tournaments-header .tournaments-header-text a {
    text-align: center;
}

.tournaments-header h3:hover {
    color: #1568E3 !important;
    border: 1px 1px 1px 1px;
    border-radius: 3px;
    border-color: #1568E3 !important;
}

/*.tournaments_page {
    margin-top: 20px;
    width: 100% !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    display: flex !important;

}*/

.tournaments-page-description {
    background-color: rgba(252,219,50,0.3);
    border-radius: 10px;
    font: 14px / 24px open-sans;
    color: #191E3B !important;
    justify-content: center;
    padding: 30px 30px 25px;

    margin-top: 0;
    margin-bottom: 20px;
/*    margin-left: 30px;
    margin-right: 30px;*/
    max-width: 99% !important;

}
.tournaments-page-description p {
    color: #191E3B !important;
}

.tournaments-page-description ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-left: 0;
}

.tournaments-page-description ul li {
    color: #191E3B !important;

    margin-bottom: 15px;
    flex: 0 0 46%;
    display: flex;
}

.tournaments-page-description ul li:before {
    /*content: "✓";*/
    content: "•";
    margin-right: 10px;
}


@media (max-width: 575px) {
    .tournaments-page-description ul li {
        width: 100%;
        flex: 0 0 100%;
    }
}

[onClick] {
    cursor: pointer;
}

[onClick]:hover {
    background-color: rgba(19, 1E, 3B, .075)
}

.tool-panel {
    margin-top: 10px;
    text-align: start !important;
    /*height: 30px;*/
    height: auto;
}
@media (max-width: 575px) {
    .tool-panel {
        text-align: center !important;
        width: 130%;
    }
}
.pairings-text {
    min-height: 46vh;
}
.pairings-text p {
    color: #000;
}

.genric-btn-short {
    padding: 0 7px;
    margin-top: 5px;
}

.paid-participant {
    font-weight: 800;
}

/* START Tournament payment page */
.paypal-button-container {
    max-width: 300px;
    margin: 20px auto;
}

.loading-spinner {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.payment-status {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.bg-card-header {
    background-color: #006ab0 !important;
}
.text-white h4 {
    color: #fff !important;
}

.payment-container {
    min-height: 60vh;
    padding: 0 10px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .payment-container {
        min-height: 70vh;
        padding: 0 5px;
    }

    .card-body {
        padding: 1rem;
    }

    .list-group-item {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        min-height: 44px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .payment-container {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .card-header h4 {
        font-size: 1.2rem;
    }

    h5 {
        font-size: 1.1rem;
    }

    .payment-status {
        margin: 15px 0;
        padding: 12px;
        font-size: 0.85rem;
    }

    .paypal-button-container {
        margin: 15px auto;
    }
}

/* Улучшения для касаний */
.touch-friendly {
    min-height: 44px;
    padding: 12px 16px;
}

.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.adaptive-text {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.adaptive-heading {
    font-size: clamp(1.1rem, 4vw, 1.25rem);
}
/* END Tournament payment page */

/* START Tournament registration page */
.participant-item {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.participant-item:hover {
    background-color: #e9ecef;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
}

.modal-header .close:hover {
    opacity: 1;
}

.badge {
    font-size: 0.8em;
}

.modal-dialog {
    z-index: 99999;
}
.modal {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
    opacity: 0.5;
}

/* For Bootstrap 4/5 */
.modal.fade .modal-dialog {
    transform: translate(0, 0);
}

/* Ensure that the modal window is on top of everything */
.modal-content {
    position: relative;
    z-index: 1060;
}

/* Styles for validation */
.is-invalid {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3cpath d='M6 7v2'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Style for valid fields */
.is-valid {
    border-color: #198754 !important;
}
/* END Tournament registration page */
.fa-circle-check-wrapper .fa-circle-check {
  color: green;
}

.fa-circle-check-wrapper .already_registered {
  visibility: hidden;
  font-size: 10px;
  min-width: 150px;
  max-width: 400px;
  border-radius: 6px;
  padding: 5px 5px;
  position: absolute;
  z-index: 1;
  background: #FCDB32;
  color: #191E3B;
}

.fa-circle-check-wrapper:hover .already_registered {
    visibility: visible;
}

.fa-bookmark-wrapper .fa-bookmark {
    color: red;
}
.single_service_membership_dark .fa-bookmark-wrapper .new_tournament {
  position: absolute;
  z-index: 1;
  font-size: 10px;
  color: #FCDB32;
}

.single_service_membership .fa-bookmark-wrapper .new_tournament {
  position: absolute;
  z-index: 1;
  font-size: 10px;
  color: #191E3B;
}

.tournament_section_header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 20px;
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;*/
}

.tournament_section_header_left {
    text-align: left;
    font-size: 24px;
    font-weight: bold;
}

.tournament_section_header_right {
    text-align: right;
    font-size: 18px;
    color: #666;
}
.blog_area .single-post .go_to_the_list_of_participants {
    color: #191E3B !important;
    font-weight: 600;
    text-decoration: underline #191E3B;
    display: block;
    margin: 15px 0;
    text-align: center;
}

.blog_area .single-post .go_to_the_list_of_participants:hover {
    color: #1568E3 !important;
    text-decoration: underline #1568E3;
}