/* =========================================================
   APP / MODULE STYLES
   File: style.css
   ========================================================= */

/* =========================================================
   PLAYER FORM
   ========================================================= */
.player-form-dark .form-label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
}

.player-form-dark .form-control,
.player-form-dark .form-select {
    min-height: 46px;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 10px;
    box-shadow: none !important;
}

.player-form-dark .form-control::placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
}

.player-form-dark .form-control:focus,
.player-form-dark .form-select:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: #5b9cff !important;
    box-shadow: 0 0 0 0.2rem rgba(91, 156, 255, 0.15) !important;
}

.player-form-dark .text-muted,
.player-form-dark small.text-muted {
    color: rgba(255, 255, 255, 0.45) !important;
}

.player-form-dark .invalid-feedback {
    display: block;
}

.player-form-dark .form-select option {
    color: #111111;
    background-color: #ffffff;
}

/* =========================================================
   FILE INPUTS
   ========================================================= */
.player-form-dark input[type="file"].form-control {
    padding: 8px 12px;
    color: #ffffff !important;
}

.player-form-dark input[type="file"].form-control::-webkit-file-upload-button,
.player-form-dark input[type="file"].form-control::file-selector-button {
    padding: 8px 12px;
    margin-right: 12px;
    color: #ffffff;
    cursor: pointer;
    background: #c29848;
    border: 0;
    border-radius: 8px;
}

/* =========================================================
   PLAYER IMAGE PREVIEWS
   ========================================================= */
.player-preview-dp {
    width: 90px;
    height: 90px;
    object-fit: cover;
    background: #1e1e1e;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.player-preview-cover {
    width: 180px;
    height: 90px;
    object-fit: cover;
    background: #1e1e1e;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

/* =========================================================
   SELECT2
   ========================================================= */
.select2-container--default .select2-selection--single {
    height: 46px !important;
    padding: 8px 12px !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px !important;
    color: #ffffff !important;
    padding-left: 0 !important;
    padding-right: 20px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 10px !important;
    height: 44px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #ffffff transparent transparent transparent !important;
}

.select2-container--default .select2-dropdown {
    overflow: hidden;
    background: #1e1e1e !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
}

.select2-container--default .select2-search--dropdown {
    padding: 8px !important;
    background: #1e1e1e !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    outline: none !important;
}

.select2-container--default .select2-results__option {
    padding: 10px 12px !important;
    color: #ffffff !important;
    background-color: #1e1e1e !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.select2-container--default .select2-results__option--selected {
    color: #ffffff !important;
    background-color: #16213e !important;
}

.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__options li.select2-results__option--highlighted,
.select2-container--default .select2-results__option--selected.select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
    color: #ffffff !important;
    background-color: #c29848 !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #5b9cff !important;
    box-shadow: 0 0 0 0.2rem rgba(91, 156, 255, 0.15) !important;
}

/* =========================================================
   PLAYERS PAGE
   ========================================================= */
.page-subtitle {
    color: rgba(255, 255, 255, 0.68);
}

.players-card,
.player-stat-card {
    color: #ffffff;
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
}

.players-card .card-header,
.players-card .card-body,
.player-stat-card .card-body {
    color: #ffffff;
}

.players-card-title {
    color: #ffffff;
    font-weight: 700;
}

.players-card-subtitle {
    color: rgba(255, 255, 255, 0.62);
}

.player-stat-label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

.player-stat-value {
    color: #ffffff;
    font-weight: 700;
}

.player-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 22px;
    border-radius: 12px;
}

.player-stat-icon-blue {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.18);
}

.player-stat-icon-green {
    color: #20c997;
    background: rgba(32, 201, 151, 0.18);
}

.player-stat-icon-gold {
    color: #c29848;
    background: rgba(194, 152, 72, 0.18);
}

/* =========================================================
   PLAYERS TABLE
   ========================================================= */
.players-table {
    color: #ffffff !important;
    margin-bottom: 0;
}

