/* Styling for the new Character Counts section */
#character-counts-card {
    background: var(--card); /* Match the theme */
    padding: 20px;
}

#player-count-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

#player-count-input-container label {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text);
}

#player-count-input {
    font-size: 2em;
    width: 100px;
    padding: 8px;
    text-align: center;
    background: #0f1524;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
}

/* Hide the number input spinners in Webkit browsers */
#player-count-input::-webkit-outer-spin-button,
#player-count-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#character-counts-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    text-align: center;
}

.count-display-item {
    padding: 15px;
    border-radius: 12px;
    background: #0f1524;
    border: 1px solid var(--border);
}

.count-display-item .role-type {
    font-size: 1em;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
}

.count-display-item .role-count {
    font-size: 2.5em;
    font-weight: bold;
}

/* Color coding for roles */
.count-display-item.townsfolk .role-count,
.count-display-item.outsiders .role-count {
    color: #0077be; /* Blue */
}

.count-display-item.minions .role-count,
.count-display-item.demons .role-count {
    color: #c92a2a; /* Red */
}