.club_owners {
    display: flex;
    justify-content: space-between;
}

.news_image_block img {
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.hide {
    display: none;
}

.select-container {
    display: flex;
    flex-direction: column;
}

.error {
    border: 2px solid red;
}

.save-btn,
.adj-sett {
    cursor: pointer;
}

.message_error {
    font-weight: bold;
    color: red;
}

.status-p.blocked {
    background-color: #dc3545;
}

.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

.error-text {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
}

.answer-row input[type="checkbox"]:checked + label,
.answer-row .mark-correct:checked {
    accent-color: #f58220;
    font-weight: bold;
}

.answer-row textarea {
    background-color: #fff;
}

.answer-row .form-check-input:checked {
    box-shadow: 0 0 0 2px #f58220;
}

/* NEWS BLOCKS */
.block-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.move-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    top: 6px;
}

/* Arrow button style */
.move-controls button {
    border: none;
    background: #eaeaea;
    color: #333;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.move-controls button:hover {
    background: #f52020;
    color: #fff;
    transform: translateY(-1px);
}

.block_content {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

.template-bl {
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem;
    position: relative;
    transition: all 0.25s ease;
}

.template-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.template-bl-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
}

.collapse-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, color 0.2s ease;
}

.collapse-toggle:hover {
    color: #f52020;
}

.collapse-toggle.rotated svg {
    transform: rotate(180deg);
}

.wrap-t-bl-fields {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 2000px;
    opacity: 1;
}

.wrap-t-bl-fields.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.del_block {
    right: 6px;
    top: 6px;
}

/* Save btn loader */
.save-btn .loader svg {
    vertical-align: middle;
}

/* Fix style bug: blue dot */
.action-btn2,
.action-btn2:hover {
    color: rgba(0, 0, 0, 0);
}

.view-notification img {
    height: 28px;
}

input[readonly],
textarea[readonly],
select[disabled],
input[disabled] {
    pointer-events: none;
    color: #db0909;
}

input[type="radio"][disabled]:checked + label,
input[type="checkbox"][disabled]:checked + label {
    opacity: 1;
    font-weight: 600;
    color: #db0909;
}
/* EXERCISE CARDS */
.exercise-card {
    background: #252525;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 100%;
}
.exercise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.3);
    border-color: var(--color1);
}
.exercise-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #1a1a1a;
}
.exercise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.exercise-card:hover .exercise-image img {
    transform: scale(1.05);
}
.exercise-details {
    padding: 1.25rem;
}
.cat-badge {
    display: inline-block;
    background: rgba(251, 255, 0, 0.1);
    color: #FBFF00;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-right: 4px;
    margin-bottom: 8px;
    border: 1px solid rgba(251, 255, 0, 0.2);
}
.exercise-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.exercise-time {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}
.exercise-time img {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    opacity: 0.7;
}
.del_exercise {
    top: 10px;
    right: 10px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.del_exercise:hover {
    background: #e50914;
    transform: scale(1.1);
}
.del_exercise svg {
    width: 14px;
    fill: #fff;
}
.exercise-link {
    text-decoration: none !important;
}

/* Pagination Styling */
.pagination-container {
    background: #252525;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 3rem;
}
.pagination-btn {
    background: transparent !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.pagination-btn:hover:not(:disabled) {
    background: var(--color1) !important;
    color: #000 !important;
    border-color: var(--color1) !important;
}
.pagination-btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}
.pagination-info {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    min-width: 120px;
    text-align: center;
}

.wrap-filter.style2 {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid #333;
}

.save-draft {
    background-color: #555;
}

.s1-btn.cancel-btn {
    background-color: #dc3545;
    border-color: #dc3545;
    padding: 1.125rem 3.5rem;
    margin-bottom: 0rem;
    margin-top: 2rem;
    display: block;
    width: fit-content;
    margin-right: 0;
    margin-left: auto;
    font-size: 0.9rem;
}
.s1-btn.cancel-btn:hover {
    background-color: #b02a37;
    border-color: #b02a37;
}

.target-group .wrap-ir {
    max-width: 300px;
}

/* Custom Checkbox Styling */
.cstm-input-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    background-color: var(--color1);
    vertical-align: sub;
}

.cstm-input-checkbox:checked {
    background-color: var(--color1);
}

.cstm-input-checkbox::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: var(--color3);
    border-radius: 2px;
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cstm-input-checkbox:checked::before {
    display: block;
}
/* Searchable Select Component */
.searchable-select-wrapper {
    position: relative;
    width: 100%;
}