.players-table thead th {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.players-table tbody td {
    padding-top: 14px;
    padding-bottom: 14px;
    color: rgba(255, 255, 255, 0.92) !important;
    vertical-align: middle;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.players-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.players-table tbody tr:hover td {
    color: #ffffff !important;
}

/* =========================================================
   PLAYER CELL
   ========================================================= */
.player-table-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    background: #1f1f1f;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.player-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff !important;
}

.player-id {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.60) !important;
}

.player-empty {
    color: rgba(255, 255, 255, 0.55) !important;
}

.player-nickname-badge {
    color: #7ea5ff;
    background: rgba(32, 51, 120, 0.35);
    border: 1px solid rgba(94, 124, 255, 0.28);
}

/* =========================================================
   PLAYER BADGES
   ========================================================= */
.badge-right {
    color: #2d6cdf;
    background: #dbe8ff;
    border: 1px solid #b8d0ff;
}

.badge-left {
    color: #b78200;
    background: #fff0bf;
    border: 1px solid #ffe08a;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-player-secondary {
    color: #d9e1ff;
    background: rgba(30, 45, 112, 0.50);
    border: 1px solid rgba(102, 124, 255, 0.22);
}

.btn-player-secondary:hover,
.btn-player-secondary:focus {
    color: #ffffff;
    background: rgba(42, 62, 150, 0.70);
    border-color: rgba(102, 124, 255, 0.40);
}

.empty-state-icon {
    color: rgba(255, 255, 255, 0.45);
}

.empty-state-title {
    color: #ffffff;
}

.empty-state-text {
    color: rgba(255, 255, 255, 0.62);
}

/* =========================================================
   PLAYER CREATE / EDIT HELPERS
   ========================================================= */
.player-upload-card {
    height: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.player-help-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.58);
}

.player-form-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.player-form-dark .is-invalid {
    border-color: rgba(255, 99, 132, 0.65) !important;
}

.player-form-dark .is-invalid:focus {
    border-color: rgba(255, 99, 132, 0.75) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 99, 132, 0.12) !important;
}

/* =========================================================
   PLAYER CHECKBOX / EDIT HELPERS
   ========================================================= */
.player-check .form-check-input {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
}

.player-check .form-check-input:checked {
    background-color: #c29848;
    border-color: #c29848;
}

.player-check .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(194, 152, 72, 0.18);
}

.player-check .form-check-label {
    color: rgba(255, 255, 255, 0.76);
}

/* =========================================================
   MATCHES PAGE
   ========================================================= */
.matches-card {
    color: #ffffff;
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
}

.matches-card-title {
    color: #ffffff;
    font-weight: 700;
}

.matches-card-subtitle {
    color: rgba(255, 255, 255, 0.62);
}

.matches-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
}

.matches-filter-group {
    min-width: 220px;
    flex: 1 1 220px;
}

.matches-filter-group-small {
    min-width: 160px;
    flex: 0 0 160px;
}

.matches-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

.match-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.match-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.match-card-meta {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
}

.match-card-status {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
}

.matches-table {
    color: #ffffff !important;
    margin-bottom: 0;
}

.matches-table thead th {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.matches-table tbody td {
    padding-top: 14px;
    padding-bottom: 14px;
    color: rgba(255, 255, 255, 0.92) !important;
    vertical-align: middle;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.matches-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.matches-table tbody tr:hover td {
    color: #ffffff !important;
}

.match-score {
    font-weight: 700;
    color: #ffffff !important;
}

.matches-empty-row,
.matches-empty-text {
    color: rgba(255, 255, 255, 0.62) !important;
}

.badge-type {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid transparent;
}

.badge-singles {
    color: #6ea8fe;
    background: rgba(13, 110, 253, 0.14);
    border-color: rgba(13, 110, 253, 0.35);
}

.badge-doubles {
    color: #7ee2b8;
    background: rgba(25, 135, 84, 0.14);
    border-color: rgba(25, 135, 84, 0.35);
}

.badge-svd {
    color: #ffda6a;
    background: rgba(255, 193, 7, 0.14);
    border-color: rgba(255, 193, 7, 0.35);
}

/* =========================================================
   MULTI SELECT
   ========================================================= */
.multi-select {
    position: relative;
}

.multi-select-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 46px;
    padding: 8px 12px;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
}

.multi-select-input .placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.multi-select-input .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.multi-select-input .chevron {
    margin-left: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.multi-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 15;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    padding: 10px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.multi-select.open .multi-select-dropdown {
    display: block;
}

.multi-select-dropdown .option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    color: #ffffff;
    cursor: pointer;
    border-radius: 8px;
}

.multi-select-dropdown .option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.multi-select-dropdown .option input[type="checkbox"] {
    accent-color: #c29848;
}

.multi-select .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: auto;
    margin: 0;
    padding: 4px 10px;
    font-size: 12px;
    line-height: normal;
    color: #ffffff;
    background: rgba(194, 152, 72, 0.18);
    border: 1px solid rgba(194, 152, 72, 0.35);
    border-radius: 999px;
}

