.text-right {
    text-align: right;
    width: 100%;
}

.text-center {
    text-align: center;
    width: 100%;
}

.link-center {
    margin-top: 16px;
    text-align: center;
}

.link-center a {
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}

.input-error {
    font-size: 12px;
    color: var(--color-danger);
    margin-top: 4px;
}

/* Código 6 dígitos */

.code-wrapper {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.code-wrapper input {
    width: 44px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* =================================================
   FOOTER USER INFO
================================================= */

.footer-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.user-name {
    font-weight: bold;
    font-size: 14px;
}

.module-name {
    font-size: 12px;
    opacity: 0.7;
}

/* FAB */

.fab-btn {
    position: absolute;
    top: -45px;
    min-width: 90px;
    height: 42px;
    padding: 0 18px;
    border-radius: 30px;
    border: none;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fab-btn i {
    font-size: 20px;
}

.avatar-btn i {
    font-size: 28px;
    cursor: pointer;
}

/* =================================================
   TOAST
================================================= */

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #16a34a;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    z-index: 999;
    animation: fadeInOut 3s forwards;
}

/* =================================================
   MODAL
================================================= */

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-gray-1);
    color: #1f2933;
    padding: 22px;
    border-radius: 16px;
    min-width: 260px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: fadeIn 0.2s ease;
}

.modal-option {
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.modal-option:hover {
    background: var(--color-success);
    color: #ffffff;
    transform: scale(1.02);
}

.modal-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-right i {
    font-size: 20px;
    opacity: 0.6;
}

/* =================================================
   LOGIN CARD
================================================= */

.login-card {
    background: #fff;
    width: 100%;
    max-width: 380px;
    padding: 32px;
    border-radius: 12px;
}

.login-card h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 22px;
    color: #1f2933;
}

/* =================================================
   APP BUTTON SYSTEM  (MINIMAL + SPORT TOUCH)
================================================= */

/* =================================================
   APP BUTTON SYSTEM  (REFINADO)
================================================= */

.app-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 7px 14px;
    font-size: 13.5px;
    font-weight: 500;

    border-radius: 4px;
    border: 1px solid var(--field-green-1);

    background: transparent;
    color: var(--field-green-1);

    cursor: pointer;

    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

/* Hover */
.app-button:hover {
    background: rgba(106,163,127,0.1);
}

/* Active deportivo */
.app-button.is-active {
    background: rgba(106,163,127,0.15);
    position: relative;
}

.app-button.is-active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: var(--field-green-1);
}

/* Sólido */
.app-button.solid {
    background: var(--field-green-1);
    color: #ffffff;
}

.app-button.solid:hover {
    background: var(--field-green-2);
    border-color: var(--field-green-2);
}

/* Danger */
.app-button.danger {
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.app-button.danger:hover {
    background: rgba(220,38,38,0.1);
}

/* Tamaños */
.app-button.sm {
    padding: 5px 10px;
    font-size: 12.5px;
}

.app-button.lg {
    padding: 9px 18px;
    font-size: 14.5px;
}

/* Disabled */
.app-button:disabled,
.app-button.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Icono interno */

.app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 16px;
    line-height: 1;
}

/* =================================================
   RESTO DE COMPONENTES EXISTENTES
================================================= */

.login-group {
    margin-bottom: 14px;
}

.login-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.login-group input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.login-options {
    margin: 12px 0 18px;
    font-size: 13px;
}

.login-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.login-button:disabled {
    background: var(--color-gray-2);
    cursor: not-allowed;
}


.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 42px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #6b7280;
}

/* =================================================
   APP SURFACE (BASE CONTAINER)
================================================= */

.app-surface {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 20px;

    border-radius: 6px;
    padding: 6px;

    border: 1px solid rgba(255,255,255,0.4);
}
.app-surface-transparente {
    background: transparent;
    padding-bottom: 10px;
}

/* =================================================
   ================================================
   APP INPUT SYSTEM (MINIMAL + SPORT TOUCH)
   ================================================
================================================= */

.app-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;

    border-radius: 4px;
    border: 1px solid #d1d5db;

    background: #ffffff;
    color: #1f2933;

    transition: border-color 0.15s ease, background 0.15s ease;
}

/* Focus */
.app-input:focus {
    outline: none;
    border-color: var(--field-green-1);
    background: rgba(106,163,127,0.05);
}

/* Disabled */
.app-input:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Error */
.app-input.is-error {
    border-color: var(--color-danger);
    background: rgba(220,38,38,0.05);
}

/* Textarea */
.app-textarea {
    resize: vertical;
    min-height: 90px;
}