.searchable-select-input {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.searchable-select-input:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.searchable-select-input.active {
    border-color: #e50914;
    background-color: rgba(255, 255, 255, 0.12);
}

.searchable-select-input .search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 0.9rem;
    padding: 0;
}

.searchable-select-input .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.searchable-select-input .dropdown-icon {
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease;
}

.searchable-select-input.active .dropdown-icon {
    transform: rotate(180deg);
}

.searchable-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background-color: rgba(30, 30, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.searchable-dropdown::-webkit-scrollbar {
    width: 8px;
}

.searchable-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.searchable-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.searchable-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.searchable-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9rem;
}

.searchable-dropdown .dropdown-item:hover {
    background-color: rgba(229, 9, 20, 0.15);
    color: #e50914;
}

.searchable-dropdown .dropdown-item.selected {
    background-color: rgba(229, 9, 20, 0.25);
    color: #e50914;
    font-weight: 600;
}

.searchable-dropdown .dropdown-item.hidden {
    display: none;
}

.searchable-dropdown .no-results {
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Selected badges */
.selected-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selected-badges .user-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    gap: 0.5rem;
}

.selected-badges .user-badge .remove-user {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    line-height: 1;
}

.selected-badges .user-badge .remove-user:hover {
    opacity: 1;
}

/* Team Modal Dropdown Fixes */
#addPModal .dropdown-content,
#addTModal .dropdown-content {
    max-height: 300px !important;
    overflow-y: auto;
    z-index: 1000;
}

#addPModal .dropdown-content div,
#addTModal .dropdown-content div {
    white-space: normal;
    word-wrap: break-word;
    padding: 10px 12px;
    line-height: 1.4;
}

#addPModal .selected-item,
#addTModal .selected-item {
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    max-width: 100%;
}

/* --- Single players ------------------------------------------------------ */

/* A one-button actions cell.
   .group-btn is a red pill sized for the edit+delete pair every other admin
   table has. With only the edit button in it, the other half shows as a stray
   red sliver next to the row. */
.std-table .actions .group-btn.single-action,
.std-table .actions .group-btn.single-action .action-btn2 {
    background-color: transparent;
    border-radius: 0 10px 10px 0;
}

/* The detail page.
   Deliberately not .std-table: its <th> is the white header pill of a list, so
   used as a row label it paints half of every line white. */

.sp-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.sp-avatar {
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 18px;
    background-color: var(--color4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lexend Deca';
    font-size: 1.35rem;
    font-weight: 700;
}

.sp-name {
    font-family: 'Lexend Deca';
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
}

.sp-meta {
    font-size: .95rem;
    font-weight: 300;
    opacity: .6;
}

.sp-badge {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .3rem .7rem;
    border-radius: 999px;
    background-color: #1CEA73;
    color: var(--color2);
    white-space: nowrap;
}

.sp-badge.is-waiting {
    background-color: orange;
}

.sp-badge.is-off {
    background-color: var(--color6);
    color: var(--color1);
}

.sp-badge.is-blocked {
    background-color: var(--color3);
    color: var(--color1);
}

.sp-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Always three tracks, even when a player without a subscription only fills
   one: a lone tile stretched across the page puts the most emphasis on the
   least information, and the tiles would move between players. */
@media (min-width: 900px) {
    .sp-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sp-tile {
    background-color: var(--color4);
    border-radius: 16px;
    padding: 1.15rem 1.35rem;
}

.sp-tile .t {
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .65;
    margin-bottom: .35rem;
}

.sp-tile .b {
    font-family: 'Lexend Deca';
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.15;
}

/* Red means money still moves. A cancelled subscription's end date is the one
   date that costs nothing, so it stays neutral. */
.sp-tile.is-charge {
    background-color: var(--color3);
}

.sp-tile.is-charge .t {
    opacity: .85;
}

.sp-grid {
    background-color: var(--color4);
    border-radius: 20px;
    padding: .5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
}

.sp-grid dl {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin: 0;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

/* The grid always holds six entries, so the last two are the bottom row. */
.sp-grid dl:nth-last-child(-n+2) {
    border-bottom: 0;
}

.sp-grid dt {
    font-size: .875rem;
    font-weight: 300;
    opacity: .6;
    white-space: nowrap;
}

/* Long values (an e-mail address) wrap inside the cell rather than widen it. */
.sp-grid dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

@media (max-width: 900px) {
    .sp-grid {
        grid-template-columns: 1fr;
    }

    .sp-grid dl:nth-last-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .sp-grid dl:last-child {
        border-bottom: 0;
    }

    .sp-name {
        font-size: 1.75rem;
    }
}