.multi-select .chip-remove {
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    .match-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .matches-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .matches-filter-group,
    .matches-filter-group-small {
        min-width: 100%;
        flex: 1 1 100%;
    }

    .matches-filter-actions {
        width: 100%;
    }
}

/* =========================================================
   MATCH FILTERS
   ========================================================= */
.matches-filter-bar,
.matches-filter-group,
.matches-card,
.matches-card .card-body {
    overflow: visible;
}

.matches-filter-group .form-label,
.matches-filter-group-small .form-label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

.matches-filter-group .form-control,
.matches-filter-group .form-select,
.matches-filter-group-small .form-control,
.matches-filter-group-small .form-select {
    min-height: 46px;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 10px;
    box-shadow: none !important;
}

.matches-filter-group .form-control::placeholder,
.matches-filter-group-small .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
}

.matches-filter-group .form-control:focus,
.matches-filter-group .form-select:focus,
.matches-filter-group-small .form-control:focus,
.matches-filter-group-small .form-select:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: #5b9cff !important;
    box-shadow: 0 0 0 0.2rem rgba(91, 156, 255, 0.15) !important;
}

.matches-filter-group .form-select option,
.matches-filter-group-small .form-select option {
    color: #111111;
    background-color: #ffffff;
}

/* =========================================================
   MATCHES MULTI SELECT
   ========================================================= */
.matches-multi-select {
    position: relative;
    width: 100%;
}

.matches-multi-select-input {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    min-height: 46px;
    padding: 8px 12px;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.matches-multi-select.open .matches-multi-select-input,
.matches-multi-select-input:focus {
    border-color: #5b9cff;
    box-shadow: 0 0 0 0.2rem rgba(91, 156, 255, 0.15);
}

.matches-multi-placeholder {
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.matches-multi-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1 1 auto;
}

.matches-multi-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin: 0;
    line-height: 1;
    font-size: 12px;
    color: #ffffff;
    background: rgba(194, 152, 72, 0.18);
    border: 1px solid rgba(194, 152, 72, 0.35);
    border-radius: 999px;
}

.matches-multi-chip-text {
    color: #ffffff;
}

.matches-multi-chip-remove {
    cursor: pointer;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
}

.matches-multi-chevron {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1;
}

.matches-multi-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    padding: 10px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.matches-multi-select.open .matches-multi-dropdown {
    display: block;
}

.matches-multi-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    color: #ffffff;
    cursor: pointer;
    border-radius: 8px;
}

.matches-multi-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.matches-multi-option input[type="checkbox"] {
    accent-color: #c29848;
    cursor: pointer;
}

.matches-multi-option span {
    color: #ffffff;
}

/* =========================================================
   MATCH FILTER ACTIONS
   ========================================================= */
.matches-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}


/* =========================================================
   MATCH CREATE / EDIT FORM
   ========================================================= */
.match-form-dark .form-label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

.match-form-dark .form-control,
.match-form-dark .form-select {
    min-height: 46px;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 10px;
    box-shadow: none !important;
}

.match-form-dark .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
}

.match-form-dark .form-control:focus,
.match-form-dark .form-select:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: #5b9cff !important;
    box-shadow: 0 0 0 0.2rem rgba(91, 156, 255, 0.15) !important;
}