/* Label */
.app-label {
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
    color: #374151;
}

/* Field container */
.app-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* =================================================
   INPUT WITH ICON
================================================= */

.app-input-wrapper {
    position: relative;
    width: 100%;
}

.app-input-wrapper.has-left-icon .app-input {
    padding-left: 34px;
}


/* Password toggle */

.app-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.6;
    cursor: pointer;
    user-select: none;
}

.app-password-toggle:hover {
    opacity: 1;
}

.app-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-password-toggle:hover {
    opacity: 1;
}

/* Tamaño uniforme */
.app-password-toggle svg {
    width: 18px;
    height: 18px;
}

/* Ocultamos el icono cerrado por defecto */
.eye-closed {
    display: none;
}

/* Cuando esté activo */
.app-password-toggle.active .eye-open {
    display: none;
}

.app-password-toggle.active .eye-closed {
    display: block;
}

.app-input-icon-left {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.6;
}

/* Icon right */
.app-input-wrapper.icon-right .app-input {
    padding-right: 34px;
}

.app-input-icon-right {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.6;
    cursor: pointer;
}

/* =================================================
   APP SELECT
================================================= */

.app-select-wrapper {
    position: relative;
    width: 100%;
}

.app-select {
    width: 100%;
    padding: 8px 36px 8px 12px;
    font-size: 14px;

    border-radius: 4px;
    border: 1px solid #d1d5db;

    background: #ffffff;
    color: #1f2933;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    transition: border-color 0.15s ease, background 0.15s ease;
}

.app-select:focus {
    outline: none;
    border-color: var(--field-green-1);
    background: rgba(106,163,127,0.05);
}

/* Flecha personalizada */
.app-select-wrapper::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;

    border-right: 2px solid var(--field-green-1);
    border-bottom: 2px solid var(--field-green-1);

    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

/* =================================================
   APP CHECKBOX
================================================= */

.app-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.app-checkbox input {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1.5px solid #9ca3af;
    border-radius: 4px;
    position: relative;
    transition: all 0.15s ease;
}

/* Checked */
.app-checkbox input:checked + .checkmark {
    background: var(--field-green-1);
    border-color: var(--field-green-1);
}

.app-checkbox input:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Hover */
.app-checkbox:hover .checkmark {
    border-color: var(--field-green-1);
}

/* =================================================
   APP RADIO
================================================= */

.app-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    margin-right: 16px;
}

.app-radio input {
    display: none;
}

.radiomark {
    width: 16px;
    height: 16px;
    border: 1.5px solid #9ca3af;
    border-radius: 50%;
    position: relative;
    transition: all 0.15s ease;
}

/* Checked */
.app-radio input:checked + .radiomark {
    border-color: var(--field-green-1);
}

.app-radio input:checked + .radiomark::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--field-green-1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Hover */
.app-radio:hover .radiomark {
    border-color: var(--field-green-1);
}

/* =================================================
   APP OPTIONS ROW
================================================= */

.app-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Ajustadas considerando gap */
.opt-100 { flex: 0 0 100%; }
.opt-75  { flex: 0 0 calc(75% - 9px); }
.opt-50  { flex: 0 0 calc(50% - 6px); }
.opt-25  { flex: 0 0 calc(25% - 9px); }

/* =================================================
   APP CARD
================================================= */

.app-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.2s ease, transform 0.15s ease;
    margin-bottom: 5px !important;
}

.app-card:hover {
    border-color: var(--field-green-1);
}

/* Header */
.app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.app-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2933;
}

.app-card-subtitle {
    font-size: 13px;
    color: #6b7280;
}

/* Body */
.app-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Footer */
.app-card-footer {
    border-top: 1px solid #f0f2f4;
    padding-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* =================================================
   CARD METRIC
================================================= */

.app-card-metric {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-metric-label {
    font-size: 13px;
    color: #6b7280;
}

.app-metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--field-green-1);
}

.app-metric-trend {
    font-size: 12px;
    font-weight: 500;
}

.trend-up {
    color: #16a34a;
}

.trend-down {
    color: #dc2626;
}

.app-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-list-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f4;
    font-size: 14px;
}

.app-list-item:last-child {
    border-bottom: none;
}

/* =================================================
   APP TABLE PANEL ADMIN
================================================= */

