/* Загальний стиль для breadcrumbs */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 10px 15px;
    background-color: #fff;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumbs li {
    display: inline;
    margin-right: 5px;
}

.breadcrumbs li a {
    text-decoration: none;
    color: #353535;
    transition: color 0.3s ease;
    font-weight: bold;
}

.breadcrumbs li a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumbs li span {
    color: #6c757d;
}

/* Відокремлення пунктів */
.breadcrumbs li::after {
    content: '>';
    margin-left: 5px;
    color: #6c757d;
}

.breadcrumbs li:last-child::after {
    content: '';
    margin-left: 0;
}

/* Адаптивність */
@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 12px;
        padding: 8px 10px;
    }
}

@media (max-width: 576px) {


    .breadcrumbs li a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.tournament-page
{
    margin-bottom: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
}

/* Основний стиль контейнера пагінації */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

/* Стиль для кожного пункту пагінації */
.pagination li {
    margin: 0 5px;
    font-size: 14px;
}

/* Ссилки в пагінації */
.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

/* Активна сторінка */
.pagination .active {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    cursor: default;
    pointer-events: none;
    display: inline-block;
}

/* Наведення курсору на ссилку */
.pagination a:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Деактивовані кнопки (для "Назад" або "Далі", якщо неактивні) */
.pagination .disabled {
    color: #ccc;
    background-color: #f9f9f9;
    border-color: #ddd;
    cursor: not-allowed;
    pointer-events: none;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .pagination a, .pagination .active {
        padding: 6px 10px;
        font-size: 12px;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .pagination a, .pagination .active {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* Tabs styles */
.tabs {
    margin-top: 20px;
}

.nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    border-bottom: 2px solid #ddd;
}

.nav li {
    margin: 0;
}

.nav-tabs li {
    padding: 10px 15px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background-color: #f9f9f9;
    cursor: pointer;
}

.nav-tabs li.active {
    background-color: #fff;
    border-bottom: 2px solid #fff;
    font-weight: bold;
}

.nav-tabs a {
    text-decoration: none;
    color: #555;
    display: block;
}

.nav-tabs a:hover {
    color: #000;
}

/* Вкладки */
.tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-top: 30px;
}

.tabs .tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.tabs .tab:hover,
.tabs .tab.active {
    background-color: #007bff;
    color: #fff;
    border-radius: 8px 8px 0 0;
}

/* Контент вкладок */
.tab-content {
    /*
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;*/
    padding: 10px 0;
}

/* Таблиця */
.tab-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.tab-content table th,
.tab-content table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 14px;
}

.tab-content table th {
    background-color: #f5f5f5;
    color: #444;
    font-weight: bold;
}

.tab-content table td {
    background-color: #fff;
    color: #666;
}

.tab-content table tr:hover {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {


    .tabs {
        flex-wrap: wrap;
    }

    .tabs .tab {
        flex: 1 1 100%;
    }

}

.label {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.label-success {
    background-color: #28a745; /* Зелений колір для успішних міток */
    border: 1px solid #1e7e34; /* Темніша рамка для контрасту */
}

.label-success:hover {
    background-color: #218838; /* Трохи темніший зелений при наведенні */
    border-color: #1c7430; /* Відповідна темніша рамка */
}

.label-success:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5); /* Тінь при фокусі */
}

.label-success:active {
    background-color: #1e7e34; /* Темно-зелений при натисканні */
    border-color: #1c7430;
}

.label-success.disabled,
.label-success[disabled] {
    background-color: #c3e6cb; /* Світліший зелений для неактивних міток */
    border-color: #8fd19e;
    cursor: not-allowed;
    opacity: 0.65;
}