.match-form-dark .form-select option {
    color: #111111;
    background-color: #ffffff;
}

.match-help-text {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.58);
}

.match-type-hint {
    padding: 10px 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.match-check .form-check-input {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
}

.match-check .form-check-input:checked {
    background-color: #c29848;
    border-color: #c29848;
}

.match-check .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(194, 152, 72, 0.18);
}

.match-check .form-check-label {
    color: rgba(255, 255, 255, 0.82);
}

.match-multi-list {
    min-height: 240px !important;
    padding: 8px !important;
}

.match-multi-list option {
    padding: 8px 10px;
    color: #ffffff;
    background: #1f1f1f;
    border-radius: 6px;
}

.match-multi-list option:checked,
.match-multi-list option:selected {
    color: #ffffff;
    background: linear-gradient(0deg, rgba(194, 152, 72, 0.75), rgba(194, 152, 72, 0.75));
}

.match-multi-list option:disabled {
    color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 1199px) {
    .match-multi-list {
        min-height: 180px !important;
    }
}

/* =========================================================
   MATCH SHOW PAGE
   ========================================================= */
.matches-show-title h3 {
    color: #ffffff;
    font-weight: 700;
}

.matches-show-title-meta {
    font-size: 0.8em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
}

.match-side-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.match-side-name {
    color: #ffffff;
}

.match-side-list {
    margin: 0;
    padding-left: 18px;
}

.match-side-list li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.88);
}

.match-side-player {
    font-weight: 600;
    color: #ffffff;
}

.match-side-player-stats {
    margin-top: 2px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
}

.match-settings-item {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.82);
}

.match-status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    text-transform: capitalize;
    border: 1px solid transparent;
}

.match-status-badge.status-completed {
    color: #9cf0c6;
    background: rgba(6, 95, 70, 0.25);
    border-color: rgba(6, 95, 70, 0.45);
}

.match-status-badge.status-pending {
    color: #ffd08a;
    background: rgba(146, 64, 14, 0.25);
    border-color: rgba(146, 64, 14, 0.45);
}

.match-status-badge.status-in_progress {
    color: #a9c4ff;
    background: rgba(29, 78, 216, 0.25);
    border-color: rgba(29, 78, 216, 0.45);
}

.match-reds-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(194, 152, 72, 0.20);
    border: 1px solid rgba(194, 152, 72, 0.38);
    border-radius: 999px;
}

.match-show-table .match-time-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.match-saved-label {
    color: rgba(255, 255, 255, 0.60);
    font-size: 13px;
    font-weight: 600;
}

.match-temp-progress-note {
    padding: 10px 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.match-ok-chip {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    color: #ffffff;
    background: rgba(194, 152, 72, 0.20);
    border: 1px solid rgba(194, 152, 72, 0.35);
    border-radius: 999px;
}

/* =========================================================
   TURN SETUP BOX
   ========================================================= */
.turn-setup-box {
    padding: 12px;
    background: rgba(2, 6, 23, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.turn-setup-box label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.turn-setup-box select {
    width: 100%;
    box-sizing: border-box;
    min-height: 38px;
    padding: 6px 10px;
    font-size: 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
}

.turn-setup-box select:focus {
    outline: none;
    border-color: #5b9cff;
    box-shadow: 0 0 0 0.15rem rgba(91, 156, 255, 0.15);
}

.turn-setup-box select option {
    color: #111111;
    background-color: #ffffff;
}

.turn-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.side-a-box,
.side-b-box {
    padding: 10px;
    background: rgba(2, 6, 23, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    .turn-selects {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .match-show-table {
        min-width: 980px;
    }

    .turn-setup-box {
        min-width: 320px;
    }
}

@media (max-width: 480px) {
    .turn-setup-box {
        min-width: 360px;
    }
}

.match-frame-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.match-frame-meta strong {
    color: #ffffff;
}

.btn-warning {
    color: #111111;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-warning:hover,
.btn-warning:focus {
    color: #111111;
    background-color: #e0a800;
    border-color: #e0a800;
}