.app-table-container {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

/* Header y Footer */
.app-table-header,
.app-table-footer {
    background: var(--field-green-1);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Body scrollable */
.app-table-body {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
}

/* Ocultar scrollbars */
.app-table-body::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

.app-table-body {
    scrollbar-width: none;
}

/* Filas */
[class^="app-table-row"] {
    display: grid;
    align-items: center;
    padding: 10px 14px;
    font-size: 14px;
    transition: background 0.15s ease;
}

/* ===============================
   TABLA CON CHECKBOX / RADIO
================================= */

.app-table-pro.has-check .app-table-row {
    grid-template-columns: 50px 2fr 1fr 1fr 1fr;
}

/* ===============================
   TABLA NORMAL (SIN CHECK)
================================= */

.app-table-pro:not(.has-check) .app-table-row {
    grid-template-columns: 2fr 1fr 1fr 1fr;
}
.app-table-pro .app-table-row-3 { grid-template-columns: 2fr repeat(2, 1fr); }
.app-table-pro .app-table-row-4 { grid-template-columns: 2fr repeat(3, 1fr); }
.app-table-pro .app-table-row-5 { grid-template-columns: 2fr repeat(4, 1fr); }
.app-table-pro .app-table-row-6 { grid-template-columns: 2fr repeat(5, 1fr); }
.app-table-pro .app-table-row-7 { grid-template-columns: 2fr repeat(6, 1fr); }
.app-table-pro .app-table-row-8 { grid-template-columns: 2fr repeat(7, 1fr); }
.app-table-pro .app-table-row-9 { grid-template-columns: 2fr repeat(8, 1fr); }
.app-table-pro .app-table-row-10 { grid-template-columns: 2fr repeat(9, 1fr); }
.app-table-pro .app-table-row-11 { grid-template-columns: 2fr repeat(10, 1fr); }



/* Separadores */
.app-table-body [class^="app-table-row"] {
    border-bottom: 1px solid #f0f2f4;
}
.app-table-body [class^="app-table-row"]:hover {
    background: rgba(106, 163, 127, 0.05);
}

/* Footer más oscuro */
.app-table-footer {
    background: #2f6f55;
}

/* =================================================
   APP TABLE PRO
================================================= */

.app-table-pro {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

/* Header y Footer */
.app-table-header {
    background: var(--field-green-1);
    color: white;
    font-weight: 600;
}

.app-table-footer {
    background: #2f6f55;
    color: white;
}

/* Body */
.app-table-body {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
}

/* Ocultar scrollbars */
.app-table-body::-webkit-scrollbar {
    width: 0;
}
.app-table-body {
    scrollbar-width: none;
}

/* Filas */
.app-table-row {
    display: grid;
    grid-template-columns: 50px 2fr 1fr 1fr 1fr;
    align-items: center;
    padding: 10px 14px;
    font-size: 14px;
    transition: background 0.15s ease;
}

/* Primera columna fija */
.col-check {
    display: flex;
    justify-content: center;
}

/* Celdas normales */
.col {
    padding: 0 6px;
}
.col-center {
    padding: 0 6px;
    text-align: center;
}
.col-right {
    padding: 0 6px;
    text-align: right;
}


/* Separadores */
.app-table-body .app-table-row {
    border-bottom: 1px solid #f0f2f4;
}

.app-table-body .app-table-row:hover {
    background: rgba(106,163,127,0.06);
    cursor: pointer;
}

/* Fila seleccionada */
.app-table-row.is-selected {
    background: rgba(106,163,127,0.12);
}

/* Ordenamiento */
.sortable {
    cursor: pointer;
    position: relative;
}

.sort-indicator {
    margin-left: 6px;
    font-size: 10px;
}

.sortable.asc .sort-indicator::after {
    content: "▲";
}

.sortable.desc .sort-indicator::after {
    content: "▼";
}

/* Paginación */
.app-table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    font-size: 13px;
}

/* Modo compacto */
.app-table-pro.compact .app-table-row {
    padding: 6px 12px;
    font-size: 13px;
}

/* =================================================
   APP BADGE
================================================= */

.app-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.badge-success {
    background: var(--bg-success);
    color: var(--color-success);
}

.badge-warning {
    background: var(--bg-warning);
    color: var(--color-warning);
}

.badge-danger {
    background: var(--bg-danger);
    color: var(--color-danger);
}

.badge-info {
    background: var(--bg-info);
    color: var(--color-info);
}

.badge-warning-inverso {
    background: var(--color-warning);
    color: white;
}

.badge-info-inverso {
    background: var(--color-info);
    color: white;
}



/* =================================================
   APP ALERT
================================================= */

.app-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    border-left: 4px solid;
}

.alert-success {
    background: var(--bg-success);
    border-color: var(--color-success);
    color: var(--color-success);
}

.alert-warning {
    background: var(--bg-warning);
    border-color: var(--color-warning);
    color: var(--color-warning);
}

.alert-danger {
    background: var(--bg-danger);
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.alert-info {
    background: var(--bg-info);
    border-color: var(--color-info);
    color: var(--color-info);
}

.app-button.success {
    border-color: var(--color-success);
    color: var(--color-success);
}

.app-button.success:hover {
    background: var(--bg-success);
}

.app-button.danger {
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.app-button.danger:hover {
    background: var(--bg-danger);
}

.app-table-row.row-success {
    background: var(--bg-success);
}

.app-table-row.row-warning {
    background: var(--bg-warning);
}

.app-table-row.row-danger {
    background: var(--bg-danger);
}

/* =================================================
   GLOBAL LOADING STATE
================================================= */

.app-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.app-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-top: 2px solid var(--field-green-1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: app-spin 0.8s linear infinite;
}

@keyframes app-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =================================================
   GLOBAL LOADER MODAL
================================================= */

.app-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
    transition: opacity 0.2s ease;
}

.app-loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Loader Box */
.app-loader-box {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 260px;
}

/* Spinner */
.app-loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid var(--field-green-1);
    border-radius: 50%;
    animation: app-loader-spin 0.8s linear infinite;
}

@keyframes app-loader-spin {
    to { transform: rotate(360deg); }
}

.app-loader-text {
    font-size: 14px;
    color: var(--color-dark);
}

.app-loader-close {
    font-size: 13px;
    background: none;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
}


/* =================================================
   ENTIDADES - VARIANTE TABLA
================================================= */

.app-table-pro.entidades .app-table-row {
    grid-template-columns:
        2.5fr   /* Entidad */
        1fr     /* Plan */
        1fr     /* Usuarios */
        1fr     /* Jugadores */
        1fr     /* Partidos */
        1fr     /* Estado */
        1.2fr   /* Creación */
        0.5fr;  /* Acciones */
}

/* Quitar cursor pointer del hover */
.app-table-pro.entidades .app-table-body .app-table-row:hover {
    cursor: default;
}

/* =================================================
   ENTIDAD CELL
================================================= */

.entity-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.entity-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--field-green-1);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.entity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entity-info {
    display: flex;
    flex-direction: column;
}

