/**
 * CSS for La Quiniela Module (Compact, visually-separated style matching Capture 2)
 */

.lbuho-quiniela-container {
    margin: 15px 0;
    padding: 15px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Play mode toggle */
.lbuho-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.lbuho-tab-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lbuho-tab-btn.active {
    background: #e11d48; /* Red accents matching Capture 2 */
    color: white;
    border-color: #be123c;
}

/* Controls (Add / Remove Column) */
.lbuho-cols-control {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}

.lbuho-control-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lbuho-control-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.lbuho-control-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Grid Table */
.lbuho-table-wrapper {
    overflow-x: auto;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.lbuho-quiniela-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
}

.lbuho-quiniela-table th {
    background: #ffffff;
    color: #dc2626; /* Red column headers matching Capture 2 */
    font-weight: 700;
    padding: 6px 8px;
    font-size: 11px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.lbuho-quiniela-table td {
    padding: 3px 6px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* Alternating Row Tint (Soft light red / pink tint like Capture 2) */
.lbuho-row-odd {
    background-color: #ffffff;
}

.lbuho-row-even {
    background-color: #fff5f5; /* Light soft pink zebra row */
}

/* Match Numbers */
.lbuho-match-num {
    font-weight: 600;
    color: #64748b;
    text-align: right;
    width: 25px;
    padding-right: 4px !important;
    font-size: 11px;
}

/* Team Pill / Capsule (Left column match names) */
.lbuho-match-names {
    padding-left: 2px !important;
    padding-right: 12px !important;
    width: 240px;
    min-width: 210px;
}

.lbuho-team-pill {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #fecdd3; /* Soft red/pink border */
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 230px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* VISUAL SEPARATION BETWEEN COLUMNS (Bloque 1, Bloque 2...) */
.lbuho-quiniela-table th.lbuho-th-col,
.lbuho-quiniela-table td.lbuho-col-cell {
    border-right: 1px solid #e2e8f0; /* Clear column divider! */
    padding: 3px 10px !important;
    text-align: center;
}

.lbuho-col-title {
    color: #e11d48;
    font-weight: 700;
    font-size: 11px;
}

/* Columns Selector buttons inside each Bloque */
.lbuho-columns-container {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.lbuho-pick-btn {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    border: 1px solid #94a3b8;
    background: #ffffff;
    font-weight: 700;
    font-size: 11px;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s ease;
    user-select: none;
    padding: 0;
    line-height: 1;
}

.lbuho-pick-btn:hover {
    border-color: #64748b;
    background: #f8fafc;
}

.lbuho-pick-btn.selected {
    background: #059669; /* Crisp Green for selected picks */
    border-color: #047857;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.3);
}

/* Inactive columns in simple mode */
.column-inactive {
    opacity: 0.25;
    pointer-events: none;
}

/* Pleno al 15 Section (Matching soft pink banner in Capture 2) */
.lbuho-pleno-container {
    background: #fff1f2; /* Soft red / pink banner */
    border: 1px solid #fecdd3;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.lbuho-pleno-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.lbuho-pleno-num {
    font-weight: 700;
    color: #64748b;
    font-size: 12px;
}

.lbuho-pleno-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 12px;
}

.lbuho-pleno-selector-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 25px;
}

.lbuho-pleno-team {
    display: flex;
    align-items: center;
}

.lbuho-pleno-selector {
    display: flex;
    gap: 4px;
}

.lbuho-pleno-val {
    width: 24px;
    height: 24px;
    border: 1px solid #94a3b8;
    background: #ffffff;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    color: #475569;
    cursor: pointer;
    transition: all 0.12s ease;
    padding: 0;
}

.lbuho-pleno-val:hover {
    background: #f1f5f9;
}

.lbuho-pleno-val.selected {
    background: #e11d48;
    border-color: #be123c;
    color: white;
    box-shadow: 0 1px 3px rgba(225, 29, 72, 0.3);
}

/* Info Summary Footer Bar */
.lbuho-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.lbuho-summary-text {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

.lbuho-summary-val {
    font-weight: 700;
    color: #e11d48;
}