.entity-name {
    font-weight: 600;
    font-size: 14px;
}

.entity-admin {
    font-size: 12px;
    color: #6b7280;
}

/* =================================================
   CARDS MOBILE
================================================= */

.entity-cards-wrapper {
    display: none;
}

.entity-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}

.entity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entity-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    font-size: 13px;
}

.entity-card-label {
    color: #6b7280;
    font-size: 12px;
}

.entity-card-value {
    font-weight: 500;
}

/* =================================================
   RESPONSIVE BREAKPOINT
================================================= */

@media (max-width: 900px) {

    .entity-table-wrapper {
        display: none;
    }

    .entity-cards-wrapper {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

}

.confirm-modal-content {
    max-width: 400px;
}

.app-button.danger {
    background-color: #dc2626;
    color: #fff;
}

/* ===============================
   TOAST GLOBAL
=============================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 260px;
    max-width: 320px;
    padding: 12px 16px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background-color: #16a34a;
}

.toast-error {
    background-color: #dc2626;
}

.toast-warning {
    background-color: #f59e0b;
}

.toast-info {
    background-color: #2563eb;
}

/* =========================================================
   FICHA DE AVATAR CON NUMERO DE JUGADOR, APODO Y NOMBRE
============================================================ */

.user-item {
    display:flex;
    align-items:center;
    gap:10px;
    border-radius: 3px;
    padding: 3px;
    max-width: 250px;
}
.avatar {
    position:relative;
    width:50px;
    height:50px;
}

.avatar img{
    width:100%;
    height:100%;
    border-radius:50%;
    object-fit:cover;
}

.badge {
    position:absolute;
    bottom:-2px;
    right:-2px;
    width:20px;
    height:20px;
    background:#ff3b3b;
    color:white;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
    font-weight:bold;
    border:1px solid white;
}

.user-text{
    display:flex;
    flex-direction:column;
}

.user-handle{
    font-size:13px;
    color:gray;
}
.badge-check-on {
    bottom:-2px;
    right:-2px;
    width:20px;
    height:20px;
    background:#28a745; /* verde */
    color:white;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:bold;
    border:1px solid white;
    cursor: pointer;
    box-shadow: 0 0 16px silver;
}

.badge-check-on::before{
    content:"✔";
}

.badge-check-off {
    bottom:-2px;
    right:-2px;
    width:20px;
    height:20px;
    background:transparent;
    color:white;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:bold;
    border:1px solid gray;
    cursor: pointer;    
}
